AWS ec2 documentation change
Summary
Added resource tagging to Direct Connect and VPN gateway creation commands in code examples.
Security assessment
Demonstrates security best practice of resource tagging for access control and auditing, but doesn't address a specific vulnerability. Improves documentation of resource management security.
Diff
diff --git a/ec2/latest/devguide/example_directconnect_GettingStarted_051_section.md b/ec2/latest/devguide/example_directconnect_GettingStarted_051_section.md index bef65eacd..49888b536 100644 --- a//ec2/latest/devguide/example_directconnect_GettingStarted_051_section.md +++ b//ec2/latest/devguide/example_directconnect_GettingStarted_051_section.md @@ -170 +170,2 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - --connection-name "$CONNECTION_NAME") + --connection-name "$CONNECTION_NAME" \ + --tags key=project,value=doc-smith key=tutorial,value=aws-direct-connect-gs) @@ -212 +213,2 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - VGW_OUTPUT=$(aws ec2 create-vpn-gateway --type ipsec.1) + VGW_OUTPUT=$(aws ec2 create-vpn-gateway --type ipsec.1 \ + --tag-specifications 'ResourceType=vpn-gateway,Tags=[{Key=project,Value=doc-smith},{Key=tutorial,Value=aws-direct-connect-gs}]')