AWS ec2: Update VPC endpoint examples: region, VPC IDs, JSON escaping
Summary
Example region changed from us-east-1 to us-west-2, VPC IDs updated, and a JSON escaping artifact (\*) corrected to a plain asterisk in the policy document output.
Security assessment
The only substantive change is a cosmetic fix to JSON escaping in an example output plus region/ID updates; the wildcard policy shown is illustrative sample output, not a new security control or vulnerability fix.
Evidence
- "PolicyDocument": "{\"Version\":\"2008-10-17\",\"Statement\":[{\"Sid\":\"\",\"Effect\":\"Allow\",\"Principal\":\"\*\",\"Action\":\"\*\",\"Resource\":\"\*\"}]}",
Diff
diff --git a/ec2/latest/devguide/example_ec2_CreateVpcEndpoint_section.md b/ec2/latest/devguide/example_ec2_CreateVpcEndpoint_section.md index c472093..8509457 100644 --- a//ec2/latest/devguide/example_ec2_CreateVpcEndpoint_section.md +++ b//ec2/latest/devguide/example_ec2_CreateVpcEndpoint_section.md @@ -26 +26 @@ CLI -The following `create-vpc-endpoint` example creates a gateway VPC endpoint between VPC `vpc-1a2b3c4d` and Amazon S3 in the `us-east-1` region, and associates route table `rtb-11aa22bb` with the endpoint. +The following `create-vpc-endpoint` example creates a gateway VPC endpoint between VPC `vpc-1a2b3c4d` and Amazon S3 in the `us-west-2` region, and associates route table `rtb-11aa22bb` with the endpoint. @@ -31 +31 @@ The following `create-vpc-endpoint` example creates a gateway VPC endpoint betwe - --service-name com.amazonaws.us-east-1.s3 \ + --service-name com.amazonaws.us-west-2.s3 \ @@ -40 +40 @@ Output: - "PolicyDocument": "{\"Version\":\"2008-10-17\",\"Statement\":[{\"Sid\":\"\",\"Effect\":\"Allow\",\"Principal\":\"\*\",\"Action\":\"\*\",\"Resource\":\"\*\"}]}", + "PolicyDocument": "{\"Version\":\"2008-10-17\",\"Statement\":[{\"Sid\":\"\",\"Effect\":\"Allow\",\"Principal\":\"*\",\"Action\":\"*\",\"Resource\":\"*\"}]}", @@ -43 +43 @@ Output: - "ServiceName": "com.amazonaws.us-east-1.s3", + "ServiceName": "com.amazonaws.us-west-2.s3", @@ -56 +56 @@ For more information, see [Create a gateway endpoint](https://docs.aws.amazon.co -The following `create-vpc-endpoint` example creates an interface VPC endpoint between VPC `vpc-1a2b3c4d` and Amazon S3 in the `us-east-1` region. The command creates the endpoint in subnet `subnet-1a2b3c4d`, associates it with security group `sg-1a2b3c4d`, and adds a tag with a key of "Service" and a Value of "S3". +The following `create-vpc-endpoint` example creates an interface VPC endpoint between VPC `vpc-1a2b3c4d` and Amazon S3 in the `us-west-2` region. The command creates the endpoint in subnet `subnet-1a2b3c4d`, associates it with security group `sg-1a2b3c4d`, and adds a tag with a key of "Service" and a Value of "S3". @@ -62 +62 @@ The following `create-vpc-endpoint` example creates an interface VPC endpoint be - --service-name com.amazonaws.us-east-1.s3 \ + --service-name com.amazonaws.us-west-2.s3 \ @@ -76 +76 @@ Output: - "ServiceName": "com.amazonaws.us-east-1.s3", + "ServiceName": "com.amazonaws.us-west-2.s3", @@ -95 +95 @@ Output: - "DnsName": "*.vpce-1a2b3c4d5e6f1a2b3-9hnenorg.s3.us-east-1.vpce.amazonaws.com", + "DnsName": "*.vpce-1a2b3c4d5e6f1a2b3-9hnenorg.s3.us-west-2.vpce.amazonaws.com", @@ -99 +99 @@ Output: - "DnsName": "*.vpce-1a2b3c4d5e6f1a2b3-9hnenorg-us-east-1c.s3.us-east-1.vpce.amazonaws.com", + "DnsName": "*.vpce-1a2b3c4d5e6f1a2b3-9hnenorg-us-west-2c.s3.us-west-2.vpce.amazonaws.com", @@ -118 +118 @@ For more information, see [Create an interface VPC endpoint](https://docs.aws.am -The following `create-vpc-endpoint` example creates a Gateway Load Balancer endpoint between VPC `vpc-111122223333aabbc` and and a service that is configured using a Gateway Load Balancer. +The following `create-vpc-endpoint` example creates a Gateway Load Balancer endpoint between VPC `vpc-1a2b3c4d5e6f7a8b9` and and a service that is configured using a Gateway Load Balancer. @@ -122 +122 @@ The following `create-vpc-endpoint` example creates a Gateway Load Balancer endp - --service-name com.amazonaws.vpce.us-east-1.vpce-svc-123123a1c43abc123 \ + --service-name com.amazonaws.vpce.us-west-2.vpce-svc-123123a1c43abc123 \ @@ -124 +124 @@ The following `create-vpc-endpoint` example creates a Gateway Load Balancer endp - --vpc-id vpc-111122223333aabbc \ + --vpc-id vpc-1a2b3c4d5e6f7a8b9 \ @@ -135,2 +135,2 @@ Output: - "VpcId": "vpc-111122223333aabbc", - "ServiceName": "com.amazonaws.vpce.us-east-1.vpce-svc-123123a1c43abc123", + "VpcId": "vpc-1a2b3c4d5e6f7a8b9", + "ServiceName": "com.amazonaws.vpce.us-west-2.vpce-svc-123123a1c43abc123", @@ -159 +159 @@ The following `create-vpc-endpoint` example creates a resource endpoint. - --vpc-id vpc-111122223333aabbc \ + --vpc-id vpc-1a2b3c4d5e6f7a8b9 \ @@ -171 +171 @@ Output: - "VpcId": "vpc-111122223333aabbc", + "VpcId": "vpc-1a2b3c4d5e6f7a8b9", @@ -187 +187 @@ Output: - "ResourceConfigurationArn": "arn:aws:vpc-lattice:us-east-1:123456789012:resourceconfiguration/rcfg-0123abcde98765432" + "ResourceConfigurationArn": "arn:aws:vpc-lattice:us-west-2:123456789012:resourceconfiguration/rcfg-0123abcde98765432" @@ -200 +200 @@ The following `create-vpc-endpoint` example creates a service network endpoint. - --vpc-id vpc-111122223333aabbc \ + --vpc-id vpc-1a2b3c4d5e6f7a8b9 \ @@ -202 +202 @@ The following `create-vpc-endpoint` example creates a service network endpoint. - --service-network-arn arn:aws:vpc-lattice:us-east-1:123456789012:servicenetwork/sn-0101abcd5432abcd0 \ + --service-network-arn arn:aws:vpc-lattice:us-west-2:123456789012:servicenetwork/sn-0101abcd5432abcd0 \ @@ -213 +213 @@ Output: - "VpcId": "vpc-111122223333aabbc", + "VpcId": "vpc-1a2b3c4d5e6f7a8b9", @@ -229 +229 @@ Output: - "ServiceNetworkArn": "arn:aws:vpc-lattice:us-east-1:123456789012:servicenetwork/sn-0101abcd5432abcd0" + "ServiceNetworkArn": "arn:aws:vpc-lattice:us-west-2:123456789012:servicenetwork/sn-0101abcd5432abcd0"