This commit is contained in:
Aaron Meihm 2017-01-04 11:07:02 -06:00
Родитель ce61904398
Коммит 3a4363825c
3 изменённых файлов: 13 добавлений и 0 удалений

Просмотреть файл

@ -20,3 +20,4 @@
InstanceType: "t2.micro" InstanceType: "t2.micro"
KeyName: "{{ keys }}" KeyName: "{{ keys }}"
DeployRepo: "{{ deployrepo }}" DeployRepo: "{{ deployrepo }}"
AvailabilityZone: "{{ availability_zone }}"

Просмотреть файл

@ -27,6 +27,10 @@
"DeployRepo": { "DeployRepo": {
"Type": "String", "Type": "String",
"Description": "URL for MIG deploy repo" "Description": "URL for MIG deploy repo"
},
"AvailabilityZone": {
"Type": "String",
"Description": "Availability zone to use for subnets"
} }
}, },
"Resources": { "Resources": {
@ -59,6 +63,7 @@
"Properties": { "Properties": {
"VpcId": { "Ref": "VPC" }, "VpcId": { "Ref": "VPC" },
"CidrBlock": "10.20.0.0/24", "CidrBlock": "10.20.0.0/24",
"AvailabilityZone": { "Ref": "AvailabilityZone" },
"Tags": [ "Tags": [
{ "Key": "Name", "Value": "mig public subnet" } { "Key": "Name", "Value": "mig public subnet" }
] ]
@ -94,6 +99,7 @@
"Properties": { "Properties": {
"VpcId": { "Ref": "VPC" }, "VpcId": { "Ref": "VPC" },
"CidrBlock": "10.20.1.0/24", "CidrBlock": "10.20.1.0/24",
"AvailabilityZone": { "Ref": "AvailabilityZone" },
"MapPublicIpOnLaunch": "false", "MapPublicIpOnLaunch": "false",
"Tags": [ "Tags": [
{ "Key": "Name", "Value": "mig private subnet" } { "Key": "Name", "Value": "mig private subnet" }
@ -192,6 +198,11 @@
"Value": { "Ref": "PublicSubnet" }, "Value": { "Ref": "PublicSubnet" },
"Export": { "Name": {"Fn::Sub": "${AWS::StackName}-PublicSubnet" }} "Export": { "Name": {"Fn::Sub": "${AWS::StackName}-PublicSubnet" }}
}, },
"AvailabilityZone": {
"Description": "Availability zone",
"Value": { "Ref": "AvailabilityZone" },
"Export": { "Name": {"Fn::Sub": "${AWS::StackName}-AvailabilityZone" }}
},
"BastionInstanceId": { "BastionInstanceId": {
"Description": "Bastion host instance ID", "Description": "Bastion host instance ID",
"Value": { "Ref": "BastionInstance" }, "Value": { "Ref": "BastionInstance" },

Просмотреть файл

@ -1,5 +1,6 @@
--- ---
region: us-west-2 region: us-west-2
availability_zone: us-west-2a
keys: "alm-keys" keys: "alm-keys"
ami_id: ami-2709bd47 ami_id: ami-2709bd47
state: present state: present