Search or Create Terraform backend resources on AWS
name | description | required | default |
---|---|---|---|
instance |
Unique identifier for infrastructure |
true |
my-backend |
name | description |
---|---|
s3 |
Backend S3 name |
dynamodb |
Backend dynamodb Table |
name | description |
---|---|
TF_BACKEND_s3 |
Backend S3 name |
TF_BACKEND_dynamodb |
Backend dynamodb Table |
permissions:
id-token: write
jobs:
apply:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v4
- uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
role-to-assume: ${{ secrets.ROLE_ARN }}
role-session-name: ${{ github.actor }}
- uses: alonch/actions-aws-backend-setup@main
with:
instance: demo
- uses: alonch/actions-aws-website@main
with:
domain: ${{ env.DOMAIN }}
content-path: public
action: apply