Skip to content

alonch/actions-aws-backend-setup

Repository files navigation

Action AWS Backend Setup

Demo Status

Description

Search or Create Terraform backend resources on AWS

Inputs

name description required default
instance

Unique identifier for infrastructure

true my-backend

Outputs

name description
s3

Backend S3 name

dynamodb

Backend dynamodb Table

Output Environment Variables

name description
TF_BACKEND_s3

Backend S3 name

TF_BACKEND_dynamodb

Backend dynamodb Table

Sample Usage

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages