I have AWS cloudformation stacks with ec2 instances that are entirely isolated from external traffic. They seldom need to be directly accessed. For cases when they do need to be accessed, I have a stack to launch a bastion host. Is there an easy way, that I've missed from the docs, of getting the IPv6 of the bastion host in the stack outputs ?
# Cloudformation snippet Resources: BastionHost: Type: AWS::EC2::Instance Properties: KeyName: !Ref KeyName SubnetId: !Ref MyBastionSubnetId Ipv6AddressCount: 1 ImageId: !Ref LatestAmiId Outputs: BastionIP: # Problematically only returns an IPv4 Value: !GetAtt BastionHost.PublicIp Description: Publicly addressable IP of bastion host