sparse-intern-71089
02/16/2024, 6:37 PMbreezy-australia-99838
02/16/2024, 6:40 PM[sso-session dev-sso]
sso_start_url = <https://openphone-sso.awsapps.com/start>
sso_region = us-west-2
[default]
region = us-west-2
[profile dev-sso]
sso_session = dev-sso
sso_account_id = ...
sso_role_name = AdministratorAccess
region = us-west-2
breezy-australia-99838
02/16/2024, 6:45 PMsean@seans-MacBook-Pro eks % aws sts get-caller-identity
{
"UserId": ...
"Account": ...
witty-candle-66007
02/16/2024, 7:19 PMPulumi.stack.yaml
file for the good stack look the same as the stack yaml file for the problematic stack?breezy-australia-99838
02/16/2024, 7:38 PMenvironment
defined
2. the good stack was missing that—adding environment breaks it
maybe this a pulumi esc issue? what I still can't figure out is I was working happily in my branch and then without any changes to the stack configuration, this ESC+OIDC error startedwitty-candle-66007
02/16/2024, 7:46 PMenvironment
set - was it set to point at an environment that uses the aws::login provider?
As described here: https://www.pulumi.com/docs/esc/providers/aws-login/witty-candle-66007
02/16/2024, 7:47 PMbreezy-australia-99838
02/16/2024, 7:51 PMconfig:
aws:region: us-west-2
when I updated and added the environment to match the other "bad" stack, I started getting the same OIDC error:
config:
aws:region: us-west-2
environment:
- nextgen
That environment is defined in Pulumi Consolewitty-candle-66007
02/16/2024, 7:52 PMnextgen
? Is it an aws-login environment that might be overwriting your local aws sso login
?breezy-australia-99838
02/16/2024, 7:55 PMAWS_ACCESS_KEY_ID
and the like, but I assume those are the values Pulumi Cloud is using for deployments?
My teammate doesn't have this problem. I'm wondering if there's a different between mine and his aws config, especially with sso session namewitty-candle-66007
02/16/2024, 7:57 PMenvironment
settings are not specific to Pulumi Deployments.
If there is an environment
section in the stack config, it is used by pulumi up
regardless of who or what is running pulumi up
(i.e. you, someone else, a cicd pipeline or deployments).breezy-australia-99838
02/16/2024, 7:59 PM[profile sean-dev]
sso_session = admin-dev
sso_account_id = ...
sso_role_name = AdministratorAccess
region = us-west-2
[sso-session admin-dev]
sso_start_url = https://.../start
sso_region = us-west-2
sso_registration_scopes = sso:account:access
theirs (working)
[profile admin-dev]
sso_start_url = https://.../start
sso_region = us-west-2
sso_account_id = ...
sso_role_name = AdministratorAccess
region = us-west-2
output = json
witty-candle-66007
02/16/2024, 8:02 PMenvironment
configured in the stack config and it works for their stack(s) - which I’m assuming is a different stack than yours?breezy-australia-99838
02/16/2024, 8:03 PMbreezy-australia-99838
02/16/2024, 8:05 PMbreezy-australia-99838
02/16/2024, 8:58 PMAWS_
shell values conflicting with values in our Pulumi ESC. Thank you Mitch!