ebs_optimized in resource_aws_launch_template doesn't accept string true/false #5994
Labels
bug
Addresses a defect in current functionality.
regression
Pertains to a degraded workflow resulting from an upstream patch or internal enhancement.
service/ec2
Issues and PRs that pertain to the ec2 service.
Milestone
Community Note
Terraform Version
Terraform v0.11.8
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
N/A
Expected Behavior
ebs_optimized
should be true.Actual Behavior
An error occurred using the string
"true"
forebs_optimized
.Steps to Reproduce
terraform apply
Important Factoids
While upgrading from version 1.35.0 to 1.37.0 of the AWS provider, I ran into this error with the
ebs_optimized
parameter in theaws_launch_template
resource. I'm using the string value"true"
, but that resulted in the error that the value was expected to be one of["", false, true]
. Changing the value to boolean valuetrue
worked.From 1.35.0 to 1.36.0, the value type for ebs_optimized change from
schema.TypeBool
toschema.TypeString
(eeb04c6), and usesvalidateTypeStringNullableBoolean
for ValidateFunc. The new validation function doesn't seem to allow for string"true"
and"false"
values.References
Change of
ebs_optimized
's value type and validation function: 2e8a2b3Addition of validateTypeStringNullableBoolean: #5632
The text was updated successfully, but these errors were encountered: