Allow EKS cluster creation when multiple AWS profile are defined #74
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: TF Validate Cluster | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
TERRAFORM_VERSION: 1.7.5 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
working-directory: ./cluster | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Terraform | |
uses: hashicorp/setup-terraform@v2 | |
with: | |
terraform_version: ${{ env.TERRAFORM_VERSION }} | |
- name: Init | |
run: | | |
rm -rf .terraform | |
terraform init -backend=false | |
- name: Format | |
run: terraform fmt -check | |
- name: Validate | |
run: terraform validate -no-color |