adapted AWS CloudFormation Example for AWS Educate Classroom

This commit is contained in:
Sebastian Rieger 2021-05-25 23:40:15 +02:00
parent b57c26adbf
commit 781cfc8fa4
6 changed files with 22 additions and 6 deletions

View File

@ -3,7 +3,7 @@
"Parameters": { "Parameters": {
"paramImageID": { "paramImageID": {
"Type": "AWS::EC2::Image::Id", "Type": "AWS::EC2::Image::Id",
"Default": "ami-f573e19a", "Default": "ami-4dd18837",
"Description": "Amazon Image ID (Amazon Linux), Frankfurt ami-f573e19a, N. Virginia ami-4dd18837" "Description": "Amazon Image ID (Amazon Linux), Frankfurt ami-f573e19a, N. Virginia ami-4dd18837"
}, },
"paramInstanceType": { "paramInstanceType": {

View File

@ -3,7 +3,7 @@
"Parameters": { "Parameters": {
"paramImageID": { "paramImageID": {
"Type": "AWS::EC2::Image::Id", "Type": "AWS::EC2::Image::Id",
"Default": "ami-f573e19a", "Default": "ami-4dd18837",
"Description": "Amazon Image ID (Amazon Linux), Frankfurt ami-f573e19a, N. Virginia ami-4dd18837" "Description": "Amazon Image ID (Amazon Linux), Frankfurt ami-f573e19a, N. Virginia ami-4dd18837"
}, },
"paramInstanceType": { "paramInstanceType": {

View File

@ -8,10 +8,18 @@ import boto3
################################################################################################ ################################################################################################
region = 'eu-central-1' # region = 'eu-central-1'
region = 'us-east-1'
stackName = 'cloudcomp-counter-demo-stack' stackName = 'cloudcomp-counter-demo-stack'
keyName = 'srieger-pub' keyName = 'srieger-pub'
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# !!!
# !!! You must change vpc, subnet and availability zone below to match your zone, or use the
# !!! start-with-vpc.py example, that creates and looks up all depedencies / necessary
# !!! resources.
# !!!
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
################################################################################################ ################################################################################################
# #

View File

@ -7,8 +7,14 @@ import boto3
# #
################################################################################################ ################################################################################################
# place your credentials in ~/.aws/credentials, as mentioned in AWS Educate Classroom,
# Account Details, AWC CLI -> Show (Copy and paste the following into ~/.aws/credentials)
region = 'eu-central-1' # !!! you also need to specify an IAM role for this example to able to access S3 !!!
# region = 'eu-central-1'
region = 'us-east-1'
stackName = 'cloudcomp-counter-demo-stack' stackName = 'cloudcomp-counter-demo-stack'
keyName = 'srieger-pub' keyName = 'srieger-pub'

View File

@ -10,7 +10,8 @@ import boto3
################################################################################################ ################################################################################################
region = 'eu-central-1' # region = 'eu-central-1'
region = 'us-east-1'
stackName = 'cloudcomp-counter-demo-stack' stackName = 'cloudcomp-counter-demo-stack'

View File

@ -8,7 +8,8 @@ import boto3
################################################################################################ ################################################################################################
region = 'eu-central-1' # region = 'eu-central-1'
region = 'us-east-1'
stackName = 'cloudcomp-counter-demo-stack' stackName = 'cloudcomp-counter-demo-stack'