Browse Source

changed cloudformation example to support AWS Academy Lab

pull/3/head
Sebastian Rieger 3 years ago
parent
commit
68542bcc98
  1. 3
      example-projects/counter-demo/aws-cloudformation/cloudcomp-counter-demo-with-vpc.json
  2. 0
      example-projects/counter-demo/aws-cloudformation/old-example-without-vpc/cloudcomp-counter-demo.json
  3. 9
      example-projects/counter-demo/aws-cloudformation/start-with-vpc.py

3
example-projects/counter-demo/aws-cloudformation/cloudcomp-counter-demo-with-vpc.json

@ -18,11 +18,12 @@
}, },
"paramKeyPair": { "paramKeyPair": {
"Type": "AWS::EC2::KeyPair::KeyName", "Type": "AWS::EC2::KeyPair::KeyName",
"Default": "vockey",
"Description": "Amazon EC2 Key Pair" "Description": "Amazon EC2 Key Pair"
}, },
"paramIamInstanceRole": { "paramIamInstanceRole": {
"Type": "String", "Type": "String",
"Default": "ec2-s3-vertsys-access-role",
"Default": "LabRole",
"Description": "IAM Instance Role" "Description": "IAM Instance Role"
} }
}, },

0
example-projects/counter-demo/aws-cloudformation/cloudcomp-counter-demo.json → example-projects/counter-demo/aws-cloudformation/old-example-without-vpc/cloudcomp-counter-demo.json

9
example-projects/counter-demo/aws-cloudformation/start-with-vpc.py

@ -16,8 +16,9 @@ import boto3
# region = 'eu-central-1' # region = 'eu-central-1'
region = 'us-east-1' region = 'us-east-1'
stackName = 'cloudcomp-counter-demo-stack' stackName = 'cloudcomp-counter-demo-stack'
keyName = 'srieger-pub'
# keyName = 'srieger-pub'
keyName = 'vockey'
roleName = 'LabRole'
################################################################################################ ################################################################################################
# #
@ -49,5 +50,9 @@ response = cfClient.create_stack(
'ParameterKey': 'paramKeyPair', 'ParameterKey': 'paramKeyPair',
'ParameterValue': keyName 'ParameterValue': keyName
}, },
{
'ParameterKey': 'paramIamInstanceRole',
'ParameterValue': roleName
},
], ],
) )
Loading…
Cancel
Save