aws-cdk icon indicating copy to clipboard operation
aws-cdk copied to clipboard

fix(ecs): removal of `canContainersAccessInstanceRole` instance role

Open kumvprat opened this issue 11 months ago • 2 comments

Issue # (if applicable)

N/A

Reason for this change

Follow-up of https://github.com/aws/aws-cdk/pull/32763 where the canContainersAccessInstanceRole was deprecated. Now we need to remove the property completely.

Related discussion: https://github.com/aws/aws-cdk/discussions/32609

Description of changes

Removed the canContainersAccessInstanceRole feature everywhere.

Describe any new or updated permissions being added

Description of how you validated changes

Checklist


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

kumvprat avatar Dec 11 '25 13:12 kumvprat

TestsPassed ☑️SkippedFailed ❌️
Security Guardian Results1050 ran1043 passed7 failed
TestResult
Security Guardian Results
packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.enable-execute-command.js.snapshot/aws-ecs-integ-enable-execute-command.template.json
s3-encryption-enabled.guard❌ failure
packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.environment-file.js.snapshot/aws-ecs-integ.template.json
s3-encryption-enabled.guard❌ failure
packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-ec2-task.js.snapshot/aws-ecs-integ-ecs.template.json
sqs-encryption-enabled.guard❌ failure
sqs-no-world-accessible-inline.guard❌ failure
packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.ec2-run-task-ref-definition.js.snapshot/aws-sfn-tasks-ecs-run-task-ref-task-definition.template.json
iam-no-overly-permissive-passrole.guard❌ failure
packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.ec2-run-task.js.snapshot/aws-sfn-tasks-ecs-run-task.template.json
iam-no-overly-permissive-passrole.guard❌ failure
packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.ec2-task.js.snapshot/aws-sfn-tasks-ecs-task.template.json
iam-no-overly-permissive-passrole.guard❌ failure

github-actions[bot] avatar Dec 11 '25 13:12 github-actions[bot]

TestsPassed ☑️SkippedFailed ❌️
Security Guardian Results with resolved templates1050 ran1046 passed4 failed
TestResult
Security Guardian Results with resolved templates
packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.enable-execute-command.js.snapshot/aws-ecs-integ-enable-execute-command.template.json
s3-encryption-enabled.guard❌ failure
packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.environment-file.js.snapshot/aws-ecs-integ.template.json
s3-encryption-enabled.guard❌ failure
packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-ec2-task.js.snapshot/aws-ecs-integ-ecs.template.json
sqs-encryption-enabled.guard❌ failure
sqs-no-world-accessible-inline.guard❌ failure

github-actions[bot] avatar Dec 11 '25 13:12 github-actions[bot]

:arrow_right: PR build request submitted to test-main-pipeline :arrow_left:

A maintainer must now check the pipeline and add the pr-linter/cli-integ-tested label once the pipeline succeeds.

aws-cdk-automation avatar Dec 16 '25 23:12 aws-cdk-automation

@mergifyio queue

kumvprat avatar Dec 18 '25 11:12 kumvprat

queue

🛑 There are no queue conditions matching

There are queue conditions defined in the configuration, but none matches. The pull request has not been embarked.

Details:

  • Queue default-merge:
  • [ ] -closed
  • [ ] -merged
  • [ ] label~=no-squash
  • [X] #approved-reviews-by>=1
  • [X] #changes-requested-reviews-by=0
  • [X] -approved-reviews-by~=author
  • [X] -label~=(blocked|do-not-merge)
  • [X] -title~=(WIP|wip)
  • [X] check-success=build
  • [X] check-success=validate-pr
  • [X] any of:
    • [X] -label~=pr/needs-integration-tests-deployment
    • [ ] check-success=Deploy integration test snapshots (requires pr/needs-integration-tests-deployment label)
  • Queue priority-squash:
  • [ ] -closed
  • [ ] -merged
  • [ ] label~=priority-pr
  • [X] #approved-reviews-by>=1
  • [X] #changes-requested-reviews-by=0
  • [X] -approved-reviews-by~=author
  • [X] -label~=(blocked|do-not-merge|no-squash)
  • [X] -title~=(WIP|wip)
  • [X] base!=release
  • [X] check-success=build
  • [X] check-success=validate-pr
  • [X] any of:
    • [X] -label~=pr/needs-integration-tests-deployment
    • [ ] check-success=Deploy integration test snapshots (requires pr/needs-integration-tests-deployment label)
  • Queue default-squash:
  • [ ] -closed
  • [ ] -merged
  • [X] #approved-reviews-by>=1
  • [X] #changes-requested-reviews-by=0
  • [X] -approved-reviews-by~=author
  • [X] -label~=(blocked|do-not-merge|no-squash|priority-pr)
  • [X] -title~=(WIP|wip)
  • [X] base!=release
  • [X] check-success=build
  • [X] check-success=validate-pr
  • [X] any of:
    • [X] -label~=pr/needs-integration-tests-deployment
    • [ ] check-success=Deploy integration test snapshots (requires pr/needs-integration-tests-deployment label)

mergify[bot] avatar Dec 18 '25 11:12 mergify[bot]

Merge Queue Status

✅ The pull request has been merged at 5820efdf4745af6c3b924c99b3494a0febbb668a

This pull request spent 17 seconds in the queue, with no time running CI. The checks were run in-place.

Required conditions to merge
  • #approved-reviews-by >= 1 [🛡 GitHub branch protection]
    • [X] #36362
  • #changes-requested-reviews-by = 0 [🛡 GitHub branch protection]
    • [X] #36362
  • [X] any of [🛡 GitHub branch protection]:
    • [X] check-success = validate-pr
    • [ ] check-neutral = validate-pr
    • [ ] check-skipped = validate-pr
  • [X] any of [🛡 GitHub branch protection]:
    • [X] check-success = build
    • [ ] check-neutral = build
    • [ ] check-skipped = build

mergify[bot] avatar Dec 18 '25 11:12 mergify[bot]

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

mergify[bot] avatar Dec 18 '25 11:12 mergify[bot]

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.

github-actions[bot] avatar Dec 18 '25 11:12 github-actions[bot]