【发布时间】:2021-01-14 11:54:45
【问题描述】:
当我选择 VPC 网络时,如何将 VPC 的 CIDR 分配给安全组?
Parameters:
VpcId:
Type: 'AWS::EC2::VPC::Id'
Description: VpcId of your existing Virtual Private Cloud (VPC)
ConstraintDescription: must be the VPC Id of an existing Virtual Private Cloud.
EC2SecurityGroup:
Type: 'AWS::EC2::SecurityGroup'
Properties:
VpcId: !Ref VpcId
GroupDescription: SecurityGroup
SecurityGroupIngress:
- IpProtocol: tcp
FromPort: '22'
ToPort: '22'
CidrIp:
感谢您的帮助。
【问题讨论】:
标签: amazon-web-services amazon-cloudformation aws-cloudformation-custom-resource