Closed darpham closed 3 years ago
the same for me, OSX 11.3.1, Apple M1
Terraform v0.15.3
on darwin_amd64
+ provider registry.terraform.io/hashicorp/aws v3.41.0
for some reason it works as expected if you explicitly define variable type like this:
variable "mount_points" {
type = list(object({
containerPath = string
sourceVolume = string
readOnly = bool
}))
description = "Container mount points. This is a list of maps, where each map should contain a `containerPath` and `sourceVolume`. The `readOnly` key is optional."
default = []
}
Thanks @borysbabii, I've created a PR to resolve this https://github.com/cloudposse/terraform-aws-ecs-container-definition/pull/137
Describe the Bug
After upgrading to Terraform 0.15.x , I'm now getting an error while trying to plan my changes. This seems to relate the the bool flag for readOnly within the mount_points inupt. Switching back to 0.14.x and the issue goes away.
Expected Behavior
My terraform plan should work with no issues and changes.
No changes. Infrastructure is up-to-date.
Steps to Reproduce
Steps to reproduce the behavior:
Screenshots
Environment (please complete the following information):