mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-17 10:23:13 -06:00
DCD-1123: Add ability to add new instance to DNS.
This commit is contained in:
@@ -37,3 +37,13 @@
|
||||
service_name: "{{ instance_name}}"
|
||||
resource_owner: "{{ resource_owner }}"
|
||||
register: ec2_instance
|
||||
|
||||
- name: Add DNS entry for EC2 instance
|
||||
route53:
|
||||
command: create
|
||||
zone: "{{ dns_domain }}"
|
||||
type: CNAME
|
||||
record: "{{ instance_hostname }}.{{ dns_domain }}"
|
||||
value: "{{ ec2_instance.tagged_instances[0].dns_name }}"
|
||||
ttl: 60
|
||||
overwrite: true
|
||||
|
||||
Reference in New Issue
Block a user