Sign in

Pulumi get start tutorial

Offical website, https://www.pulumi.com/

Installation

Sign up a new account in pulumi website since you need a Access Token

Then go to https://app.pulumi.com/socloud/settings/tokens, create new token

Back to terminal, login your pulumi account

You can see which account your logged in by using

Start new project, …

Below is a simple example for createing an s3 bucket

add modules/index.ts

Add dotenv package

and place BUCKET_NAME key which is the name of the bucket name you want

Add an index.ts in root

Run command, then it will follow your aws default profile to execute

To destroy the Infrastructure, you can just run

if you want to setup script base on your profile, you can add more script in your package.json, below are example (replace {your_profile_name})

then you can just run

Here is link of the example, enjoy !