Skip to content

Commit

Permalink
fix(ecs): set ADOT's cpu/memory config only if the container exists (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
hassy authored Jun 11, 2024
1 parent 7b891c9 commit a49e371
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,7 @@ async function ensureTaskExists(context) {

context.taskDefinition = taskDefinition;

if (!context.isFargate) {
if (!context.isFargate && taskDefinition.containerDefinitions.length > 1) {
// Limits for sidecar have to be set explicitly on ECS EC2
taskDefinition.containerDefinitions[1].memory = 1024;
taskDefinition.containerDefinitions[1].cpu = 1024;
Expand Down

0 comments on commit a49e371

Please sign in to comment.