You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a project set AWS provider version to 4.39.0 os less, terraform throws:
Error: Unsupported attribute
│
│ on .terraform/modules/kafka/outputs.tf line 12, in output "storage_mode":
│ 12: value = one(aws_msk_cluster.default[*].storage_mode)
│
│ This object does not have an attribute named "storage_mode".
Expected Behavior
Set correct required version for aws provider to terraform handle compatibility.
Steps to Reproduce
Create a file main.tf and put this:
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "4.35.0"
}
}
}
module "kafka" {
source = "cloudposse/msk-apache-kafka-cluster/aws"
kafka_version = "3.3.2"
namespace = "eg"
stage = "prod"
name = "app"
vpc_id = "vpc-XXXXXXXX"
subnet_ids = ["subnet-XXXXXXXXX", "subnet-YYYYYYYY"]
broker_per_zone = 2
broker_instance_type = "kafka.m5.large"# A list of IDs of Security Groups to associate the created resource with, in addition to the created security group
associated_security_group_ids = ["sg-XXXXXXXXX", "sg-YYYYYYYY"]
# A list of IDs of Security Groups to allow access to the cluster
allowed_security_group_ids = ["sg-XXXXXXXXX", "sg-YYYYYYYY"]
}
run:
$ terraform init
$ terraform plan
Screenshots
No response
Environment
Terraform: 1.5.2
AWS Provider: 4.35.0
Module version: 2.3.0
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Describe the Bug
This output use the attribute
storage_mode
:The problem is that AWS provider was only introduced in version
4.40.0
, but inversions.tf
(and in README) is accepted versions>= 4.0
:When a project set AWS provider version to
4.39.0
os less, terraform throws:Expected Behavior
Set correct required version for aws provider to terraform handle compatibility.
Steps to Reproduce
Create a file
main.tf
and put this:run:
Screenshots
No response
Environment
Additional Context
No response
The text was updated successfully, but these errors were encountered: