Skip to content

Adding a variabe to use an aws role without creating one #214

Adding a variabe to use an aws role without creating one

Adding a variabe to use an aws role without creating one #214

Workflow file for this run

name: gcp-terraform
# Run this workflow only on pushes
# to the cloud_GCP/terraform directory
on:
push:
paths: 'cloud_GCP/terraform/**'
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
# Static Analysis of the Terraform module and its code
# Stuff like linters, etc.
static-analysis:
runs-on: ubuntu-latest
steps:
- name: (HELPER) Checkout Code
uses: actions/checkout@v2
# Initialize the Terraform code
- name: (HELPER) Init Code
uses: docker://hashicorp/terraform:1.0.0
with:
entrypoint: terraform
args: -chdir=cloud_GCP/terraform/module/tests/ init -no-color
# Lint the Terraform code
# Using: https://github.com/terraform-linters/tflint
- name: TFLint Module
uses: docker://wata727/tflint:0.19.1
with:
args: --loglevel debug --module cloud_GCP/terraform/module/
# Validate the Terraform code using inbuilt
# validate command
- name: Validate Module
uses: docker://hashicorp/terraform:1.0.0
with:
entrypoint: terraform
args: -chdir=cloud_GCP/terraform/module/tests/ validate -no-color