简体   繁体   中英

Terraform AWS provider cannot find aws_codepipeline_webhook resource

I am using Terraform 0.11.10 (latest as of this date). I'm trying to use the codepipeline webhooks feature, as described here: https://www.terraform.io/docs/providers/aws/r/codepipeline_webhook.html

I have defined a webhook resource as follows:

resource "aws_codepipeline_webhook" "foo" { ... }

However Terraform complains:

Error: aws_codepipeline_webhook.foo: Provider doesn't support resource:
aws_codepipeline_webhook

I have re-initialized Terraform.

The documentation definitely exists, and I saw feature request discussing it that was marked as resolved here: https://github.com/terraform-providers/terraform-provider-aws/issues/4478

Anyone know of a way to get support for it?

Since Terraform 0.10 the providers that interact with external APIs such as AWS have been unbundled and release features with a different cadence to core or each of the other providers.

Thus if you are looking to bring in fixes for provider specific bugs or new features such as new resources/data sources or new functionality in existing resources and data sources then you should also be upgrading your provider versions.

In this case the aws_codepipeline_webhook resource was released in the 1.41 AWS provider release so your AWS provider version wants to be at least at that version.

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