Providing --profile
is not enough, need to set env vars as well?
#28513
Unanswered
JoshMcCullough
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello. Let's say I'm deploying a stack to the
us-east-1
region using mysome-iam
profile. I do this:And I set the
region
property of my stack tous-east-1
(really it's provided from the app's context). I get the error:Looking at the verbose output, I see:
If I set my terminal to use the same profile/region, the following works:
If I leave those env vars set and run the
cdk deploy ...
command again, it works.Question: why do I have to set the
AWS_PROFILE
env var if I'm already passing the same profile via--profile
?Beta Was this translation helpful? Give feedback.
All reactions