Skip to content

Commit 19323e6

Browse files
committed
set CDK_DEFAULT_REGION env variable with aws configure command
1 parent 1fe7f5f commit 19323e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

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

9898
<pre>
9999
(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text)
100-
(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region)
100+
(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region)
101101
(.venv) $ cdk synth --all
102102
</pre>
103103

0 commit comments

Comments
 (0)