https://pulumi.com logo
e

elegant-twilight-2745

11/22/2019, 4:58 PM
pulumi config aws:profile <profilename> <--- where do I get this in AWS Console?
g

gentle-diamond-70147

11/22/2019, 6:53 PM
I believe this is the profile name in the
~/.aws/credentials
on your local machine.
e

elegant-twilight-2745

11/22/2019, 7:05 PM
thanks then from pulumi can I check if AWS configured correctly? Or I can only do that in AWS CLI?
In my credential file: [saml] output = json region = us-east-1 aws_access_key_id = XXXX aws_secret_access_key = XXXXX aws_session_token = XXXX that's all...dont see profile name
But it was created by corp script: python saml_creds.py --username XXXX --account 123456789 --rolename DEV --certfile x.pem
Then profilename is username
I assume
Now using username: pulumi config set aws:profile <username> error: could not get cloud url: could not load current project: yaml: line 2: mapping values are now allowed in this context
Hope this is not corporate firewall issue
g

gentle-diamond-70147

11/22/2019, 8:51 PM
you get that error from the
pulumi config set ...
command? It sounds like your
Pulumi.<stack>.yaml
file is malformed somehow.
e

elegant-twilight-2745

11/23/2019, 5:47 AM
Or pulumi config set aws: profile saml?
But Pulumi.<stack>.yaml is auto generated?
w

white-balloon-205

11/23/2019, 3:05 PM
It is generated and modified when you use
pulumi config set
. You are also free to hand author it instead of using that command.
e

elegant-twilight-2745

11/23/2019, 6:09 PM
Thanks Luke is the Pulumi config set aws: profile saml correct? Given credential file: [saml]