Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds automated Terraform Cloud deployment triggering after Lambda container images are built and pushed to ECR. The workflow now triggers a Terraform Cloud run to deploy the updated Lambda image.
- Adds a new step to trigger Terraform Cloud runs via API after successful image builds
- Uses workspace ID from GitHub variables and API token from secrets for authentication
- Includes commit SHA in the run message for traceability
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| --data @payload.json \ | ||
| https://app.terraform.io/api/v2/runs | ||
| env: | ||
| TF_API_TOKEN: ${{ secrets.TFC_API_TOKEN }} |
There was a problem hiding this comment.
The environment variable TF_API_TOKEN is defined but never used in the step. The Authorization header already uses ${{ secrets.TFC_API_TOKEN }} directly. This redundant environment variable should be removed.
| TF_API_TOKEN: ${{ secrets.TFC_API_TOKEN }} |
| https://app.terraform.io/api/v2/runs | ||
| env: | ||
| TF_API_TOKEN: ${{ secrets.TFC_API_TOKEN }} | ||
| GITHUB_SHA: ${{ github.sha }} |
There was a problem hiding this comment.
The environment variable GITHUB_SHA is defined but never used in the step. The commit SHA is already referenced directly as ${{ github.sha }} in the message on line 53. This redundant environment variable should be removed.
| GITHUB_SHA: ${{ github.sha }} |
No description provided.