зеркало из https://github.com/mozilla/mig-deploy.git
specify az on base creation
This commit is contained in:
Родитель
ce61904398
Коммит
3a4363825c
|
@ -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
|
||||||
|
|
Загрузка…
Ссылка в новой задаче