sparse-intern-71089
09/10/2019, 9:04 AMstocky-island-3676
09/10/2019, 9:26 AMdamp-room-71337
09/10/2019, 9:35 AMconfig:
aws:profile: synchronicity
aws:region: eu-west-2
damp-room-71337
09/10/2019, 9:35 AM[default]
aws_access_key_id = AKIAI...
aws_secret_access_key = ...
[synchronicity]
aws_access_key_id = AKIA2...
aws_secret_access_key = ...
region = eu-west-2
damp-room-71337
09/10/2019, 9:35 AM$ pulumi preview
error: failed to load checkpoint: blob (code=Unknown): InvalidAccessKeyId: The AWS Access Key Id you provided does not exist in our records.
damp-room-71337
09/10/2019, 9:36 AM$ AWS_PROFILE=synchronicity pulumi preview
Previewing update (dev):
Type Name Plan
pulumi:pulumi:Stack synchronicity-idm-dev
damp-room-71337
09/10/2019, 9:36 AM"@pulumi/aws": "^1.1.0"
damp-room-71337
09/10/2019, 9:38 AMdefault
profile. It works when I set the AWS_PROFILE
env varstocky-island-3676
09/10/2019, 9:38 AMstocky-island-3676
09/10/2019, 9:44 AM~/.aws/config
?damp-room-71337
09/10/2019, 9:44 AM[default]
region = eu-west-2
damp-room-71337
09/10/2019, 9:46 AM[synchronicity]
region = eu-west-2
stocky-island-3676
09/10/2019, 9:52 AMregion = eu-west-2
in the ~/.aws/credentials
file?damp-room-71337
09/10/2019, 9:52 AMstocky-island-3676
09/10/2019, 9:53 AMpulumi config set aws:region eu-west-2
. Now?damp-room-71337
09/10/2019, 9:54 AMPulumi.dev.yaml
stocky-island-3676
09/10/2019, 9:56 AMcredentials
file, there’s nothing else than aws_access_key_id
& aws_secret_access_key
. The other configuration is in the config
file.
So, just to be sure: When you keep the region = eu-west-2
in the credentials
file, Pulumi doesn’t complain about “no region specified”. Without it, it does?damp-room-71337
09/10/2019, 10:02 AMdamp-room-71337
09/10/2019, 10:02 AM$ cat ~/.aws/credentials
[default]
aws_access_key_id = ...
aws_secret_access_key = ...
[synchronicity]
aws_access_key_id = ...
aws_secret_access_key = ...
$ cat ~/.aws/config
[default]
region = eu-west-2
[synchronicity]
region = eu-west-2
$ cat Pulumi.dev.yaml
config:
aws:profile: synchronicity
aws:region: eu-west-2
$ export AWS_PROFILE=
$ pulumi preview
error: failed to load checkpoint: blob (code=Unknown): InvalidAccessKeyId: The AWS Access Key Id you provided does not exist in our records.
damp-room-71337
09/10/2019, 10:03 AMsynchronicity
account/profile thoughstocky-island-3676
09/10/2019, 10:05 AMdefault
config at all?damp-room-71337
09/10/2019, 10:06 AMstocky-island-3676
09/10/2019, 10:08 AM[default]
sections in both files.damp-room-71337
09/10/2019, 10:09 AM$ pulumi preview
error: failed to load checkpoint: blob (code=Unknown): MissingRegion: could not find region configuration
damp-room-71337
09/10/2019, 10:10 AM[default]
in creds or config, and region specified in [synchronicity]
config and pulumi stack configstocky-island-3676
09/10/2019, 10:34 AM@pulumi/aws
packages?