Viewing docs for AWS v7.22.0
published on Wednesday, Mar 11, 2026 by Pulumi
published on Wednesday, Mar 11, 2026 by Pulumi
Setup AWS Secrets manager
Viewing docs for AWS v7.22.0
published on Wednesday, Mar 11, 2026 by Pulumi
published on Wednesday, Mar 11, 2026 by Pulumi
A simple program that creates an AWS secret and a version under AWS Secrets Manager
Deploying and running the program
Create a new stack:
$ pulumi stack init devSet the AWS region:
$ pulumi config set aws:region us-east-1Restore NPM modules via
npm installoryarn install.Run
pulumi upto preview and deploy changes:$ pulumi up Previewing update (dev) ... Updating (dev) View Live: https://app.pulumi.com/acmecorp/aws-secrets-manager/dev/updates/1 Type Name Status + pulumi:pulumi:Stack aws-secrets-manager-dev created + ├─ aws:secretsmanager:Secret secretContainer created + └─ aws:secretsmanager:SecretVersion secret created Outputs: secretContainerId: "arn:aws:secretsmanager:us-east-1:xxxxxxxx:secret:secretContainer-369b7ea-Wrt9Ba" Resources: + 3 created Duration: 8s
Clean up
Run
pulumi destroyto tear down all resources.To delete the stack itself, run
pulumi stack rm. Note that this command deletes all deployment history from the Pulumi console.
Viewing docs for AWS v7.22.0
published on Wednesday, Mar 11, 2026 by Pulumi
published on Wednesday, Mar 11, 2026 by Pulumi
