简体   繁体   English

使用 Terraform v 0.11.10 的 AWS ECS 容量提供程序

[英]AWS ECS capacity provider using Terraform v 0.11.10

I am using terraform version 0.11.10, I am trying to provision an aws ecs capacity provider but getting the following error:我正在使用 terraform 版本 0.11.10,我正在尝试配置一个 aws ecs 容量提供程序,但收到以下错误:

Error: module.mod.aws_ecs_capacity_provider.ecs: Provider doesn't support resource: aws_ecs_capacity_provider错误:module.mod.aws_ecs_capacity_provider.ecs:提供者不支持资源:aws_ecs_capacity_provider

I could not find any terraform docs for version 0.11我找不到 0.11 版的任何 terraform 文档

Does terraform version 0.11.10 supports capacity provider? terraform 0.11.10 版是否支持容量提供程序?

更新 aws 提供程序版本后,问题得到解决。

The AWS provider is versioned separately from terraform itself. AWS 提供程序的版本与 terraform 本身是分开的。 According to the provider's changelog that resource was added in version 2.42.0 (December 13, 2019) .根据提供者的变更日志,该资源已在2.42.0 版(2019 年 12 月 13 日)中添加

For more information on provider versions I would checkout the terraform documentation .有关提供程序版本的更多信息,我将查看terraform 文档

In short, you may need to pin the AWS provider to a newer version than you're currently using.简而言之,您可能需要将 AWS 提供商固定到比您当前使用的版本更新的版本。 Pinning is described in the linked documentation.链接文档中描述了固定。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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