Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

(aws_ecs.FargateTaskDefinition): (support for pidMode) #29619

Closed
ssplatt opened this issue Mar 26, 2024 · 5 comments · Fixed by #29670, rwlxxvii/containers#124 or rwlxxvii/containers#140 · May be fixed by NOUIY/aws-solutions-constructs#98 or NOUIY/aws-solutions-constructs#99
Labels
@aws-cdk/aws-ecs Related to Amazon Elastic Container bug This issue is a bug. effort/medium Medium work item – several days of effort p2

Comments

@ssplatt
Copy link
Contributor

ssplatt commented Mar 26, 2024

Describe the bug

ecs.TaskDefinition supports pidMode. ecs.FargateTaskDefinition should as well.

Expected Behavior

supports pidMode

Current Behavior

does not support pidMode

Reproduction Steps

try to use pidMode as an arg

Possible Solution

add support for pidMode

Additional Information/Context

No response

CDK CLI Version

2.133.0

Framework Version

No response

Node.js Version

18

OS

mac os

Language

TypeScript

Language Version

No response

Other information

No response

@ssplatt ssplatt added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Mar 26, 2024
@github-actions github-actions bot added the @aws-cdk/aws-ecs Related to Amazon Elastic Container label Mar 26, 2024
@tim-finnigan tim-finnigan self-assigned this Mar 28, 2024
@tim-finnigan tim-finnigan added investigating This issue is being investigated and/or work is in progress to resolve the issue. and removed needs-triage This issue or PR still needs to be triaged. labels Mar 28, 2024
@tim-finnigan
Copy link

Thanks for reporting this issue, it looks like pidMode should be supported.

@tim-finnigan tim-finnigan added p2 effort/medium Medium work item – several days of effort and removed investigating This issue is being investigated and/or work is in progress to resolve the issue. labels Mar 28, 2024
@tim-finnigan tim-finnigan removed their assignment Mar 28, 2024
aaythapa added a commit to lpizzinidev/aws-cdk that referenced this issue Apr 22, 2024
@mergify mergify bot closed this as completed in #29670 Apr 22, 2024
mergify bot pushed a commit that referenced this issue Apr 22, 2024
### Issue # (if applicable)

Closes #29619.

### Reason for this change

Support [`pidMode`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-pidmode) for `FargateTaskDefinition`.

### Description of changes

Added support for the `pidMode` property along with the necessary validation, documentation, and test coverage.

### Description of how you validated changes

- [x] Unit tests
- [x] Integration tests

### Checklist
- [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

@shuluster
Copy link

Resource handler returned message: "Invalid request provided: Create TaskDefinition: Tasks using the Fargate launch type do not support pidMode 'host'. The supported value for pidMode is 'task'. (Service: AmazonECS; Status Code: 400; Error Code: ClientException; Request ID: a75d06a4-dc4c-4209-b464-d33e0ba66f0a; Proxy: null)" (RequestToken: 20902d22-1d4f-1a6e-2db1-ddf7b63bb7b1, HandlerErrorCode: InvalidRequest)

@aws-cdk-automation
Copy link
Collaborator

Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one.

@aws aws locked as resolved and limited conversation to collaborators Jul 25, 2024
# for free to subscribe to this conversation on GitHub. Already have an account? #.