AWS v6.64.0 published on Friday, Dec 6, 2024 by Pulumi
Setup AWS Secrets manager
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 dev
Set the AWS region:
$ pulumi config set aws:region us-east-1
Run
pulumi up
to preview and deploy changes:$ pulumi up Previewing update (dev) ... Updating (dev) View Live: https://app.pulumi.com/acmecorp/aws-py-secrets-manager/dev/updates/1 Type Name Status - pulumi:pulumi:Stack aws-py-secrets-manager-dev created - ├─ aws:secretsmanager:Secret secret_container created - └─ aws:secretsmanager:SecretVersion secret_version created Outputs: secret_id: "arn:aws:secretsmanager:us-east-1:xxxxxxxx:secret:secret_container-d07f0c4-N3OSrw" Resources: + 3 created Duration: 6s
Clean up
Run
pulumi destroy
to 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.