tlinhart / pulumi-github-actions

AWS S3 static website using Pulumi and GitHub Actions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create Pulumi project and stack

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 website content

Create the website content and put it in www directory.

Modify Pulumi program

Modify the Pulumi program in infra/__main__.py.

Preview stack

Preview stack's resources:

cd infra
pulumi preview

Resources

About

AWS S3 static website using Pulumi and GitHub Actions

License:MIT License


Languages

Language:Python 79.7%Language:HTML 20.3%