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 2ffa5b9 commit 014aa66
Showing 1 changed file with 34 additions and 29 deletions.
63 changes: 34 additions & 29 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,64 +18,69 @@ on:
aws-secret-access-key: ${{ secrets.TEST_AWS_ACCESS_SECRET_KEY }}
aws-region: us-east-2

- name: 'Terraform Format'
uses: 'clouddrove/github-actions@v7.0'
validate:
name: 'terraform validate'
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v2.3.4

- name: 'Configure AWS Credentials'
uses: clouddrove/configure-aws-credentials@v1
with:
actions_subcommand: 'fmt'
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 init Public-subnet'
- name: 'Terraform init'
uses: 'clouddrove/github-actions@v7.0'
with:
actions_subcommand: 'init'
tf_actions_working_dir: ./_example/public-subnet
tf_actions_working_dir: ./_example/default-s3

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

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

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

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

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

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

- name: 'Terraform validate Public-Private-subnet'
uses: 'clouddrove/github-actions@v7.0'
- name: 'Configure AWS Credentials'
uses: clouddrove/configure-aws-credentials@v1
with:
actions_subcommand: 'validate'
tf_actions_working_dir: ./_example/public-private-subnet
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 plan Public-Private-subnet'
- name: 'Terraform plan'
uses: 'clouddrove/github-actions@v7.0'
with:
actions_subcommand: 'plan'
tf_actions_working_dir: ./_example/public-private-subnet
tf_actions_working_dir: ./_example/default-s3

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

0 comments on commit 014aa66

Please sign in to comment.