Skip to content

Commit 989e612

Browse files
committed
made some minor updates
1 parent cc62d01 commit 989e612

File tree

1 file changed

+6
-6
lines changed
  • kotlin/services/ecr/src/main/kotlin/com/example/ecr/scenario

1 file changed

+6
-6
lines changed

kotlin/services/ecr/src/main/kotlin/com/example/ecr/scenario/ECRScenario.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ suspend fun main(args: Array<String>) {
4040
4141
""".trimIndent()
4242

43-
// if (args.size != 2) {
44-
// println(usage)
45-
// return
46-
// }
43+
if (args.size != 2) {
44+
println(usage)
45+
return
46+
}
4747

48-
var iamRole = "arn:aws:iam::814548047983:role/Admin"
48+
var iamRole = args[0]
4949
var localImageName: String
50-
var accountId = "814548047983"
50+
var accountId = args[1]
5151
val ecrActions = ECRActions()
5252
val scanner = Scanner(System.`in`)
5353

0 commit comments

Comments
 (0)