adapted AWS CloudFormation Example for AWS Educate Classroom
This commit is contained in:
parent
b57c26adbf
commit
781cfc8fa4
@ -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": {
|
||||||
|
@ -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": {
|
||||||
|
@ -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.
|
||||||
|
# !!!
|
||||||
|
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
|
|
||||||
################################################################################################
|
################################################################################################
|
||||||
#
|
#
|
@ -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'
|
||||||
|
|
||||||
|
@ -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'
|
||||||
|
|
||||||
|
|
||||||
|
@ -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'
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user