Skip to content

Commit

Permalink
Update .github/workflows/terraform-plan-dev.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
arnol377 committed Dec 18, 2024
1 parent 905df30 commit 4c0219f
Showing 1 changed file with 7 additions and 21 deletions.
28 changes: 7 additions & 21 deletions .github/workflows/terraform-plan-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,9 @@ concurrency:
permissions: write-all

jobs:
Auth:
Plan:
runs-on: ["229685449397"]

outputs:
aws_access_key_id: ${{ steps.aws_auth.outputs.aws_access_key_id }}
aws_secret_access_key: ${{ steps.aws_auth.outputs.aws_secret_access_key }}
aws_session_token: ${{ steps.aws_auth.outputs.aws_session_token }}

steps:
- name: AWS Auth
id: aws_auth
uses: CSVD/aws-auth@main
with:
ecs: true
Plan:
runs-on: ["Default"]
needs: Auth
steps:
- uses: CSVD/gh-actions-checkout@v4
id: checkout
Expand Down Expand Up @@ -67,9 +53,9 @@ jobs:
cache_bucket: image-pipeline-assets
env:
GITHUB_TOKEN: ${{ steps.github_credentials.outputs.github_token }}
AWS_ACCESS_KEY_ID: ${{ needs.Auth.outputs.aws_access_key_id }}
AWS_SECRET_ACCESS_KEY: ${{ needs.Auth.outputs.aws_secret_access_key }}
AWS_SESSION_TOKEN: ${{ needs.Auth.outputs.aws_session_token }}
AWS_ACCESS_KEY_ID: ${{ steps.aws_auth.outputs.aws_access_key_id }}
AWS_SECRET_ACCESS_KEY: ${{ steps.aws_auth.outputs.aws_secret_access_key }}
AWS_SESSION_TOKEN: ${{ steps.aws_auth.outputs.aws_session_token }}

- name: Terraform Plan
uses: CSVD/terraform-plan@main
Expand All @@ -83,9 +69,9 @@ jobs:
cache_key: ${{ steps.terraform_init.outputs.s3_upload_path }}
cache_bucket: image-pipeline-assets
env:
AWS_ACCESS_KEY_ID: ${{ needs.Auth.outputs.aws_access_key_id }}
AWS_SECRET_ACCESS_KEY: ${{ needs.Auth.outputs.aws_secret_access_key }}
AWS_SESSION_TOKEN: ${{ needs.Auth.outputs.aws_session_token }}
AWS_ACCESS_KEY_ID: ${{ steps.aws_auth.outputs.aws_access_key_id }}
AWS_SECRET_ACCESS_KEY: ${{ steps.aws_auth.outputs.aws_secret_access_key }}
AWS_SESSION_TOKEN: ${{ steps.aws_auth.outputs.aws_session_token }}
GITHUB_TOKEN: ${{ steps.github_credentials.outputs.github_token }}
GITHUB_OWNER: ${{ github.repository_owner }}
GITHUB_BASE_URL: "${{ github.server_url }}/"
Expand Down

0 comments on commit 4c0219f

Please sign in to comment.