We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to create a MongoDB ECS task definition using Fargate:
module "mongo-task-definition" { source = "github.com/mongodb/terraform-aws-ecs-task-definition" family = "mongo" image = "mongo:3.6" cpu = 1 memory = 512 name = "mongo" requires_compatibilities = ["FARGATE"] network_mode = "awsvpc" environment = [ { name = "MONGO_INITDB_ROOT_USERNAME" value = "root" }, { name = "MONGO_INITDB_ROOT_PASSWORD" value = "root" } ] portMappings = [ { containerPort = 27017 }, ] }
But then get this error: "Error: ClientException: Fargate requires that 'cpu' be defined at the task level."
It seems that although I am passing cpu to this module, it isn't actually adding cpu to resource "aws_ecs_task_definition" "ecs_task_definition".
cpu
resource "aws_ecs_task_definition" "ecs_task_definition"
The text was updated successfully, but these errors were encountered:
Related to #37
I will merge today
Sorry, something went wrong.
Released https://github.com/mongodb/terraform-aws-ecs-task-definition/releases/tag/v2.1.0
Thanks! 😁
No branches or pull requests
I'm trying to create a MongoDB ECS task definition using Fargate:
But then get this error: "Error: ClientException: Fargate requires that 'cpu' be defined at the task level."
It seems that although I am passing
cpu
to this module, it isn't actually addingcpu
toresource "aws_ecs_task_definition" "ecs_task_definition"
.The text was updated successfully, but these errors were encountered: