https://pulumi.com logo
Title
b

bumpy-summer-9075

04/28/2021, 6:55 PM
Is there a way to ignore some config changes? Because my
AWS_PROFILE
is locally different than a collegue's or even my CI, whenever I do a
pulumi up
, the value in the stack changes and breaks my CI (which doesn't expect an aws profile to be set).
Do you want to perform this update? details
  pulumi:pulumi:Stack: (same)
    [urn=urn:...]
    ~ pulumi:providers:aws: (update)
        [id=...]
        [urn=urn:...]
      + profile                  : "mfa"     <- no pls
b

billowy-army-68599

04/28/2021, 6:56 PM
if you set these in the config, you can't no - it's best to use env vars in these instances
b

bumpy-summer-9075

04/28/2021, 6:57 PM
I don't set the profile in the config
config:
  aws:allowedAccountIds:
    - '12345'
  aws:assumeRole:
    roleArn: arn:aws:iam::12345:role/some-role
    sessionName: pulumi
  aws:region: us-east-1
actually the change seems to refer to a programatically set provider:
const rootAccountProvider = new aws.Provider(
  'rootAccount',
  {
    allowedAccountIds: ['12345'],
    assumeRole: {
      roleArn: 'arn:aws:iam::12345:role/some-role',
      sessionName: 'pulumi',
    },
    profile: '', // <- doesn't help
  },
);
b

billowy-army-68599

04/28/2021, 6:58 PM
can you open an issue for this, i'm surprised this is happening
b

bumpy-summer-9075

04/28/2021, 6:58 PM
Absolutely 🙂