aws-ecs-task-definition | Serverless Component to deploy ECS Task Definitions | AWS library
kandi X-RAY | aws-ecs-task-definition Summary
kandi X-RAY | aws-ecs-task-definition Summary
A Serverless Component to deploy ECS Task Definitions in minutes
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of aws-ecs-task-definition
aws-ecs-task-definition Key Features
aws-ecs-task-definition Examples and Code Snippets
Community Discussions
Trending Discussions on aws-ecs-task-definition
QUESTION
So I have an ecs-task-definition, and I want to add a value to the hosts file in my container. This can be done using the extraHosts block:
extraHosts: A list of hostnames and IP address mappings to append to the /etc/hosts file on the container list(string)
see here for more info.
I'm trying to get this extraHosts block running in the terraform-aws-ecs-task-definition module linked above. The block I have looks like this:
...ANSWER
Answered 2020-Jun-23 at 13:28The module is asking for the wrong type. The module's extraHosts
variable wants list(string)
while you are trying to pass list(object(...))
).
There's already an issue at https://github.com/mongodb/terraform-aws-ecs-task-definition/issues/33 but switching the type to list(any)
or, more precisely, list(object([ipAddress = string, hostname = string]))
in the module should fix it.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install aws-ecs-task-definition
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page