AWS Security ChangesHomeSearch

AWS code-library documentation change

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

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

Summary

Added multiple new scenario links to the AttachRolePolicy action example page, including security-related scenarios like moving secrets to Secrets Manager and IoT Device Defender.

Security assessment

The addition of scenario links includes 'Moving hardcoded secrets to Secrets Manager' and 'Getting Started with IoT Device Defender', which are security-focused topics. This enhances security documentation by providing examples of security best practices, but there's no indication these changes are in response to a specific security issue.

Diff

diff --git a/code-library/latest/ug/iam_example_iam_AttachRolePolicy_section.md b/code-library/latest/ug/iam_example_iam_AttachRolePolicy_section.md
index 98a27ae9f..8798d4249 100644
--- a//code-library/latest/ug/iam_example_iam_AttachRolePolicy_section.md
+++ b//code-library/latest/ug/iam_example_iam_AttachRolePolicy_section.md
@@ -16,0 +17,26 @@ Action examples are code excerpts from larger programs and must be run in contex
+  * [Configure Amazon ECS Service Connect](./iam_example_ecs_ServiceConnect_085_section.html)
+
+  * [Create a REST API with Lambda proxy integration](./iam_example_api_gateway_GettingStarted_087_section.html)
+
+  * [Create an Amazon ECS Linux task for the Fargate launch type](./iam_example_ecs_GettingStarted_086_section.html)
+
+  * [Creating a CloudWatch dashboard with function name as a variable](./iam_example_cloudwatch_GettingStarted_031_section.html)
+
+  * [Creating an Amazon ECS service for the EC2 launch type](./iam_example_ecs_GettingStarted_018_section.html)
+
+  * [Creating an Amazon Managed Grafana workspace](./iam_example_iam_GettingStarted_044_section.html)
+
+  * [Creating your first Lambda function](./iam_example_lambda_GettingStarted_019_section.html)
+
+  * [Getting started with Amazon EKS](./iam_example_eks_GettingStarted_034_section.html)
+
+  * [Getting started with Amazon MSK](./iam_example_ec2_GettingStarted_057_section.html)
+
+  * [Getting started with Amazon SageMaker Feature Store](./iam_example_iam_GettingStarted_028_section.html)
+
+  * [Getting started with Config](./iam_example_config_service_GettingStarted_053_section.html)
+
+  * [Getting Started with IoT Device Defender](./iam_example_iot_GettingStarted_079_section.html)
+
+  * [Getting started with Step Functions](./iam_example_iam_GettingStarted_080_section.html)
+
@@ -18,0 +45,8 @@ Action examples are code excerpts from larger programs and must be run in contex
+  * [Moving hardcoded secrets to Secrets Manager](./iam_example_secrets_manager_GettingStarted_073_section.html)
+
+  * [Run CPU stress tests on EC2 instances using FIS](./iam_example_iam_GettingStarted_069_section.html)
+
+  * [Setting up Systems Manager](./iam_example_iam_GettingStarted_046_section.html)
+
+  * [Using property variables in CloudWatch dashboards to monitor multiple Lambda functions](./iam_example_iam_GettingStarted_032_section.html)
+