Skip to content

Commit 89187a5

Browse files
committed
fix: add region parameter to secretsmanager command in deploy script
- Add --region flag to aws secretsmanager get-secret-value command - Ensures the command works correctly when deploying to non-default regions
1 parent c97caba commit 89187a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

opensearch/opensearch_ubi/deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ display_outputs() {
355355

356356
if [ -n "$SECRET_ARN" ] && [ "$SECRET_ARN" != "N/A" ]; then
357357
echo -e "${YELLOW}To get OpenSearch credentials:${NC}"
358-
echo "aws secretsmanager get-secret-value --secret-id $SECRET_ARN --query SecretString --output text | jq ."
358+
echo "aws secretsmanager get-secret-value --secret-id $SECRET_ARN --query SecretString --output text --region "$REGION" | jq ."
359359
echo ""
360360
fi
361361

0 commit comments

Comments
 (0)