I love pulumi. This is the code from a talk I gave when I was a consultant.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Go to file
Seth Doty 6c63a39ca3 Documentation updates 3 years ago
.gitignore Initial Commit 3 years ago
Pulumi.dev.yaml Initial Commit 3 years ago
Pulumi.yaml Initial Commit 3 years ago
README.md Initial Commit 3 years ago
index.ts Documentation updates 3 years ago
package-lock.json Initial Commit 3 years ago
package.json Initial Commit 3 years ago
tsconfig.json Initial Commit 3 years ago

README.md

For this I'm not using the pulumi state service. Instead initialize the backend on S3. Configure your default profile to point at the account with your bucket and type:

pulumi login --cloud-url s3://name-of-s3-bucket

then you need to set a value in the pulumi configuration for the SecretMessage value. This is configured within your state file:

pulumi config set --secret secretMessage "Look mom, I'm a secret"

Now run the following:

pulumi up