Skip to content

aws-ecs-patterns: Allow user to be set for task definition #34509

Closed
@robert-lilleker

Description

@robert-lilleker

Describe the feature

I want to be able to use the ApplicationLoadBalancedFargateService construct and set the user that runs in the container as set out in the container definition in cloud formation

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-user

Use Case

I need to be able to set the container user for security reasons as it defaults to root when not set. There doesn't seem to be a way to do this with the existing ApplicationLoadBalancedFargateService construct

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

AWS CDK Library version (aws-cdk-lib)

2.197.0

AWS CDK CLI version

2.197.0

Environment details (OS name and version, etc.)

Windows and linux code build in aws pipeline

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-ecs-patternsRelated to ecs-patterns libraryeffort/mediumMedium work item – several days of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions