export AWS_PROFILE=pasmen
pulumi login --cloud-url s3://pulumi.linhart.tech
pulumi new aws-python --dir infra
Provide these values:
- project name: pulumi-github-actions
- project description: Deploy static website to AWS S3 using Pulumi and GitHub Actions
- stack name: prod
- passphrase: <secret-passphrase>
- aws:region: eu-central-1
export PULUMI_CONFIG_PASSPHRASE=<secret-passphrase>
cd infra
pulumi config set aws:profile pasmen
Create the website content and put it in www
directory.
Modify the Pulumi program in infra/__main__.py
.
Preview stack's resources:
cd infra pulumi preview