Skip to content
Snippets Groups Projects
Commit 68542bcc authored by Sebastian Rieger's avatar Sebastian Rieger
Browse files

changed cloudformation example to support AWS Academy Lab

parent 14347b0b
Branches main v0.2_with_reverse_proxy
No related tags found
No related merge requests found
...@@ -18,11 +18,12 @@ ...@@ -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"
} }
}, },
......
...@@ -16,8 +16,9 @@ import boto3 ...@@ -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( ...@@ -49,5 +50,9 @@ response = cfClient.create_stack(
'ParameterKey': 'paramKeyPair', 'ParameterKey': 'paramKeyPair',
'ParameterValue': keyName 'ParameterValue': keyName
}, },
{
'ParameterKey': 'paramIamInstanceRole',
'ParameterValue': roleName
},
], ],
) )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment