Web: https://www.reddit.com/r/aws/comments/s41q1x/pulumi_creates_accesskey_then_it_fails_undefined/

Jan. 14, 2022, 8:25 p.m. | /u/aeum3893

Amazon Web Services (AWS): S3, EC2, SQS, RDS, DynamoDB, IAM, CloudFormation, Route 53, VPC and more reddit.com

const theSecrets = { AWS_ACCESS_KEY_ID: accessKey.id, AWS_SECRET_ACCESS_KEY: accessKey.encryptedSecret, } pulumi.all(theSecrets).apply(secrets => { return Object.entries(secrets).map(([secretNameEnv, plainTextValue]) => { return new github.ActionsSecret( secretNameEnv, { repository: githubRepoName, secretName: secretName, plainTextValue: plainTextValue } ) }) }) 

This would resolve the Access Key ID but the Secret Access Key would return as undefined. Pretty much all docs say this is how you would do it. I'm missing something here and I don't know what it is.

Appreciate your help, thanks.

submitted by /u/aeum3893
[link] [comments]

aws pulumi

More from reddit.com / Amazon Web Services (AWS): S3, EC2, SQS, RDS, DynamoDB, IAM, CloudFormation, Route 53, VPC and more

Cloud Technical Account Manager - Virtual

@ Amazon.com | US, TX, Virtual Location - Texas

Software Engineer, Platform Infrastructure

@ Udacity, Inc. | Mountain View, CA

Senior Site Reliability Engineering Manager / Head of DevOps (Zurich)

@ Beekeeper | Zürich, Switzerland

Senior Devops/Data Engineer - Finance Automation (US)

@ Hopper | United States

Junior Developer - DevOps

@ Sanne | Madrid, Spain

Engineering Manager, Site Reliability Engineering (Service Operations)

@ Wikimedia Foundation | Remote