AWS Transfer Cloud Formation Network Settings

0

I am working on a CF template to deploy a AWS Transfer server. I am using EndPointType=VPC and I need to be able to specify the IP's of the network interfaces for two subnets.

From the https://docs.aws.amazon.com/transfer/latest/userguide/API_EndpointDetails.html I can see that I need to use the AddressAllocationIds statement.

This only appears to be possible via the UpdateServer API. I guess I need to call the UpdateServer API after the AWS::Transfer::Server block in the template? Is there an example of this available anywhere?

feita há 2 anos336 visualizações
1 Resposta
0
Resposta aceita

You may specify the AddressAllocationIds as part of your template without needing to make additional calls outside of CloudFormation.

---
Resources:
  Server:
    Type: AWS::Transfer::Server
    Properties:
      EndpointType: VPC
      EndpointDetails:
        AddressAllocationIds:
          - Fn::GetAtt: ElasticIP.AllocationId
        SubnetIds:
          - Ref: Subnet
        VpcId:
          Ref: VPC
AWS
Kevin
respondido há 2 anos
  • Hi Kevin thanks for your reply. I'm a little confused about the naming here. I am not trying to assign elastic IP's, I just want to assign IP's from each of the subnets that I have specified? I want to be sure that the IP's will not change over time. The transfer server is not internet facing.

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas