-
Notifications
You must be signed in to change notification settings - Fork 249
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
terraform-bin state rm ::debug::stdout: #167
Comments
The following code is a work around:
There is a bug or something where |
This looks like it's the extra output from the wrapper, you can either disable the wrapper via the flag (which affects the whole workflow) or run |
Why is the wrapper outputting this, a bug? Most Devs would expect to run terraform on their local machine, and have the same output in a github action |
I think the wrapper functions as originally intended, the authors just didn't account for the times that one would want to capture output from |
* pre-commit formatted * bump greenlet * Terraform for Infrastructure on AWS * terraform clean up * changed VPC endpoints for NAT gateways VPC endpoints enable all the traffic to stay within the AWS network increasing the security posture and saving on cost of the NAT gateway * changed base image * modified dev compose * some changes * formatting * remove unnecessary ENV variable * Prod Dockerfile and configuration * enable s3 backend on terraform * github workflows for AWS ECR infra * fix actions version * fix formatting * testing PR bot comment * fix testing PR bot comment * fix testing PR bot comment * fix testing PR bot comment * fix testing PR bot comment * fix testing PR bot comment * create s3 backend * add terraform lock file * fix mistake in terraform command * remove github token * fix permission scope * fix permission scope * aws region variable * remove 'continue-on-error' * bot add a new comment to PR everytime * define terraform output * workflow WIP * correct typo * add permissions * fix jq parse error * fix * fix * test * test * test * test * test * use terraform-bin to bypass the hashicorp setup actions wrapper see hashicorp/setup-terraform#167 * push images * update existing bot comments on PRs instead * composite workflow * composite workflow fix * composite workflow fix * composite workflow fix * composite workflow fix * composite workflow fix * composite workflow fix * composite workflow fix * composite workflow fix * composite workflow fix * reusable terraform workflow * [fix] reusable terraform workflow * [fix] reusable terraform workflow * [fix] reusable terraform workflow * ecs deploy * ecs deploy 🔧 * [fix] ecs deploy 🔧 * [fix] ecs deploy 🔧 * [fix] ecs deploy 🔧 * [fix] ecs deploy 🔧 * fix * fix
See [this issue](hashicorp/setup-terraform#167) for an explanation.
* feat: upgrade terraform action * fix: use terraform-bin to solve output issues See [this issue](hashicorp/setup-terraform#167) for an explanation.
Hi all 👋, resurrecting this old issue thread to note an upcoming fix for this in ContextAs noted in this thread and others, the wrapper that is enabled by default was returning errant output in addition to the standard Terraform binary STDOUT (followed by some "hidden in GH actions" In resource "random_pet" "pet" {}
output "pet" {
value = random_pet.pet.id
} Raw output before
|
|
Thanks @austinvalle! I will test it out and let you know if I run into anything. Great work! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
When running this code in a GitHub action:
I get the following output
The removal of aws_ecs_task_definition.task is correct. This code has been tested outside of Github actions and works correctly. When I echo $ECSTASKS, I only get aws_ecs_task_definition.task showing the loop is running once with the correct info.
The text was updated successfully, but these errors were encountered: