Skip to content

Terraform Apply / Runners / Production - ALI #48

Terraform Apply / Runners / Production - ALI

Terraform Apply / Runners / Production - ALI #48

name: Terraform Apply / Runners / Production - ALI
on:
workflow_dispatch:
concurrency:
group: "terraform-make-apply"
cancel-in-progress: false
permissions:
id-token: write
contents: read
jobs:
release:
name: Terraform Apply
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v4
- name: Install Terraform
uses: opentofu/setup-opentofu@v1
with:
terraform_version: 1.5.7
terraform_wrapper: false
- name: Install virtualenv
run: pip install virtualenv
- name: configure aws credentials
uses: aws-actions/[email protected]
with:
role-to-assume: arn:aws:iam::${{ secrets.PY_FOUNDATION_AWS_ACC_ID }}:role/${{ secrets.PY_FOUNDATION_AWS_DEPLOY_ROLE }}
aws-region: us-east-1
- name: Terraform Apply
working-directory: ali/aws/391835788720/us-east-1
shell: bash
run: make apply
env:
AWS_DEFAULT_REGION: us-east-1
GITHUB_TOKEN: ${{ secrets.LIST_PYTORCH_RUNNERS_GITHUB_TOKEN }}
TERRAFORM_EXTRAS: -auto-approve -lock-timeout=15m