Skip to content

Commit dd206c5

Browse files
committed
set CDK_DEFAULT_REGION env variable with aws configure command
1 parent 5ac7274 commit dd206c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Now you are ready to synthesize the CloudFormation template for this code.<br/>
8181

8282
<pre>
8383
(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text)
84-
(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region)
84+
(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region)
8585
(.venv) $ cdk synth --all
8686
</pre>
8787

0 commit comments

Comments
 (0)