Terraform: AWS CodeBuild Crash

Created on 21 Mar 2017  ยท  2Comments  ยท  Source: hashicorp/terraform

Terraform Version

Terraform v0.9.0

Affected Resource(s)

  • aws_codebuild_project

Terraform Configuration Files

I've removed some environment variables and other identifying parts

provider "aws" {
  region = "${var.region}"
}

resource "aws_codebuild_project" "xyz_pipeline" {
  name          = "${var.pipeline_name}_xyz_pipeline"
  description   = "Pipeline to deploy XYZ"
  build_timeout = "45"
  service_role  = "${aws_iam_role.xyz_pipeline_role.arn}"

  source {
    type     = "GITHUB"
    location = "https://github.com/org/repo.git"

    auth {
      type     = "OAUTH"
      resource = "AWS CodeBuild"
    }
  }

  environment {
    compute_type = "BUILD_GENERAL1_SMALL"
    image        = "ubuntu:16.04"
    type         = "LINUX_CONTAINER"
  }

  artifacts {
    type = "NO_ARTIFACTS"
  }
}

Debug Output

Removed identifying information
https://gist.github.com/AlexLast/32fcfa280eb898d83f5884bd00fc7b5a

Panic Output

Removed identifying information
https://gist.github.com/AlexLast/2999ce487d14076e6e87c74454f58dfe

Expected Behavior

The terraform created resources should be destroyed

Actual Behavior

Nothing was destroyed and the crash occurred

Steps to Reproduce

  1. terraform destroy

Important Factoids

When creating a new CodeBuild project you can plan or destroy afterwards no problem, it seems the crash only occurs after running at least 1 build with the project and trying to destroy or plan after that.

bug crash provideaws

Most helpful comment

Hi @AlexLast

thanks for reporting this - I have just opened a PR that will fix this. Sorry if it has caused you some issues

Paul

All 2 comments

Hi @AlexLast

thanks for reporting this - I have just opened a PR that will fix this. Sorry if it has caused you some issues

Paul

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.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

Was this page helpful?
0 / 5 - 0 ratings