Get static IPs from Global accelerator-cloudformation

229 Views Asked by At

I'm trying to output static IPs from the AWS global accelerator, but according to AWS docs, the only available attributes are AcceleratorArn and DnsName. Is there some way I can output the static IPs? See below sample CF script

AWSTemplateFormatVersion: 2010-09-09
Description: CloudFormation template to deploy Global Accelerator
Parameters:
LoadbalancerARN:
        Description: Application Load Balancer ARN to be used as Global Accelerator endpoint
        Type: String
Resources:
    SampleAccelerator:
    Type: 'AWS::GlobalAccelerator::Accelerator'
    Properties:
        Name: MySampleAccelerator
        IpAddressType: "IPV4"
        Enabled: true
    SampleListener:
        Type: 'AWS::GlobalAccelerator::Listener'
        Properties:
            AcceleratorArn: !Ref SampleAccelerator
            Protocol: TCP
            PortRanges:
            - FromPort: '80'
                ToPort: '80'
    UsWest2EndpointGroup:
        Type: 'AWS::GlobalAccelerator::EndpointGroup'
        Properties:
            ListenerArn: !Ref SampleListener
            EndpointGroupRegion: us-west-2
            EndpointConfigurations:
            - EndpointId: !Ref LoadbalancerARN
                ClientIPPreservationEnabled: true
Outputs:
    AcceleratorDNS:
    Description: DNS for Global Accelerator
    Value: !GetAtt SampleAccelerator.DnsName
0

There are 0 best solutions below