Skip to content

Commit

Permalink
update module tags
Browse files Browse the repository at this point in the history
  • Loading branch information
yadavprakash committed Jun 17, 2021
1 parent 3b2673d commit 2ffa5b9
Showing 1 changed file with 38 additions and 35 deletions.
73 changes: 38 additions & 35 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,75 +4,78 @@ on:
branches:
- master

jobs:
fmt:
name: 'terraform fmt'
terraform:
name: 'Terraform'
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v2.3.4
uses: actions/checkout@master

- name: Configure AWS Credentials
uses: clouddrove/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.TEST_AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.TEST_AWS_ACCESS_SECRET_KEY }}
aws-region: us-east-2

- name: 'Terraform Format'
uses: 'clouddrove/github-actions@v7.0'
with:
actions_subcommand: 'fmt'
- name: 'Terraform Format'

- name: 'Terraform init Public-subnet'
uses: 'clouddrove/github-actions@v7.0'
with:
actions_subcommand: 'fmt'
actions_subcommand: 'init'
tf_actions_working_dir: ./_example/public-subnet

validate:
name: 'terraform validate'
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v2.3.4
- name: 'Terraform validate Public-subnet'
uses: 'clouddrove/github-actions@v7.0'
with:
actions_subcommand: 'validate'
tf_actions_working_dir: ./_example/public-subnet

- name: 'Configure AWS Credentials'
uses: clouddrove/configure-aws-credentials@v1
- name: 'Terraform plan Public-subnet'
uses: 'clouddrove/github-actions@v7.0'
with:
aws-access-key-id: ${{ secrets.TEST_AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.TEST_AWS_ACCESS_SECRET_KEY }}
aws-region: us-east-2
actions_subcommand: 'plan'
tf_actions_working_dir: ./_example/public-subnet

- name: 'Terraform init'
- name: 'Terraform init Private-subnet'
uses: 'clouddrove/github-actions@v7.0'
with:
actions_subcommand: 'init'
tf_actions_working_dir: ./_example/private-subnet

- name: 'Terraform validate'
- name: 'Terraform validate Private-subnet'
uses: 'clouddrove/github-actions@v7.0'
with:
actions_subcommand: 'validate'
tf_actions_working_dir: ./_example/private-subnet

plan:
name: 'terraform plan'
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v2.3.4
- name: 'Terraform plan Private-subnet'
uses: 'clouddrove/github-actions@v7.0'
with:
actions_subcommand: 'plan'
tf_actions_working_dir: ./_example/private-subnet

- name: 'Terraform init'
- name: 'Terraform init Public-Private-subnet'
uses: 'clouddrove/github-actions@v7.0'
with:
actions_subcommand: 'init'
tf_actions_working_dir: ./_example/private-subnet
tf_actions_working_dir: ./_example/public-private-subnet

- name: 'Configure AWS Credentials'
uses: clouddrove/configure-aws-credentials@v1
- name: 'Terraform validate Public-Private-subnet'
uses: 'clouddrove/github-actions@v7.0'
with:
aws-access-key-id: ${{ secrets.TEST_AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.TEST_AWS_ACCESS_SECRET_KEY }}
aws-region: us-east-2
actions_subcommand: 'validate'
tf_actions_working_dir: ./_example/public-private-subnet

- name: 'Terraform plan'
- name: 'Terraform plan Public-Private-subnet'
uses: 'clouddrove/github-actions@v7.0'
with:
actions_subcommand: 'plan'
tf_actions_working_dir: ./_example/private-subnet

tf_actions_working_dir: ./_example/public-private-subnet

pre-commit:
name: 'Pre-Commit'
Expand Down

0 comments on commit 2ffa5b9

Please sign in to comment.