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?

已提问 2 年前336 查看次数
1 回答
0
已接受的回答

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
已回答 2 年前
  • 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.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则