简体   繁体   中英

Terraform aws_codebuild_project error: InvalidInputException:

I am trying to create a standalone AWS CodeBuild with terraform; it will have no source and no artifacts. But when I try to create it as such

resource aws_codebuild_project default {

  ...

  source {
    type = "NO_SOURCE"
  }

  artifacts {
    type = "NO_ARTIFACTS"
  }

  ...

}

I am getting error: "InvalidInputException: Invalid artifacts: artifact type NO_ARTIFACTS should have null output name"

I've tried set name and namespace_type to null and it seems to have no effect.

I am running terraform v0.12.26 and AWS provider v2.70.0

Any idea what is causing this error and how to fix it?

I catch this problem too. I fixed it with delete and re apply

I faced the same issue. Fixed it by manually deleting the code build and re applied via terraform.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM