terraform-aws-ecs-container-definition icon indicating copy to clipboard operation
terraform-aws-ecs-container-definition copied to clipboard

Add RestartPolicy to container definition

Open JaydenMaalouf opened this issue 5 months ago • 0 comments

Describe the Feature

AWS introudced container restart policies to ECS containers This allows a container to restart on specific exit codes without needing to provision a new task https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container-restart-policy.html?icmpid=docs_ecs_hp-task-definition

Expected Behavior

Restart policy will be created

Use Case

If a container abruptly exits with a specific exit code, it can be restarted without needing to wait for a new task to be provisioned in its place

Describe Ideal Solution

A new object on the variables map

Alternatives Considered

No response

Additional Context

No response

JaydenMaalouf avatar Sep 09 '24 05:09 JaydenMaalouf