Open mvitale-kensu opened 1 month ago
Hey @mvitale-kensu, the solution expects that you set CDK_DEFAULT_ACCOUNT
and CDK_DEFAULT_REGION
env variables. See here for details: https://github.com/aws-samples/amazon-mwaa-examples/tree/main/usecases/start-stop-mwaa-environment#1-create-a-env-file. Were these env variables not set when you deployed?
Hey @crupakheti,
Yes CDK_DEFAULT_ACCOUNT
and CDK_DEFAULT_REGION
were set in the .env
file but it was not enough.
I've also tried to export them in the shell (with export CDK_DEFAULT_ACCOUNT=...
) but still, it was not working.
Only after running export AWS_REGION=eu-west-3
the deployment worked fine.
Thank you, @mvitale-kensu! Did this error occur when you ran cdk bootstrap
or when you ran npm run deploy
?
The error occurs when running npm run deploy
No issues with cdk bootstrap
Hello guys, I was testing the
start-stop-mwaa-environment
project for our MWAA ineu-west-3
. I just wanted to let you know, that at least in my case, to successfully run thenpm run deploy
step I had to set this env var:Without this variable
npm run deploy
would output this warning (see the-us-east-1
):And then errors out with:
After setting:
It worked perfectly. Maybe is something that will be useful to have in the readme.
We are on airflow
2.7.2
and I am using the latest code of this project available inmain
.