AWS::EC2::SecurityGroupVpcAssociationResource type definition for the AWS::EC2::SecurityGroupVpcAssociation resource
2 configurable properties. 2 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
GroupId | string | RequiredCreate-only |
VpcId | string | RequiredCreate-only |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
State | string | The state of the security group vpc association. |
StateReason | string | The reason for the state of the security group vpc association. |
VpcOwnerId | string | The owner of the VPC in the security group vpc association. |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::EC2::SecurityGroupVpcAssociation
Resources:
MyResource:
Type: AWS::EC2::SecurityGroupVpcAssociation
Properties:
GroupId: "my-groupid"
VpcId: "my-vpcid"Permissions CloudFormation needs in your IAM role to manage this resource.
ec2:AssociateSecurityGroupVpcec2:DescribeSecurityGroupVpcAssociationsec2:DescribeSecurityGroupVpcAssociationsec2:DisassociateSecurityGroupVpcec2:DescribeSecurityGroupVpcAssociationsec2:DescribeSecurityGroupVpcAssociationsEverything you need to know about EC2 on one page. HD quality, print-friendly.
Download Free InfographicGroupIdThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
GroupIdVpcId