Browse Source

adapted AWS CloudFormation Example for AWS Educate Classroom

pull/3/head
Sebastian Rieger 4 years ago
parent
commit
781cfc8fa4
  1. 2
      example-projects/counter-demo/aws-cloudformation/cloudcomp-counter-demo-with-vpc.json
  2. 2
      example-projects/counter-demo/aws-cloudformation/cloudcomp-counter-demo.json
  3. 10
      example-projects/counter-demo/aws-cloudformation/old-example-without-vpc/start.py
  4. 8
      example-projects/counter-demo/aws-cloudformation/start-with-vpc.py
  5. 3
      example-projects/counter-demo/aws-cloudformation/status.py
  6. 3
      example-projects/counter-demo/aws-cloudformation/stop.py

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

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

2
example-projects/counter-demo/aws-cloudformation/cloudcomp-counter-demo.json

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

10
example-projects/counter-demo/aws-cloudformation/start.py → example-projects/counter-demo/aws-cloudformation/old-example-without-vpc/start.py

@ -8,10 +8,18 @@ import boto3
################################################################################################
region = 'eu-central-1'
# region = 'eu-central-1'
region = 'us-east-1'
stackName = 'cloudcomp-counter-demo-stack'
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.
# !!!
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
################################################################################################
#

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

@ -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'
keyName = 'srieger-pub'

3
example-projects/counter-demo/aws-cloudformation/status.py

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

3
example-projects/counter-demo/aws-cloudformation/stop.py

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

Loading…
Cancel
Save