Is there a way to ignore some config changes? Beca...
# general
b
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).
Copy code
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
if you set these in the config, you can't no - it's best to use env vars in these instances
b
I don't set the profile in the config
Copy code
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:
Copy code
const rootAccountProvider = new aws.Provider(
  'rootAccount',
  {
    allowedAccountIds: ['12345'],
    assumeRole: {
      roleArn: 'arn:aws:iam::12345:role/some-role',
      sessionName: 'pulumi',
    },
    profile: '', // <- doesn't help
  },
);
b
can you open an issue for this, i'm surprised this is happening
b
Absolutely 🙂