Skip to content

Commit

Permalink
fixing main.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
arnol377 committed Sep 23, 2024
2 parents fbf1ce0 + f470ae6 commit 50944c3
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 20 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/echo_vars.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This is a basic workflow to help you get started with Actions
name: Echo Vars

# Controls when the workflow will run
on:
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
Echo:
# The type of runner that the job will run on
runs-on: [ "229685449397" ]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- run: |
env | grep -i proxy
28 changes: 9 additions & 19 deletions .github/workflows/terraform_apply.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,15 @@ jobs:
# This workflow contains a single job called "build"
Apply:
# The type of runner that the job will run on
runs-on: [ automation-repos ]
runs-on: [ "229685449397" ]
env:
AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"
AWS_ACCESS_KEY_ID: "${{ vars.AWS_ACCESS_KEY_ID }}"
AWS_DEFAULT_REGION: "${{ vars.AWS_DEFAULT_REGION }}"
GITHUB_TOKEN: "${{ secrets.GH_TOKEN }}"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"


# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3


- uses: CSVD/gh-actions-setup-node@v3
with:
node-version: 16
Expand All @@ -35,15 +30,6 @@ jobs:
with:
terraform_wrapper: false
terraform_version: ${{ vars.terraform_version }}

- name: Terraform Format
id: fmt
run: |
terraform fmt -check
- name: Autoformat Halt
if: env.auto_format == 'true'
run: exit 1

- name: Terraform Init
id: init
Expand All @@ -53,7 +39,11 @@ jobs:
id: validate
run: terraform validate

- name: Terraform Apply
- name: Terraform Plan
id: plan
run: terraform apply -auto-approve
continue-on-error: true
run: terraform validate

# - name: Terraform Apply
# id: plan
# run: terraform apply -auto-approve
# continue-on-error: true
2 changes: 1 addition & 1 deletion .github/workflows/terraform_plan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
# This workflow contains a single job called "build"
Plan:
# The type of runner that the job will run on
runs-on: [ automation-repos ]
runs-on: [ "229685449397" ]
env:
AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"
AWS_ACCESS_KEY_ID: "${{ vars.AWS_ACCESS_KEY_ID }}"
Expand Down

0 comments on commit 50944c3

Please sign in to comment.