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?

1 réponse
0
Réponse acceptée

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
répondu il y a 2 ans
  • 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.

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions