Aws Transfer Family - Vpc托管

0

【以下的问题经过翻译处理】 你好,

在Vpc托管分类下,我想使用Cloud Formation模板选择面向互联网的配置。

我已经有一个针对内部的YAML文件,但无法为面向互联网的配置编写代码。

1개 답변
0

【以下的回答经过翻译处理】 要创建面向互联网的VPC类型的服务器,您必须在创建服务器时提供“Elastic-IPs”或“AddressAllocation-IDs”。在您的模板中,我看到缺少这部分,这就是为什么Trasfer Family服务创建了一个内部VPC类型服务器的原因。以下是示例模板:

AWSTemplateFormatVersion: 2010-09-09
Resources:
  SFTPServer:
    Type: 'AWS::Transfer::Server'
    Properties:
      EndpointType: 'VPC'
      EndpointDetails:
        VpcId: '<vpc-id>'
        SubnetIds: 
          - '<subnet-id>'
        AddressAllocationIds:
          - '<Elastic IP allocation Id>'
      LoggingRole: '<logging-role-ARN>'

注意:您必须提供弹性IP的分配ID,而不是IP本身。分配Id的格式如下 - eipalloc-0fb1a029axxxxxx

以上应该可以帮助您创建面向互联网的VPC类型的服务器。

profile picture
전문가
답변함 5달 전

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

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

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