Terraform v0.9.0
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"
}
}
Removed identifying information
https://gist.github.com/AlexLast/32fcfa280eb898d83f5884bd00fc7b5a
Removed identifying information
https://gist.github.com/AlexLast/2999ce487d14076e6e87c74454f58dfe
The terraform created resources should be destroyed
Nothing was destroyed and the crash occurred
terraform destroyWhen 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.
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.
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