|
@ -11,7 +11,7 @@ keyName = 'srieger-pub' |
|
|
client = boto3.setup_default_session(region_name=region) |
|
|
client = boto3.setup_default_session(region_name=region) |
|
|
cfClient = boto3.client('cloudformation') |
|
|
cfClient = boto3.client('cloudformation') |
|
|
|
|
|
|
|
|
templateFile = open("cloudcomp-counter-demo-with-vpc.json", "r") |
|
|
|
|
|
|
|
|
templateFile = open("cloudcomp-counter-demo.json", "r") |
|
|
templateBody = templateFile.read() |
|
|
templateBody = templateFile.read() |
|
|
|
|
|
|
|
|
print("Deleting old stack...") |
|
|
print("Deleting old stack...") |
|
@ -31,5 +31,17 @@ response = cfClient.create_stack( |
|
|
'ParameterKey': 'paramKeyPair', |
|
|
'ParameterKey': 'paramKeyPair', |
|
|
'ParameterValue': keyName |
|
|
'ParameterValue': keyName |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
'ParameterKey': 'paramVPC', |
|
|
|
|
|
'ParameterValue': 'vpc-eedd4187' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
'ParameterKey': 'paramAvailabilityZones', |
|
|
|
|
|
'ParameterValue': 'eu-central-1a, eu-central-1b, eu-central-1c', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
'ParameterKey': 'paramSubnetIDs', |
|
|
|
|
|
'ParameterValue': 'subnet-5c5f6d16, subnet-41422b28, subnet-6f2ea214', |
|
|
|
|
|
}, |
|
|
], |
|
|
], |
|
|
) |
|
|
) |