Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sa 498 #49

Closed
wants to merge 26 commits into from
Closed
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions .github/workflows/terraform-plan-and-apply-aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,16 @@ jobs:
compression-level: 9
path: "tfplan*"
retention-days: 14
- name: Tar Archive TF Providers and Modules
run: tar -cvf tf-providers-modules.tar .terraform
- name: Upload TF Providers and Modules
uses: actions/upload-artifact@v4
with:
name: tf-providers-modules
compression-level: 5
path: tf-providers-modules.tar
include-hidden-files: 'true'
retention-days: 14
- name: Optional Additional Directory Upload
if: inputs.additional-dir-optional && inputs.additional-dir != ''
run: |
Expand Down Expand Up @@ -727,9 +737,12 @@ jobs:
if: inputs.enable-private-access
run: |
git config --global url."https://x-access-token:${{steps.get_workflow_token.outputs.token}}@github.com/".insteadOf "https://github.com/"
- name: Terraform Init
id: init
run: terraform -chdir=${{ inputs.terraform-dir }} init -backend-config="bucket=${{ inputs.aws-account-id }}-${{ inputs.aws-region }}-tfstate" -backend-config="key=${{ steps.state-key.outputs.name }}" -backend-config="encrypt=true" -backend-config="dynamodb_table=${{ inputs.aws-account-id }}-${{ inputs.aws-region }}-tflock" -backend-config="region=${{ inputs.aws-region }}"
- name: Download TF Providers and Modules
uses: actions/download-artifact@v4
with:
name: tf-providers-modules
- name: Extract Tar TF Providers and Modules
run: tar -xvf tf-providers-modules.tar
- name: Download tfplan
uses: actions/download-artifact@v4
with:
Expand Down
Loading