(aws-ecs): Give Cluster a grant method for the task protection API #26233
Labels
@aws-cdk/aws-ecs
Related to Amazon Elastic Container
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
p2
Describe the feature
In order for ECS tasks to interact with the task protection API, the task role needs permissions on the API.
It would be nice if ECS Cluster used the standard grantX pattern and provided a method similar to
grantTaskProtection
.Use Case
To simplify declaring my tasks need permissions on the task protection API.
Proposed Solution
Currently my setup for the permissions is:
With this feature I'd expect to do something like
Other Information
See also my request for an arnForTasks method
Acknowledgements
CDK version used
2.85.0
Environment details (OS name and version, etc.)
Ubuntu (Windows Subsystem for Linux)
The text was updated successfully, but these errors were encountered: