AWS code-library documentation change
Summary
Added tags to secret, IAM role, cluster, workgroup, and provisioning resources
Security assessment
Changes introduce resource tagging for organizational purposes only. IAM role and secret tagging doesn't modify permissions or secret values. Existing security mechanisms (password generation, IAM policies) remain unchanged.
Diff
diff --git a/code-library/latest/ug/bash_2_redshift_code_examples.md b/code-library/latest/ug/bash_2_redshift_code_examples.md index 3bf82f118..4e7703826 100644 --- a//code-library/latest/ug/bash_2_redshift_code_examples.md +++ b//code-library/latest/ug/bash_2_redshift_code_examples.md @@ -142 +142,2 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - --secret-string "{\"username\":\"$username\",\"password\":\"$password\"}" 2>&1) + --secret-string "{\"username\":\"$username\",\"password\":\"$password\"}" \ + --tags Key=project,Value=doc-smith Key=tutorial,Value=redshift-serverless 2>&1) @@ -360,0 +362,2 @@ 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=redshift-serverless @@ -379 +382,2 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - --db-name "$DB_NAME" 2>&1) + --db-name "$DB_NAME" \ + --tags Key=project,Value=doc-smith Key=tutorial,Value=redshift-serverless 2>&1) @@ -400 +404,2 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - --base-capacity 8 2>&1) + --base-capacity 8 \ + --tags Key=project,Value=doc-smith Key=tutorial,Value=redshift-serverless 2>&1) @@ -925,0 +931 @@ There's more on GitHub. Find the complete example and learn how to set up and ru + --tags Key=project,Value=doc-smith Key=tutorial,Value=redshift-provisioned \ @@ -974,0 +981,4 @@ There's more on GitHub. Find the complete example and learn how to set up and ru + # Tag the IAM role + echo "Tagging IAM role: $ROLE_NAME" + aws iam tag-role --role-name "$ROLE_NAME" --tags Key=project,Value=doc-smith Key=tutorial,Value=redshift-provisioned +