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개 답변
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.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠