Skip to content

Instantly share code, notes, and snippets.

@martin-garbe
martin-garbe / cloudformation-ipv6-address-via-custom-resource
Created September 5, 2022 11:12
Fetch IPv6 address of EC2 instance for creating AAAA DNS record
# large parts taken from https://aws.amazon.com/blogs/mt/four-ways-to-retrieve-any-aws-service-property-using-aws-cloudformation-part-1/
AWSTemplateFormatVersion: '2010-09-09'
Parameters:
ExampleServiceInstanceName:
Default: Example
Description: Instance and Host Name
Type: String
Resources:
ExampleService:
Properties: