AWS Security ChangesHomeSearch

AWS code-library documentation change

Service: code-library · 2026-05-04 · Documentation low

File: code-library/latest/ug/sts_example_ecs_ServiceConnect_085_section.md

Summary

Added resource tagging for security group, log groups, IAM roles, and task definition in Service Connect tutorial

Security assessment

Tags provide resource categorization only. Security group/log group changes add non-functional metadata; no security features or vulnerabilities are documented or addressed.

Diff

diff --git a/code-library/latest/ug/sts_example_ecs_ServiceConnect_085_section.md b/code-library/latest/ug/sts_example_ecs_ServiceConnect_085_section.md
index 514e596d9..6e4f089a3 100644
--- a//code-library/latest/ug/sts_example_ecs_ServiceConnect_085_section.md
+++ b//code-library/latest/ug/sts_example_ecs_ServiceConnect_085_section.md
@@ -173 +173,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)
@@ -200 +201 @@ 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" || {
@@ -210 +211 @@ 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" || {
@@ -227 +228 @@ 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)
@@ -270,0 +272 @@ 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
@@ -301,0 +304 @@ 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
@@ -405,0 +409,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"