AWS code-library documentation change
Summary
Added tags to security group, subnet group, secret, and DB instance resources
Security assessment
Changes exclusively add organizational tags to AWS resources. The security group modification only adds metadata tags without altering security rules or configurations. The secret creation still uses secure password generation but tags don't impact security.
Diff
diff --git a/code-library/latest/ug/bash_2_rds_code_examples.md b/code-library/latest/ug/bash_2_rds_code_examples.md index e6f0e523e..d2124c7c9 100644 --- a//code-library/latest/ug/bash_2_rds_code_examples.md +++ b//code-library/latest/ug/bash_2_rds_code_examples.md @@ -144 +144,2 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - --vpc-id "$VPC_ID") + --vpc-id "$VPC_ID" \ + --tag-specifications 'ResourceType=security-group,Tags=[{Key=project,Value=doc-smith},{Key=tutorial,Value=rds-gs}]') @@ -176 +177,2 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - --subnet-ids "$SUBNET1" "$SUBNET2") + --subnet-ids "$SUBNET1" "$SUBNET2" \ + --tags Key=project,Value=doc-smith Key=tutorial,Value=rds-gs) @@ -189 +191,2 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - --secret-string '{"username":"adminuser","password":"'"$(openssl rand -base64 16)"'"}') + --secret-string '{"username":"adminuser","password":"'"$(openssl rand -base64 16)"'"}' \ + --tags Key=project,Value=doc-smith Key=tutorial,Value=rds-gs) @@ -220 +223,2 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - --no-multi-az) + --no-multi-az \ + --tags Key=project,Value=doc-smith Key=tutorial,Value=rds-gs)