Commit 4f8f65b6 by syed-awais-ali

terminating sandbox on shutdown

parent 63020d2d
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
owner: temp owner: temp
root_ebs_size: 50 root_ebs_size: 50
dns_name: temp dns_name: temp
instance_initiated_shutdown_behavior: stop
dns_zone: sandbox.edx.org dns_zone: sandbox.edx.org
name_tag: sandbox-temp name_tag: sandbox-temp
elb: false elb: false
...@@ -33,6 +34,7 @@ ...@@ -33,6 +34,7 @@
- role: launch_ec2 - role: launch_ec2
keypair: "{{ keypair }}" keypair: "{{ keypair }}"
instance_type: "{{ instance_type }}" instance_type: "{{ instance_type }}"
instance_initiated_shutdown_behavior: "{{ instance_initiated_shutdown_behavior }}"
security_group: "{{ security_group }}" security_group: "{{ security_group }}"
ami: "{{ ami }}" ami: "{{ ami }}"
region: "{{ region }}" region: "{{ region }}"
......
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
keypair: "{{ keypair }}" keypair: "{{ keypair }}"
group: "{{ security_group }}" group: "{{ security_group }}"
instance_type: "{{ instance_type }}" instance_type: "{{ instance_type }}"
instance_initiated_shutdown_behavior: "{{ instance_initiated_shutdown_behavior }}"
image: "{{ ami }}" image: "{{ ami }}"
vpc_subnet_id: "{{ vpc_subnet_id }}" vpc_subnet_id: "{{ vpc_subnet_id }}"
assign_public_ip: yes assign_public_ip: yes
......
...@@ -137,6 +137,10 @@ if [[ -z $instance_type ]]; then ...@@ -137,6 +137,10 @@ if [[ -z $instance_type ]]; then
instance_type="t2.large" instance_type="t2.large"
fi fi
if [[ -z $instance_initiated_shutdown_behavior ]]; then
instance_initiated_shutdown_behavior="terminate"
fi
if [[ -z $enable_newrelic ]]; then if [[ -z $enable_newrelic ]]; then
enable_newrelic="false" enable_newrelic="false"
fi fi
...@@ -311,6 +315,7 @@ security_group: $security_group ...@@ -311,6 +315,7 @@ security_group: $security_group
ami: $ami ami: $ami
region: $region region: $region
zone: $zone zone: $zone
instance_initiated_shutdown_behavior: $instance_initiated_shutdown_behavior
instance_tags: instance_tags:
environment: $environment environment: $environment
github_username: $github_username github_username: $github_username
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment