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?

preguntada hace 2 años336 visualizaciones
1 Respuesta
0
Respuesta aceptada

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 hace 2 años
  • 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.

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas