Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Created September 15, 2022 21:21
Show Gist options
  • Select an option

  • Save KyMidd/6aa748642460f258c699fd6b79764de7 to your computer and use it in GitHub Desktop.

Select an option

Save KyMidd/6aa748642460f258c699fd6b79764de7 to your computer and use it in GitHub Desktop.
- name: AWS Login
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ env.aws_assume_role_arn }}
aws-region: ${{ env.region }}
- uses: hashicorp/setup-terraform@v2.0.0
with:
terraform_version: ${{ env.tf_version }}
# Required in order to download TF providers since we don't cache those due to size
- name: Terraform Init
id: init
run: terraform init -input=false
- name: Terraform Apply
id: apply
run: terraform apply -input=false tf.plan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment