https://pulumi.com logo
#aws
Title
b

bitter-dentist-28132

02/03/2021, 4:14 PM
did the aws stuff change so that creating a provider no longer uses the like "default" stuff? i now get this error when trying to create a provider in another region:
Copy code
providerCredentialOpts and an AWS provider instance must be set together
i very much want to not configure the auth options for the provider, just like is the case for the default aws provider
b

billowy-army-68599

02/03/2021, 4:32 PM
hey, i think you're getting this from the EKS provider, right?
or is it the pure aws provider?
b

bitter-dentist-28132

02/03/2021, 5:07 PM
hard to say, but it's possible:
Copy code
Error: providerCredentialOpts and an AWS provider instance must be set together
        at new Cluster (/home/chuck/le-codes/test-asp-pulumi-front/node_modules/@pulumi/cluster.ts:1382:19)
b

billowy-army-68599

02/03/2021, 5:09 PM
yeah it's from the EKS provider, can you share your code? are you using the
AWS_PROFILE
environment variable?
b

bitter-dentist-28132

02/03/2021, 5:15 PM
i can but it's a lot of code. i am not using
AWS_PROFILE
(because i am using the
default
profile).
with
TF_LOG=trace
i can see i am getting 403 errors from sts, which doesn't really make sense.
ah, i see. i was using a different profile before and that's baked into the state file.
that's likely it
yeah, that seems to be the issue. thanks for pointing me in the right direction.
well, i still have that issue on newer versions, but it works with older versions. good enough for me.