Skip to content

fixed workloads hierarchy #11

fixed workloads hierarchy

fixed workloads hierarchy #11

name: Deploy Terraform
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy Terraform
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Terraform
uses: hashicorp/setup-terraform@v1
with:
terraform_version: 1.6.5
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: eu-west-2
role-to-assume: arn:aws:iam::932191515807:role/github-oidc/github-deployment
- name: Initialize Terraform
run: terraform init -backend-config="bucket=tf-state-eu-west-2-932191515807" -backend-config="key=alexmills-uk/aws-organisation.tfstate" -backend-config="dynamodb_table=tf-state-eu-west-2-932191515807"
- name: Plan Terraform
run: terraform plan -out=tfplan
- name: Apply Terraform
run: terraform apply -auto-approve tfplan