'Upload Terraform Plan to S3 Bucket via GitHub Actions
I am working on a CI/CD pipeline in GitHub I run terraform plan >> plan.txt and want the plan to be saved into an existing S3 bucket for logging purposes. What is the best way to do this?
I am aware of existing extensions on the GitHub marketplace, in particular, one called S3 Sync, but I suspect it's too large-scale for me as I only want to upload a single plan.txt file instead of a website
I also considered uploading the item from the main.tf file but the issue is that the Terraform code is run first and the plan is produced after so it won't have access to plan.txt
Please let me know if there is any information I can provide that can help
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
