https://pulumi.com logo
#general
Title
# general
f

future-morning-96441

05/15/2019, 9:55 AM
Does
pulumi logs
(using aws) respect a config of the
aws:profile
? If
~/.aws/credentials
has a matching default profile, the cli command works for me, but I couldn't figure out how/where to specify a different profile than the default. (I have another profile configured in the stack's config
Pulumi.dev.yaml
which works fine for deployment.)
w

white-balloon-205

05/15/2019, 1:12 PM
It looks like we do not currently apply all the same AWS configuration options in configuring the client for
pulumi logs
. See https://github.com/pulumi/pulumi/blob/f6c25b7d2dd881ef892ce03b5cf1ca579b8c71e4/pkg/operations/operations_aws.go#L47-L61. How exactly are you configuring AWS in your case? Is it just setting
aws:profile
to a valid profile in
~/.aws/credentials
? Is that configuration working for deployments but not for
pulumi logs
?
f

future-morning-96441

05/16/2019, 12:30 PM
Exactly. I have several profiles in
~/aws/credentials
and I set `aws:profile`in the stack's config (e.g.
Pulumi.dev.yaml
). This works fine for deployment, but not for
pulumi logs
, which uses the default profile of
~/.aws/credentials
.