Skip to content

Repository files navigation

Pulumi Samples

Small Pulumi examples in TypeScript and Go.

<typescript-project>/
├── Pulumi.yaml
├── package.json
├── tsconfig.json
└── index.ts

<go-project>/
├── Pulumi.yaml
├── go.mod
└── main.go
Project Language Description
typescript-random TypeScript Random pet name + password via @pulumi/random
typescript-local-file TypeScript Writes a greeting file via @pulumi/command
typescript-aws-s3 TypeScript Private S3 bucket with a random name prefix
go-random Go Random pet name + password via pulumi-random
go-local-file Go Writes a greeting file via pulumi-command

The AWS sample needs aws configure. Local-file and AWS manifests set approval: true and pin harness configuration.

Install

brew install pulumi node go

The AWS sample also needs aws configure.

Usage

TypeScript:

cd typescript-random
npm install
pulumi stack init dev
pulumi up
pulumi destroy

Go:

cd go-random
pulumi stack init dev
pulumi up
pulumi destroy

Plural

Stack manifests live in manifests/. They use cluster: mgmt (your mgmt cluster handle from plural up). Change it if yours differs (kubectl get clusters -A).

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages