Aws describe vpc

Aws describe vpc DEFAULT

DescribeVpcs

Describes one or more of your VPCs.

Request Parameters

The following parameters are for this specific action. For more information about required and optional parameters that are common to all actions, see Common Query Parameters.

DryRun

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is . Otherwise, it is .

Type: Boolean

Required: No

Filter.N

One or more filters.

  • - The primary IPv4 CIDR block of the VPC. The CIDR block you specify must exactly match the VPC's CIDR block for information to be returned for the VPC. Must contain the slash followed by one or two digits (for example, ).

  • - An IPv4 CIDR block associated with the VPC.

  • - The association ID for an IPv4 CIDR block associated with the VPC.

  • - The state of an IPv4 CIDR block associated with the VPC.

  • - The ID of a set of DHCP options.

  • - An IPv6 CIDR block associated with the VPC.

  • - The ID of the IPv6 address pool from which the IPv6 CIDR block is allocated.

  • - The association ID for an IPv6 CIDR block associated with the VPC.

  • - The state of an IPv6 CIDR block associated with the VPC.

  • - Indicates whether the VPC is the default VPC.

  • - The ID of the AWS account that owns the VPC.

  • - The state of the VPC ( | ).

  • :<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key and the value , specify for the filter name and for the filter value.

  • - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

  • - The ID of the VPC.

Type: Array of Filter objects

Required: No

MaxResults

The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned value.

Type: Integer

Valid Range: Minimum value of 5. Maximum value of 1000.

Required: No

NextToken

The token for the next page of results.

Type: String

Required: No

VpcId.N

One or more VPC IDs.

Default: Describes all your VPCs.

Type: Array of strings

Required: No

Response Elements

The following elements are returned by the service.

nextToken

The token to use to retrieve the next page of results. This value is when there are no more results to return.

Type: String

requestId

The ID of the request.

Type: String

vpcSet

Information about one or more VPCs.

Type: Array of Vpc objects

Errors

For information about the errors that are common to all actions, see Common client error codes.

Examples

Example 1

This example describes the specified VPC.

Sample Request

Sample Response

Example 2

This example uses filters to describe any VPC you own that uses the set of DHCP options with the ID or and whose state is .

Sample Request

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

Sours: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpcs.html

describe-vpc-attribute¶

Description¶

Describes the specified attribute of the specified VPC. You can specify only one attribute at a time.

See also: AWS API Documentation

See 'aws help' for descriptions of global parameters.

Synopsis¶

describe-vpc-attribute --attribute <value> --vpc-id <value> [--dry-run | --no-dry-run] [--cli-input-json <value>] [--generate-cli-skeleton <value>]

Options¶

(string)

The VPC attribute.

Possible values:

    (string)

    The ID of the VPC.

    | (boolean)

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is . Otherwise, it is .

    (string) Performs service operation based on the JSON string provided. The JSON string follows the format provided by . If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally.

    (string) Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value , prints a sample input JSON that can be used as an argument for . If provided with the value , it validates the command inputs and returns a sample output JSON for that command.

    See 'aws help' for descriptions of global parameters.

    Examples¶

    To describe the enableDnsSupport attribute

    This example describes the attribute. This attribute indicates whether DNS resolution is enabled for the VPC. If this attribute is , the Amazon DNS server resolves DNS hostnames for your instances to their corresponding IP addresses; otherwise, it does not.

    Command:

    aws ec2 describe-vpc-attribute --vpc-id vpc-a01106c2 --attribute enableDnsSupport

    Output:

    {"VpcId":"vpc-a01106c2","EnableDnsSupport":{"Value":true}}

    To describe the enableDnsHostnames attribute

    This example describes the attribute. This attribute indicates whether the instances launched in the VPC get DNS hostnames. If this attribute is , instances in the VPC get DNS hostnames; otherwise, they do not.

    Command:

    aws ec2 describe-vpc-attribute --vpc-id vpc-a01106c2 --attribute enableDnsHostnames

    Output:

    {"VpcId":"vpc-a01106c2","EnableDnsHostnames":{"Value":true}}

    Output¶

    VpcId -> (string)

    The ID of the VPC.

    EnableDnsHostnames -> (structure)

    Indicates whether the instances launched in the VPC get DNS hostnames. If this attribute is , instances in the VPC get DNS hostnames; otherwise, they do not.

    Value -> (boolean)

    The attribute value. The valid values are or .

    EnableDnsSupport -> (structure)

    Indicates whether DNS resolution is enabled for the VPC. If this attribute is , the Amazon DNS server resolves DNS hostnames for your instances to their corresponding IP addresses; otherwise, it does not.

    Value -> (boolean)

    The attribute value. The valid values are or .

    Sours: https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-vpc-attribute.html
    1. Sonic boom season 1 download
    2. Grip contact paper
    3. Zillow el cajon
    4. Nyu early decision

    describe-vpc-endpoints

    {"VpcEndpoints":[{"PolicyDocument":"{\"Version\":\"2008-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":\"*\",\"Action\":\"*\",\"Resource\":\"*\"}]}","VpcId":"vpc-aabb1122","NetworkInterfaceIds":[],"SubnetIds":[],"PrivateDnsEnabled":true,"State":"available","ServiceName":"com.amazonaws.us-east-1.dynamodb","RouteTableIds":["rtb-3d560345"],"Groups":[],"VpcEndpointId":"vpce-032a826a","VpcEndpointType":"Gateway","CreationTimestamp":"2017-09-05T20:41:28Z","DnsEntries":[],"OwnerId":"123456789012"},{"PolicyDocument":"{\n\"Statement\": [\n {\n\"Action\": \"*\", \n\"Effect\": \"Allow\", \n\"Principal\": \"*\", \n\"Resource\": \"*\"\n }\n ]\n}","VpcId":"vpc-1a2b3c4d","NetworkInterfaceIds":["eni-2ec2b084","eni-1b4a65cf"],"SubnetIds":["subnet-d6fcaa8d","subnet-7b16de0c"],"PrivateDnsEnabled":false,"State":"available","ServiceName":"com.amazonaws.us-east-1.elasticloadbalancing","RouteTableIds":[],"Groups":[{"GroupName":"default","GroupId":"sg-54e8bf31"}],"VpcEndpointId":"vpce-0f89a33420c1931d7","VpcEndpointType":"Interface","CreationTimestamp":"2017-09-05T17:55:27.583Z","DnsEntries":[{"HostedZoneId":"Z7HUB22UULQXV","DnsName":"vpce-0f89a33420c1931d7-bluzidnv.elasticloadbalancing.us-east-1.vpce.amazonaws.com"},{"HostedZoneId":"Z7HUB22UULQXV","DnsName":"vpce-0f89a33420c1931d7-bluzidnv-us-east-1b.elasticloadbalancing.us-east-1.vpce.amazonaws.com"},{"HostedZoneId":"Z7HUB22UULQXV","DnsName":"vpce-0f89a33420c1931d7-bluzidnv-us-east-1a.elasticloadbalancing.us-east-1.vpce.amazonaws.com"}],"OwnerId":"123456789012"},{"VpcEndpointId":"vpce-aabbaabbaabbaabba","VpcEndpointType":"GatewayLoadBalancer","VpcId":"vpc-111122223333aabbc","ServiceName":"com.amazonaws.vpce.us-east-1.vpce-svc-123123a1c43abc123","State":"available","SubnetIds":["subnet-0011aabbcc2233445"],"RequesterManaged":false,"NetworkInterfaceIds":["eni-01010120203030405"],"CreationTimestamp":"2020-11-11T08:06:03.522Z","Tags":[],"OwnerId":"123456789012"}]}
    Sours: https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-vpc-endpoints.html
    AWS VPC Basics - Understanding what is VPC and Calculating CIDR for VPC and Subnets

    AWS CLI Cheatsheet

    Config

    Create profiles

     

    Output format

     

    Specify your AWS Region

     

     

    API Gateway

    List API Gateway IDs and Names

     

    List API Gateway keys

     

    List API Gateway domain names

     

    List resources for API Gateway

     

    Find Lambda for API Gateway resource

     

     

    Amplify

    List Amplify apps and source repository

     

     

    CloudFront

    List CloudFront distributions and origins

     

    Create a new invalidation

     

     

    CloudWatch

    List information about an alarm

     

    Delete an alarm or alarms (you can delete up to 100 at a time)

     

     

    Cognito

    List user pool IDs and names

     

    List phone and email of all users

     

     

    DynamoDB

    List DynamoDB tables

     

    Get all items from a table

     

    Get item count from a table

     

    Get item using key

     

    Get specific fields from an item

     

    Delete item using key

     

     

    EBS

    Complete a Snapshot

     

    Start a Snapshot

     

    Get a Snapshot block

     

     

    EC2

    List Instance ID, Type and Name

     

    List Instances with public IP address and Name

     

    List VPCs and CIDR IP Block

     

    List Subnets for a VPC

     

    List Security Groups

     

    Print Security Groups for an Instance

     

    Edit Security Groups of an Instance

     

    Print Security Group Rules as FromAddress and ToPort

     

    Add Rule to Security Group

     

    Delete Rule from Security Group

     

    Edit Rules of Security Group

     

    Delete Security Group

     

     

    ECS

    Create an ECS cluster

     

    Create an ECS service

     

     

    EKS

    Create a cluster

     

    Delete a cluster

     

    List descriptive information about a cluster

     

    List clusters in your default region

     

    Tag a resource

     

    Untag a resource

     

     

    ElastiCache

    Get information about a specific cache cluster

     

    List ElastiCache replication groups

     

    List ElastiCache snapshots

     

    Create ElastiCache snapshot

     

    Delete ElastiCache snapshot

     

    Scale up/down ElastiCache replica

     

     

    ELB

    List ELB Hostnames

     

    List ELB ARNs

     

    List of ELB target group ARNs

     

    Find instances for a target group

     

     

    IAM Group

    List groups

     

    Add/Delete groups

     

    List policies and ARNs

     

    List user/group/roles for a policy

     

    List policies for a group

     

    Add policy to a group

     

    Add user to a group

     

    Remove user from a group

     

    List users in a group

     

    List groups for a user

     

    Attach/detach policy to a group

     

     

    IAM User

    List userId and UserName

     

    Get single user

     

    Add user

     

    Delete user

     

    List access keys for user

     

    Delete access key for user

     

    Activate/deactivate access key for user

     

    Generate new access key for user

     

     

    Lambda

    List Lambda functions, runtime, and memory

     

    List Lambda layers

     

    List source event for Lambda

     

    Download Lambda code

     

     

    RDS

    List DB clusters

     

    List DB instances

     

    Take DB Instance Snapshot

     

    Take DB cluster snapshot

     

     

    Route53

    Create hosted zone

     

    Delete hosted zone

     

    Get hosted zone

     

    List hosted zones

     

    Create a record set

    To do this you’ll first need to create a JSON file with a list of change items in the body and use the CREATE action. For example the JSON file would look like this.

    Once you have a JSON file with the correct information like above you will be able to enter the command

     

    Update a record set

    To do this you’ll first need to create a JSON file with a list of change items in the body and use the UPSERT action. This will either create a new record set with the specified value, or updates a record set if it already exists. For example the JSON file would look like this.

    Once you have a JSON file with the correct information like above you will be able to enter the command

     

    Delete a record set

    To do this you’ll first need to create a JSON file with a list of the record set values you want to delete in the body and use the DELETE action. For example the JSON file would look like this.

    Once you have a JSON file with the correct information like above you will be able to enter the following command.

     

     

    S3

    List Buckets

     

    List files in a Bucket

     

    Create Bucket

     

    Delete Bucket

     

    Download S3 object to local

     

    Upload local file as S3 object

     

    Delete S3 object

     

    Download bucket to local

     

    Upload local directory to bucket

     

    Share S3 object without public access

     

     

    SNS

    List SNS topics

     

    List SNS topic and related subscriptions

     

    Publish to SNS topic

     

     

    SQS

    List queues

     

    Create queue

     

    Send message

     

    Receive message

     

    Delete message

     

    Purge queue

     

    Delete queue

    Sours: https://www.bluematador.com/learn/aws-cli-cheatsheet

    Describe vpc aws

    describe-vpcs

    {"Vpcs":[{"CidrBlock":"30.1.0.0/16","DhcpOptionsId":"dopt-19edf471","State":"available","VpcId":"vpc-0e9801d129EXAMPLE","OwnerId":"111122223333","InstanceTenancy":"default","CidrBlockAssociationSet":[{"AssociationId":"vpc-cidr-assoc-062c64cfafEXAMPLE","CidrBlock":"30.1.0.0/16","CidrBlockState":{"State":"associated"}}],"IsDefault":false,"Tags":[{"Key":"Name","Value":"Not Shared"}]},{"CidrBlock":"10.0.0.0/16","DhcpOptionsId":"dopt-19edf471","State":"available","VpcId":"vpc-06e4ab6c6cEXAMPLE","OwnerId":"222222222222","InstanceTenancy":"default","CidrBlockAssociationSet":[{"AssociationId":"vpc-cidr-assoc-00b17b4eddEXAMPLE","CidrBlock":"10.0.0.0/16","CidrBlockState":{"State":"associated"}}],"IsDefault":false,"Tags":[{"Key":"Name","Value":"Shared VPC"}]}]}
    Sours: https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-vpcs.html
    27.AWS - Виртуальные Сети VPC - Часть-1

    describe-vpc-endpoints

    {"VpcEndpoints":[{"PolicyDocument":"{\"Version\":\"2008-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":\"*\",\"Action\":\"*\",\"Resource\":\"*\"}]}","VpcId":"vpc-aabb1122","NetworkInterfaceIds":[],"SubnetIds":[],"PrivateDnsEnabled":true,"State":"available","ServiceName":"com.amazonaws.us-east-1.dynamodb","RouteTableIds":["rtb-3d560345"],"Groups":[],"VpcEndpointId":"vpce-032a826a","VpcEndpointType":"Gateway","CreationTimestamp":"2017-09-05T20:41:28Z","DnsEntries":[],"OwnerId":"123456789012"},{"PolicyDocument":"{\n\"Statement\": [\n {\n\"Action\": \"*\", \n\"Effect\": \"Allow\", \n\"Principal\": \"*\", \n\"Resource\": \"*\"\n }\n ]\n}","VpcId":"vpc-1a2b3c4d","NetworkInterfaceIds":["eni-2ec2b084","eni-1b4a65cf"],"SubnetIds":["subnet-d6fcaa8d","subnet-7b16de0c"],"PrivateDnsEnabled":false,"State":"available","ServiceName":"com.amazonaws.us-east-1.elasticloadbalancing","RouteTableIds":[],"Groups":[{"GroupName":"default","GroupId":"sg-54e8bf31"}],"VpcEndpointId":"vpce-0f89a33420c1931d7","VpcEndpointType":"Interface","CreationTimestamp":"2017-09-05T17:55:27.583Z","DnsEntries":[{"HostedZoneId":"Z7HUB22UULQXV","DnsName":"vpce-0f89a33420c1931d7-bluzidnv.elasticloadbalancing.us-east-1.vpce.amazonaws.com"},{"HostedZoneId":"Z7HUB22UULQXV","DnsName":"vpce-0f89a33420c1931d7-bluzidnv-us-east-1b.elasticloadbalancing.us-east-1.vpce.amazonaws.com"},{"HostedZoneId":"Z7HUB22UULQXV","DnsName":"vpce-0f89a33420c1931d7-bluzidnv-us-east-1a.elasticloadbalancing.us-east-1.vpce.amazonaws.com"}],"OwnerId":"123456789012"},{"VpcEndpointId":"vpce-aabbaabbaabbaabba","VpcEndpointType":"GatewayLoadBalancer","VpcId":"vpc-111122223333aabbc","ServiceName":"com.amazonaws.vpce.us-east-1.vpce-svc-123123a1c43abc123","State":"available","SubnetIds":["subnet-0011aabbcc2233445"],"RequesterManaged":false,"NetworkInterfaceIds":["eni-01010120203030405"],"CreationTimestamp":"2020-11-11T08:06:03.522Z","Tags":[],"OwnerId":"123456789012"}]}
    Sours: https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-vpc-endpoints.html

    Similar news:

    describe-vpcs

    {"Vpcs":[{"CidrBlock":"30.1.0.0/16","DhcpOptionsId":"dopt-19edf471","State":"available","VpcId":"vpc-0e9801d129EXAMPLE","OwnerId":"111122223333","InstanceTenancy":"default","CidrBlockAssociationSet":[{"AssociationId":"vpc-cidr-assoc-062c64cfafEXAMPLE","CidrBlock":"30.1.0.0/16","CidrBlockState":{"State":"associated"}}],"IsDefault":false,"Tags":[{"Key":"Name","Value":"Not Shared"}]},{"CidrBlock":"10.0.0.0/16","DhcpOptionsId":"dopt-19edf471","State":"available","VpcId":"vpc-06e4ab6c6cEXAMPLE","OwnerId":"222222222222","InstanceTenancy":"default","CidrBlockAssociationSet":[{"AssociationId":"vpc-cidr-assoc-00b17b4eddEXAMPLE","CidrBlock":"10.0.0.0/16","CidrBlockState":{"State":"associated"}}],"IsDefault":false,"Tags":[{"Key":"Name","Value":"Shared VPC"}]}]}
    Sours: https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-vpcs.html


    13 14 15 16 17