ECS Action Test provides a reusable GitHub Action that provisions and updates AWS ECS infrastructure using Terraform. Automate your VPC, ECS clusters, task definitions, and more directly from your CI/CD workflows.
Create a GitHub workflow in .github/workflows/deploy.yml
:
name: Deploy ECS
on:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run ECS Terraform Action
uses: quantumci/ecs-action-test@v1
with:
base_conf_var: './Base_Infra/config.tfvars'
platform_conf_var: './Platform_Infra/config.tfvars'
aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws_region: 'us-east-1'
remote_bucket_name: 'my-terraform-state-bucket'
remote_bucket_region: 'us-east-1'
action: 'apply'
./Base_Infra/config.tfvars
)../Platform_Infra/config.tfvars
).us-east-1
).apply
or destroy
).
.tfvars
files under Base_Infra
and
Platform_Infra
.AWS_ACCESS_KEY_ID
&
AWS_SECRET_ACCESS_KEY
.