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

Reusable Terraform Action #445

Merged
merged 3 commits into from
Jan 15, 2025
Merged

Reusable Terraform Action #445

merged 3 commits into from
Jan 15, 2025

Conversation

ethangardner
Copy link
Contributor

@ethangardner ethangardner commented Jan 14, 2025

We had discussed making the terraform install action reusable. However, there seems to be an issue where you can't have multiple uses in github actions where the call chain is file A -> uses file B -> uses file C without involving an artifact. This switches to use the Hashicorp-authored actions/setup-terraform which provides the artifact behavior and to gets around the structuring issue of our current action.

  • update cache action to v4
  • use setup-terraform action

Copy link

github-actions bot commented Jan 14, 2025

Terraform plan for tts-10x-forms-dev

Plan: 0 to add, 1 to change, 0 to destroy.
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
!~  update in-place

Terraform will perform the following actions:

  # cloudfoundry_app.tts-10x-forms-dev-server-doj_tts-10x-forms-dev-server-doj-app_22D74DC4 will be updated in-place
!~  resource "cloudfoundry_app" "tts-10x-forms-dev-server-doj_tts-10x-forms-dev-server-doj-app_22D74DC4" {
!~      docker_image                    = "ghcr.io/gsa-tts/forms/server-doj:faa676c5ba75d9309045c9a4793ff2b9562c9bc4" -> "ghcr.io/gsa-tts/forms/server-doj:4fca5f98ac801ec230474efba6c2dce8d5e71f72"
        id                              = "29c93a0a-519c-454a-847e-cc603395c2da"
        name                            = "tts-10x-forms-dev-server-doj-app"
#        (17 unchanged attributes hidden)

#        (3 unchanged blocks hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

📝 Plan generated in Post Terraform plan to PR comment #617

@ethangardner ethangardner marked this pull request as ready for review January 14, 2025 22:14
@ethangardner ethangardner merged commit 7b27866 into main Jan 15, 2025
4 checks passed
@ethangardner ethangardner deleted the task/terraform-install-reuse branch January 15, 2025 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants