AWS code-library documentation change
Summary
Added resource tagging throughout CloudWatch Logs examples
Security assessment
Changes exclusively add organizational tags to resources (security groups, log groups, IAM roles). No evidence of security fixes or security feature documentation.
Diff
diff --git a/code-library/latest/ug/bash_2_cloudwatch-logs_code_examples.md b/code-library/latest/ug/bash_2_cloudwatch-logs_code_examples.md index 2ba62e726..b69721d32 100644 --- a//code-library/latest/ug/bash_2_cloudwatch-logs_code_examples.md +++ b//code-library/latest/ug/bash_2_cloudwatch-logs_code_examples.md @@ -187 +187,2 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - --vpc-id "$VPC_ID" 2>&1) + --vpc-id "$VPC_ID" \ + --tag-specifications 'ResourceType=security-group,Tags=[{Key=project,Value=doc-smith},{Key=tutorial,Value=amazon-ecs-service-connect}]' 2>&1) @@ -214 +215 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - aws logs create-log-group --log-group-name "/ecs/service-connect-nginx" 2>&1 | grep -v "ResourceAlreadyExistsException" || { + aws logs create-log-group --log-group-name "/ecs/service-connect-nginx" --tags project=doc-smith,tutorial=amazon-ecs-service-connect 2>&1 | grep -v "ResourceAlreadyExistsException" || { @@ -224 +225 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - aws logs create-log-group --log-group-name "/ecs/service-connect-proxy" 2>&1 | grep -v "ResourceAlreadyExistsException" || { + aws logs create-log-group --log-group-name "/ecs/service-connect-proxy" --tags project=doc-smith,tutorial=amazon-ecs-service-connect 2>&1 | grep -v "ResourceAlreadyExistsException" || { @@ -241 +242 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - --tags key=Environment,value=tutorial 2>&1) + --tags key=Environment,value=tutorial key=project,value=doc-smith key=tutorial,value=amazon-ecs-service-connect 2>&1) @@ -284,0 +286 @@ There's more on GitHub. Find the complete example and learn how to set up and ru + aws iam tag-role --role-name ecsTaskExecutionRole --tags Key=project,Value=doc-smith Key=tutorial,Value=amazon-ecs-service-connect @@ -315,0 +318 @@ There's more on GitHub. Find the complete example and learn how to set up and ru + aws iam tag-role --role-name ecsTaskRole --tags Key=project,Value=doc-smith Key=tutorial,Value=amazon-ecs-service-connect @@ -419,0 +423,8 @@ There's more on GitHub. Find the complete example and learn how to set up and ru + }, + { + "key": "project", + "value": "doc-smith" + }, + { + "key": "tutorial", + "value": "amazon-ecs-service-connect" @@ -998,0 +1010,4 @@ There's more on GitHub. Find the complete example and learn how to set up and ru + aws iam tag-role \ + --role-name "$ROLE_NAME" \ + --tags Key=project,Value=doc-smith Key=tutorial,Value=lambda-gettingstarted + @@ -1046,0 +1062 @@ There's more on GitHub. Find the complete example and learn how to set up and ru + --tags project=doc-smith,tutorial=lambda-gettingstarted \ @@ -1152,0 +1169,4 @@ There's more on GitHub. Find the complete example and learn how to set up and ru + aws logs tag-log-group \ + --log-group-name "$LOG_GROUP_NAME" \ + --tags project=doc-smith,tutorial=lambda-gettingstarted +