기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.
Infrastructure Composer를 사용하는 외부 VPC에 대해 가져온 템플릿의 파라미터
외부 VPC의 보안 그룹 및 서브넷에 대해 정의된 파라미터가 있는 기존 템플릿을 가져올 때 Infrastructure Composer는 파라미터를 선택할 수 있는 드롭다운 목록을 제공합니다.
다음은 가져온 템플릿 Parameters
섹션의 예입니다.
... Parameters: VPCSecurityGroups: Description: Security group IDs generated by Infrastructure Composer Type: List<AWS::EC2::SecurityGroup::Id> VPCSubnets: Description: Subnet IDs generated by Infrastructure Composer Type: List<AWS::EC2::Subnet::Id> VPCSubnet: Description: Subnet Id generated by Infrastructure Composer Type: AWS::EC2::Subnet::Id ...
캔버스에서 새 Lambda 함수에 대해 외부 VPC를 구성할 때 이러한 파라미터는 드롭다운 목록에서 사용할 수 있습니다. 다음은 예제입니다.

목록 파라미터 유형 가져오기 시 제한 사항
일반적으로 각 Lambda 함수에 대해 여러 보안 그룹 및 서브넷 식별자를 지정할 수 있습니다. 기존 템플릿에 List<AWS::EC2::SecurityGroup::Id>
또는와 같은 목록 파라미터 유형이 포함된 경우 식별자를 하나만 지정할 List<AWS::EC2::Subnet::Id>
수 있습니다.
파라미터 목록 유형에 대한 자세한 내용은 AWS CloudFormation 사용 설명서의 지원되는 AWS특정 파라미터 유형을 참조하세요.
다음은를 목록 파라미터 유형VPCSecurityGroups
으로 정의하는 템플릿의 예입니다.
... Parameters: VPCSecurityGroups: Description: Security group IDs generated by Infrastructure Composer Type: List<AWS::EC2::SecurityGroup::Id> ...
Infrastructure Composer에서 Lambda 함수의 보안 그룹 식별자로 VPCSecurityGroups
값을 선택하면 다음 메시지가 표시됩니다.

이 제한은 AWS::Lambda::Function VpcConfig
객체의 SecurityGroupIds
및 SubnetIds
속성 모두 문자열 값 목록만 허용하기 때문에 발생합니다. 단일 목록 파라미터 유형에는 문자열 목록이 포함되어 있으므로 지정 시 제공되는 유일한 객체일 수 있습니다.
목록 파라미터 유형의 경우 Lambda 함수로 구성된 경우 템플릿에 정의되는 방법의 예는 다음과 같습니다.
... Parameters: VPCSecurityGroups: Description: Security group IDs generated by Infrastructure Composer Type: List<AWS::EC2::SecurityGroup::Id> VPCSubnets: Description: Subnet IDs generated by Infrastructure Composer Type: List<AWS::EC2::Subnet::Id> Resources: ... MyFunction: Type: AWS::Serverless::Function Properties: ... VpcConfig: SecurityGroupIds: !Ref VPCSecurityGroups SubnetIds: !Ref VPCSubnets