https://pulumi.com logo
#aws
Title
# aws
b

billowy-plastic-61471

09/20/2022, 10:35 AM
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

little-cartoon-10569

09/20/2022, 7:58 PM
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

billowy-plastic-61471

09/21/2022, 9:40 AM
👌 Yup, I needed to share it with the Unreal Engine team so they can use the S3 Unreal Plugin
2 Views