Skip to content

Commit

Permalink
Update cloud_template.j2 - aws workaround (#7822)
Browse files Browse the repository at this point in the history
* Update cloud_template.j2

* Update cloud_template.j2

* adding old function cloud_template.j2

* rectified resource record attribute name ec2_cloud_template.j2

---------

Co-authored-by: Prakhar Srivastava <[email protected]>
Co-authored-by: Mitesh The Mouse <[email protected]>
  • Loading branch information
3 people authored and jkupferer committed Apr 11, 2024
1 parent 872a466 commit baa6c3a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ Resources:
ResourceRecords:
{% for c in range(1,(instance['count'] |int)+1) %}
- "Fn::GetAtt":
- {{instance['name']}}{{c}}
- {{instance['name']}}{{c}}EIP
- PublicIp
{% endfor %}
{% endif %}
Expand Down Expand Up @@ -317,7 +317,7 @@ Resources:
TTL: {{ aws_dns_ttl_public }}
ResourceRecords:
- "Fn::GetAtt":
- {{instance['name']}}{{loop.index}}
- {{instance['name']}}{{loop.index}}EIP
- PublicIp
{% endif %}
{% endfor %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ Resources:
ResourceRecords:
{% for c in range(1,(instance['count'] |int)+1) %}
- "Fn::GetAtt":
- {{ instance.name | replace('-', '') }}{{c}}
- {{ instance.name | replace('-', '') }}{{c}}EIP
- PublicIp
{% endfor %}
{% endif %}
Expand Down Expand Up @@ -283,7 +283,7 @@ Resources:
Type: A
TTL: {{ aws_dns_ttl_private }}
ResourceRecords:
- "Fn::GetAtt":
- "Fn::GetAtt":
- {{ instance.name | replace('-', '') }}{{ loop.index }}
- PrivateIp

Expand Down Expand Up @@ -322,9 +322,9 @@ Resources:
Type: A
TTL: {{ aws_dns_ttl_public }}
ResourceRecords:
- "Fn::GetAtt":
- {{ instance.name | replace('-', '') }}{{loop.index}}
- PublicIp
- "Fn::GetAtt":
- {{ instance.name | replace('-', '') }}{{loop.index}}EIP
- PublicIp
{% endif %}
{% endfor %}
{% endfor %}
Expand Down

0 comments on commit baa6c3a

Please sign in to comment.