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

Terraform steps not providing output from terraform cli commands #5560

Closed
shaunmarx opened this issue May 13, 2019 · 3 comments

Comments

@shaunmarx
Copy link

commented May 13, 2019

Are you a customer of Octopus Deploy? Don't raise the issue here. Please contact our support team so we can triage your issue, making sure it's handled appropriately.

Prerequisites

  • I have verified the problem exists in the latest version
  • I have searched open and closed issues to make sure it isn't already reported
  • I have written a descriptive issue title
  • I have linked the original source of this report
  • I have tagged the issue appropriately (area/*, kind/bug, tag/regression?)

The bug

Previously terraform steps would execute and any output from the terraform CLI would be included as part of the deployment. The only option to see what has actually happened during a deployment is to add the Octopus.Action.Terraform.AttachLogFile variable with a value of True to the project.

What I expected to happen

Expected output from the terraform cli to be included in the deployment output

Steps to reproduce

  1. Navigate to a new project and add a terraform step
  2. Add a new terraform step
provider "aws" {
}

variable "bucket" {
    description = "The bucket to create"
}

resource "aws_s3_bucket" "bucket" {
    bucket = "${var.bucket}"
}

output "id" {
	value = "${aws_s3_bucket.bucket.id}"
}

output "arn" {
	value = "${aws_s3_bucket.bucket.arn}"
}

output "region" {
	value = "${aws_s3_bucket.bucket.region}"
}

  1. Add an AWS account and configure it for the terraform step
  2. Deploy and notice the output

Screen capture

image

Affected versions

Octopus Server: 2019.4.4-2019.5.2

Workarounds

Although no workaround exists to see the terraform output during the deployment, the Octopus.Action.Terraform.AttachLogFile variable can be added to the project which will provide all outputs from terraform.

Links

https://help.octopus.com/t/terraform-step-no-longer-generating-output-log/23011/2

Related to the above issue is:
#5541

@shaunmarx shaunmarx added the kind/bug label May 13, 2019
@shaunmarx shaunmarx self-assigned this May 13, 2019
@shaunmarx

This comment has been minimized.

Copy link
Author

commented May 14, 2019

@shaunmarx shaunmarx closed this May 16, 2019
@octoreleasebot octoreleasebot added this to the 2019.5.4 milestone May 16, 2019
@octoreleasebot

This comment has been minimized.

Copy link

commented May 16, 2019

Release Note: Fix terraform commands not generating any output during deployments

@shaunmarx shaunmarx modified the milestones: 2019.5.4, 2019.5.3 May 16, 2019
@lock

This comment has been minimized.

Copy link

commented Aug 14, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. If you think you've found a related issue, please contact our support team so we can triage your issue, and make sure it's handled appropriately.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants
You can’t perform that action at this time.