DCD-1123: Add optional termination protection.

This commit is contained in:
Steve Smith
2020-10-21 10:22:18 +11:00
parent 1b56944f97
commit df0d681369
3 changed files with 3 additions and 2 deletions

View File

@@ -9,8 +9,8 @@
business_unit: "Engineering-Server"
resource_owner: "{{ ansible_user_id }}"
aws_region: "us-west-2"
ec2_termination_protection: True
roles:
- { role: aws-vpc }
- { role: ec2-instance, vars: { instance_name: "Jira Software Migration Source Instance" } }
- { role: ec2-instance, vars: { instance_name: "Jira ServiceDesk Migration Source Instance" } }

View File

@@ -5,4 +5,4 @@ ec2_ami_description: "Amazon Linux 2 AMI 2.0.* x86_64 HVM gp2"
ec2_type: "t3a.xlarge"
ec2_disk_size: "512"
ec2_keypair: "taskcat-ci-key"
ec2_termination_protection: False

View File

@@ -24,6 +24,7 @@
group_id: "{{ sg.group_id }}"
vpc_subnet_id: "{{ subnet.subnet.id }}"
assign_public_ip: True
termination_protection: "{{ ec2_termination_protection }}"
volumes:
- device_name: /dev/xvda
volume_type: gp2