Skip to content

Commit ba05a45

Browse files
committed
set CDK_DEFAULT_REGION env variable with aws configure command
1 parent ab23ef5 commit ba05a45

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

opensearch-serverless/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ At this point you can now synthesize the CloudFormation template for this code.
4747

4848
<pre>
4949
(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text)
50-
(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region)
50+
(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region)
5151
(.venv) $ cdk synth -c iam_user_name=<i>your-iam-user-name</i> --all
5252
</pre>
5353

opensearch/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ At this point you can now synthesize the CloudFormation template for this code.
4747

4848
<pre>
4949
(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text)
50-
(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region)
50+
(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region)
5151
(.venv) $ cdk synth --all
5252
</pre>
5353

0 commit comments

Comments
 (0)