https://pulumi.com logo
#general
Title
# general
n

nice-airport-15607

10/24/2019, 5:23 PM
I have multiple pulumi stacks in a project, and after being able to deploy
stack1
, I’m getting and error when trying to deploy
stack2
. I’ve exported my environment via
export AWS_PROFILE=staging
and logged into the appropriate s3 endpoint, but I’m getting the following error. Does anyone know what I could be doing wrong?
Copy code
Error: invocation of aws:cloudformation/getStack:getStack returned an error: unable to discover AWS AccessKeyID and/or SecretAccessKey
.
c

colossal-beach-47527

10/24/2019, 6:32 PM
There are a lot of things that could go wrong here, but some suggestions in case you haven’t verified it already: - Confirm that your
~/.aws/config
file exists, and references the right profiles. - You might want to have
export AWS_SDK_LOAD_CONFIG=1
as well. See: https://docs.aws.amazon.com/sdk-for-go/api/aws/session/#pkg-index
n

nice-airport-15607

10/24/2019, 6:35 PM
- I have a
credentials
file that has the appropriate profiles, should it be in
config
? - I’ll look at the aws load config. thx.
The thing that is weird is that i can deploy
stack1
with no issues, so i know the
credentials
work, but when i got to log into
stack2
the deploy fails with same creds.
btw @colossal-beach-47527 the option for
AWS_SDK_LOAD_CONFIG
seemed to have worked… not sure why yet, but I’ll look into that option. thx.
👍🏽 1