hashicorp / tfc-workflows-github

HCP Terraform starter workflows and github actions to automate Terraform Cloud CI/CD pipelines.
Mozilla Public License 2.0
124 stars 20 forks source link

get outputs for use in github actions #7

Open dnsbty opened 1 year ago

dnsbty commented 1 year ago

Hi! Thank you very much for creating these actions. They've made it a lot easier for me to build out the continuous deployment workflow I want.

One feature request that I have is the ability to get the Terraform outputs to be used in my Github Actions. For instance, after Terraform Apply Run I want to be able to push my Docker image to the AWS ECR repo that I created with Terraform. This requires me to have the repository URL and the AWS IAM role that Github should assume to be able to get the repository login credentials.

For now I've created a get-terraform-outputs action to handle this for me, but it would be really nice if this was included in the official workflows.

Or if there's some reason why I shouldn't do this, I would love to know that as well.

Thanks!

srlynch1 commented 1 year ago

Agree 100% this is required, I also created an issue on this here. This is a very common scenario.

https://github.com/hashicorp/tfc-workflows-tooling/issues/9

digodk commented 8 months ago

@srlynch1 I see the issue you mentioned is closed. Are you aware if it is possible to get the Terraform outputs with this action now?