AWS code-library documentation change
Summary
Fixed broken Wait command link and added shared bucket detection logic
Security assessment
Link correction and operational improvement for bucket sharing. No security vulnerability addressed
Diff
diff --git a/code-library/latest/ug/bash_2_ec2_code_examples.md b/code-library/latest/ug/bash_2_ec2_code_examples.md index fb4e76fc8..9e1bfbd18 100644 --- a//code-library/latest/ug/bash_2_ec2_code_examples.md +++ b//code-library/latest/ug/bash_2_ec2_code_examples.md @@ -7119 +7119 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - * [Wait](https://docs.aws.amazon.com/goto/aws-cli/ecs-2014-11-13/Wait) + * [Wait](https://docs.aws.amazon.com/goto/aws-cli/iam-2010-05-08/Wait) @@ -9992,0 +9993,9 @@ There's more on GitHub. Find the complete example and learn how to set up and ru + # Check for shared prereq bucket + PREREQ_BUCKET=$(aws cloudformation describe-stacks --stack-name tutorial-prereqs-bucket \ + --query 'Stacks[0].Outputs[?OutputKey==`BucketName`].OutputValue' --output text 2>/dev/null) + if [ -n "$PREREQ_BUCKET" ] && [ "$PREREQ_BUCKET" != "None" ]; then + BUCKET_NAME="$PREREQ_BUCKET" + BUCKET_IS_SHARED=true + echo "Using shared bucket: $BUCKET_NAME" + else + BUCKET_IS_SHARED=false @@ -9993,0 +10003 @@ There's more on GitHub. Find the complete example and learn how to set up and ru + fi