fix(elasticloadbalancingv2): allow logging in env-agnostic stacks - #38231
Open
Dricmoy wants to merge 4 commits into
Open
fix(elasticloadbalancingv2): allow logging in env-agnostic stacks#38231Dricmoy wants to merge 4 commits into
Dricmoy wants to merge 4 commits into
Conversation
aws-cdk-automation
previously requested changes
Jul 1, 2026
aws-cdk-automation
temporarily deployed
to
automation
July 1, 2026 20:06 — with
GitHub Actions
Inactive
aws-cdk-automation
temporarily deployed
to
automation
July 1, 2026 20:11 — with
GitHub Actions
Inactive
aws-cdk-automation
dismissed
their stale review
July 2, 2026 02:29
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
Dricmoy
force-pushed
the
fix/elbv2-env-agnostic-access-logs-27432
branch
from
July 2, 2026 05:18
cdde9c2 to
36bc409
Compare
aws-cdk-automation
temporarily deployed
to
automation
July 28, 2026 15:12 — with
GitHub Actions
Inactive
aws-cdk-automation
temporarily deployed
to
automation
July 28, 2026 15:13 — with
GitHub Actions
Inactive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue # (if applicable)
Closes #27432.
Reason for this change
ELBv2 access logging currently requires a resolved stack region because CDK looks up a legacy, region-specific Elastic Load Balancing account principal before synthesizing the bucket policy. That prevents access logging from being used in environment-agnostic stacks even though the current Elastic Load Balancing documentation recommends the service principal
logdelivery.elasticloadbalancing.amazonaws.com.Description of changes
Describe any new or updated permissions being added
For environment-agnostic ELBv2 logging bucket policies, CDK now synthesizes an
s3:PutObjectgrant to thelogdelivery.elasticloadbalancing.amazonaws.comservice principal instead of throwing during synthesis. Concrete-region behavior is unchanged.Description of how you validated changes
env PATH=/opt/homebrew/opt/node@24/bin:$PATH yarn test --coverage=false --runTestsByPath aws-elasticloadbalancingv2/test/alb/load-balancer.test.ts aws-elasticloadbalancingv2/test/nlb/load-balancer.test.tsenv PATH=/opt/homebrew/opt/node@24/bin:$PATH yarn build --skip-lintChecklist