Hi, how to get the AccessKey Secret when initially...
# aws
b
Hi, how to get the AccessKey Secret when initially creating an IAM user with Pulumi? Here’s the code:
Copy code
new aws.iam.AccessKey(
  'test-access-key',
  { user: testIamUser.name }
)
And here’s the
pulumi up
Output:
Copy code
accessKey              : {
  id    : "AKIA3U6R3XXXXX2UPF44"
  secret: [secret]
}
How do I initially get that
[secret]
value Thanks
1
Solved with:
Copy code
pupumi stack output -s <ORG/STACK> accessKey --json --show-secrets
If someone knows a better way, let me know.
l
If you need it outside of the Pulumi program, this is the correct way to do it (though the --json opt is optional).
1
b
👌 Yup, I needed to share it with the Unreal Engine team so they can use the S3 Unreal Plugin