changing to saml auth

This commit is contained in:
Michaela Wheeler 2021-12-15 19:19:34 +11:00
parent a57a4512a9
commit b1232a9e46
2 changed files with 14 additions and 4 deletions

View File

@ -7,20 +7,24 @@ env:
tf_version: 'latest'
tf_working_dir: '.'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
jobs:
terraform:
environment: main
name: 'Terraform'
runs-on: ubuntu-latest
steps:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-region: ap-southeast-2
role-to-assume: arn:aws:iam::143841941773:role/github
role-session-name: Terraform
- uses: hashicorp/setup-terraform@v1
- name: 'Checkout'
uses: actions/checkout@master
- name: Terraform fmt
id: fmt
run: terraform fmt -check
run: terraform fmt
continue-on-error: true
- uses: EndBug/add-and-commit@v7
with:

View File

@ -13,12 +13,18 @@ jobs:
name: 'Terraform'
runs-on: ubuntu-latest
steps:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-region: ap-southeast-2
role-to-assume: arn:aws:iam::143841941773:role/github
role-session-name: Terraform
- uses: hashicorp/setup-terraform@v1
- name: 'Checkout'
uses: actions/checkout@master
- name: Terraform fmt
id: fmt
run: terraform fmt -check
run: terraform fmt
continue-on-error: true
- uses: EndBug/add-and-commit@v7
with: