Skip to content

Commit dcecc78

Browse files
committed
updated CloudFormation example
1 parent 4b41067 commit dcecc78

File tree

1 file changed

+4
-6
lines changed
  • javav2/example_code/cloudformation/src/main/java/com/example/cloudformation

1 file changed

+4
-6
lines changed

javav2/example_code/cloudformation/src/main/java/com/example/cloudformation/CreateStack.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,16 @@ public static void main(String[] args) {
4949
stackName - The name of the AWS CloudFormation stack.\s
5050
roleARN - The ARN of the role that has AWS CloudFormation permissions.\s
5151
location - The location of file containing the template body. (for example, https://s3.amazonaws.com/<bucketname>/template.yml).\s
52-
key - The key associated with the parameter.\s
53-
value - The value associated with the parameter.\s
54-
""";
52+
""";
5553

5654
if (args.length != 3) {
5755
System.out.println(usage);
5856
System.exit(1);
5957
}
6058

61-
String stackName = "Stack106" ; //args[0];
62-
String roleARN = "arn:aws:iam::814548047983:role/roleCF" ; //args[1];
63-
String location = "https://s3.amazonaws.com/cdbucket2-scott/CloudFormationTemplate.yml" ; //args[2];
59+
String stackName = args[0];
60+
String roleARN = args[1];
61+
String location = args[2];
6462
Region region = Region.US_EAST_1;
6563
CloudFormationClient cfClient = CloudFormationClient.builder()
6664
.region(region)

0 commit comments

Comments
 (0)