CircleCI-Public / aws-ecs-orb

An orb that simplifies deployment to Amazon's Elastic Container Service (ECS). Supports both EC2 and Fargate launch types.
https://circleci.com/orbs/registry/orb/circleci/aws-ecs
MIT License
51 stars 80 forks source link

fix: ephemeral storage retention #177

Closed brivu closed 2 years ago

brivu commented 2 years ago

When updating a task definition that includes ephemeralStorage and then running update-service command, the ephemeralStorage information gets dropped.

This PR addresses the issue by extracting the ephemeralStorage value using jq and exporting to the environment variable CCI_ORB_AWS_ECS_EPHEMERAL_STORAGE. The variable is then available for use in the update-service command.

91vikash commented 1 year ago

@brivu Where do I have to set this value ${EPHEMERAL_STORAGE}? I have a pipeline which first creates a task-def using terraform and the circleci-orb ECS deploys that. But I am still seeing ephemeralStorage value is getting dropped.

I am using provider 4.23.0 and circleci or aws-ecs@3.2.0