-
Follow the instructions at Pulumi Doc. to install Pulumi.
-
If you are using a Mac, you can install Pulumi with Homebrew:
brew install pulumi
-
If you are using Windows, you can install Pulumi with Chocolatey:
choco install pulumi
-
If you are using Linux, you can install Pulumi with Snap:
snap install pulumi --classic
install python3-venv python3-pip
- If you are using Windows, you can use the following command to configure Pulumi to access your AWS account:
pulumi config set aws:region us-east-1
pulumi config set aws:accessKey <YOUR_ACCESS_KEY_ID>
pulumi config set aws:secretKey <YOUR_SECRET_ACCESS_KEY>
or
$env:AWS_ACCESS_KEY_ID = "<YOUR_ACCESS_KEY_ID>"
$env:AWS_SECRET_ACCESS_KEY = "<YOUR_SECRET_ACCESS_KEY>"
or if you are using Linux or Mac:
export AWS_ACCESS_KEY_ID="<YOUR_ACCESS_KEY_ID>"
export AWS_SECRET_ACCESS_KEY="<YOUR_SECRET_ACCESS_KEY>"
pulumi new aws-pulumi-s3
pulumi up
pulumi stack output bucket_name
pulumi up
aws s3 ls $(pulumi stack output bucket_name)
pulumi destroy