EC2 VPC

Elastic Compute Cloud (EC2) Virtual Private Cloud (VPC)

Resource Type

AWS.EC2.VPC

Resource ID Format

For EC2 VPCs, the resource ID is the ARN.

arn:aws:ec2:us-west-2:123456789012:vpc/vpc-1

Background

This resource represents a snapshot of an AWS EC2 VPC.

Fields

Field

Type

Description

CidrBlock

String

The IP range of the VPC

CidrBlockAssociationSet

List

Information about the IP CIDR blocks associated with the VPC.

DhcpOptionsId

String

The ID of the set of DHCP options you've associated with the VPC.

InstanceTenancy

String

The allowed tenancy of instances launched into the VPC.Information about the IPv6 CIDR blocks associated with the VPC.

Ipv6CidrBlockAssociationSet

List

Information about the IPv6 CIDR blocks associated with the VPC.

IsDefault

Boolean

Whether the VPC is the default VPC.

OwnerId

String

The ID of the Amazon Web Services account that owns the VPC.

State

String

The current state of the VPC.

FlowLogs

List

Information about the flow logs.

NetworkAcls

List

RouteTables

List

SecurityGroups

List

StaleSecurityGroups

List

VpcId

String

The unique identifier of the VPC

Example

{
    "AccountId": "123456789012",
    "Arn": "arn:aws:ec2:eu-west-3:123456789012:vpc/vpc-1",
    "CidrBlock": "10.0.0.0/16",
    "CidrBlockAssociationSet": [
        {
            "AssociationId": "vpc-cidr-assoc-1",
            "CidrBlock": "10.0.0.0/16",
            "CidrBlockState": {
                "State": "associated",
                "StatusMessage": null
            }
        }
    ],
    "DhcpOptionsId": "dopt-1",
    "FlowLogs": null,
    "Id": "vpc-1",
    "InstanceTenancy": "default",
    "Ipv6CidrBlockAssociationSet": null,
    "IsDefault": true,
    "NetworkAcls": [
        {
            "Associations": [
                {
                    "NetworkAclAssociationId": "aclassoc-1",
                    "NetworkAclId": "acl-1",
                    "SubnetId": "subnet-1"
                },
                {
                    "NetworkAclAssociationId": "aclassoc-2",
                    "NetworkAclId": "acl-1",
                    "SubnetId": "subnet-2"
                }
            ],
            "Entries": [
                {
                    "CidrBlock": "0.0.0.0/0",
                    "Egress": true,
                    "IcmpTypeCode": null,
                    "Ipv6CidrBlock": null,
                    "PortRange": null,
                    "Protocol": "-1",
                    "RuleAction": "allow",
                    "RuleNumber": 100
                }
            ],
            "IsDefault": true,
            "NetworkAclId": "acl-1",
            "OwnerId": "123456789012",
            "Tags": null,
            "VpcId": "vpc-1"
        }
    ],
    "OwnerId": "123456789012",
    "Region": "eu-west-3",
    "ResourceId": "arn:aws:ec2:eu-west-3:123456789012:vpc/vpc-1",
    "ResourceType": "AWS.EC2.VPC",
    "RouteTables": null,
    "SecurityGroups": [
        {
            "Description": "default VPC security group",
            "GroupId": "sg-1",
            "GroupName": "default",
            "IpPermissions": [
                {
                    "FromPort": null,
                    "IpProtocol": "-1",
                    "IpRanges": null,
                    "Ipv6Ranges": null,
                    "PrefixListIds": null,
                    "ToPort": null,
                    "UserIdGroupPairs": [
                        {
                            "Description": null,
                            "GroupId": "sg-1",
                            "GroupName": null,
                            "PeeringStatus": null,
                            "UserId": "123456789012",
                            "VpcId": null,
                            "VpcPeeringConnectionId": null
                        }
                    ]
                }
            ],
            "IpPermissionsEgress": [
                {
                    "FromPort": null,
                    "IpProtocol": "-1",
                    "IpRanges": [
                        {
                            "CidrIp": "0.0.0.0/0",
                            "Description": null
                        }
                    ],
                    "Ipv6Ranges": null,
                    "PrefixListIds": null,
                    "ToPort": null,
                    "UserIdGroupPairs": null
                }
            ],
            "OwnerId": "123456789012",
            "Tags": null,
            "VpcId": "vpc-1"
        }
    ],
    "StaleSecurityGroups": null,
    "State": "available",
    "Tags": null,
    "TimeCreated": null
}

Last updated

Was this helpful?

#1924: [don't merge until ~Oct] Notion Logs (Beta)

Change request updated