AWS Security ChangesHomeSearch

AWS step-functions documentation change

Service: step-functions · 2025-04-18 · Documentation low

File: step-functions/latest/dg/sfn-local-test-sm-exec.md

Summary

Replaced hardcoded account IDs (123456789012) and regions (us-east-1) with placeholder values (account-id/region) in ARNs and QueueUrl examples

Security assessment

Changes standardize documentation examples but do not address security vulnerabilities or describe security features

Diff

diff --git a/step-functions/latest/dg/sfn-local-test-sm-exec.md b/step-functions/latest/dg/sfn-local-test-sm-exec.md
index 105a38e6f..a0a96c67e 100644
--- a//step-functions/latest/dg/sfn-local-test-sm-exec.md
+++ b//step-functions/latest/dg/sfn-local-test-sm-exec.md
@@ -161 +161 @@ The following is an example of a state machine definition called `LambdaSQSInteg
-            "QueueUrl":"https://sqs.us-east-1.amazonaws.com/123456789012/myQueue",
+            "QueueUrl":"https://sqs.us-east-1.amazonaws.com/account-id/myQueue",
@@ -305,2 +305,2 @@ After you create and provide a mock configuration file to Step Functions Local,
-        --definition "{\"Comment\":\"Thisstatemachineiscalled:LambdaSQSIntegration\",\"StartAt\":\"LambdaState\",\"States\":{\"LambdaState\":{\"Type\":\"Task\",\"Resource\":\"arn:aws:states:::lambda:invoke\",\"Parameters\":{\"Payload.$\":\"$\",\"FunctionName\":\"arn:aws:lambda:us-east-1:123456789012:function:HelloWorldFunction\"},\"Retry\":[{\"ErrorEquals\":[\"States.ALL\"],\"IntervalSeconds\":2,\"MaxAttempts\":3,\"BackoffRate\":2}],\"Next\":\"SQSState\"},\"SQSState\":{\"Type\":\"Task\",\"Resource\":\"arn:aws:states:::sqs:sendMessage\",\"Parameters\":{\"QueueUrl\":\"https://sqs.us-east-1.amazonaws.com/123456789012/myQueue\",\"MessageBody.$\":\"$\"},\"End\":true}}}" \
-        --name "LambdaSQSIntegration" --role-arn "arn:aws:iam::123456789012:role/service-role/LambdaSQSIntegration"
+        --definition "{\"Comment\":\"Thisstatemachineiscalled:LambdaSQSIntegration\",\"StartAt\":\"LambdaState\",\"States\":{\"LambdaState\":{\"Type\":\"Task\",\"Resource\":\"arn:aws:states:::lambda:invoke\",\"Parameters\":{\"Payload.$\":\"$\",\"FunctionName\":\"arn:aws:lambda:region:account-id:function:HelloWorldFunction\"},\"Retry\":[{\"ErrorEquals\":[\"States.ALL\"],\"IntervalSeconds\":2,\"MaxAttempts\":3,\"BackoffRate\":2}],\"Next\":\"SQSState\"},\"SQSState\":{\"Type\":\"Task\",\"Resource\":\"arn:aws:states:::sqs:sendMessage\",\"Parameters\":{\"QueueUrl\":\"https://sqs.us-east-1.amazonaws.com/account-id/myQueue\",\"MessageBody.$\":\"$\"},\"End\":true}}}" \
+        --name "LambdaSQSIntegration" --role-arn "arn:aws:iam::account-id:role/service-role/LambdaSQSIntegration"
@@ -317 +317 @@ The following command is an example that uses the `LambdaSQSIntegration` state m
-        --state-machine arn:aws:states:us-east-1:123456789012:stateMachine:LambdaSQSIntegration#HappyPath
+        --state-machine arn:aws:states:region:account-id:stateMachine:LambdaSQSIntegration#HappyPath
@@ -327 +327 @@ The following is an example response to calling `StartExecution` using the mocke
-       "executionArn":"arn:aws:states:us-east-1:123456789012:execution:LambdaSQSIntegration:executionWithHappyPathMockedServices"
+       "executionArn":"arn:aws:states:region:account-id:execution:LambdaSQSIntegration:executionWithHappyPathMockedServices"
@@ -334 +334 @@ The following is an example response to calling `StartExecution` using the mocke
-        --execution-arn arn:aws:states:us-east-1:123456789012:execution:LambdaSQSIntegration:executionWithHappyPathMockedServices
+        --execution-arn arn:aws:states:region:account-id:execution:LambdaSQSIntegration:executionWithHappyPathMockedServices