[Bug]: Error: ECS Task Definition container_definitions is invalid: decoding JSON: json: cannot unmarshal string into Go struct field PortMapping.PortMappings.ContainerPort of type int64 #38620
Labels
bug
Addresses a defect in current functionality.
service/ecs
Issues and PRs that pertain to the ecs service.
Terraform Core Version
1.9.3
AWS Provider Version
5.54.1
Affected Resource(s)
aws_ecs_task_definition
Expected Behavior
This configuration should work
Actual Behavior
Once I add
name
to the port mapping, the run errors with:Error: ECS Task Definition container_definitions is invalid: decoding JSON: json: cannot unmarshal string into Go struct field PortMapping.PortMappings.ContainerPort of type int64
It works without the
name
attribute.Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
app.terraform.io
Steps to Reproduce
Add
name
to port mappingDebug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: