Skip to content

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Sep 22, 2025

When copying the underlying CfnFunction's implementation of IFunctionRef, the source of the functionArn value changed from a { GetAtt } to a { Ref }.

Both expression return the same value, but if the ARN is exported to another stack, CloudFormation will reject any change to the expression under the assumption that different expression ⇒ different value, and that's not allowed.

Override the implementation for the L2, returning the same expression as previously.

Closes #35531


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

When copying the underlying `CfnFunction`'s implementation of
`IFunctionRef`, the source of the `functionArn` value changed from a `{
GetAtt }` to a `{ Ref }`.

Both expression return the same value, but if the ARN is exported to
another stack, CloudFormation will reject any change to the expression
under the assumption that `different expression ⇒ different value`, and
that's not allowed.

Override the implementation for the L2, returning the same expression
as previously.
@rix0rrr rix0rrr requested a review from a team September 22, 2025 12:29
@github-actions github-actions bot added the p2 label Sep 22, 2025
@aws-cdk-automation aws-cdk-automation requested a review from a team September 22, 2025 12:29
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Sep 22, 2025
@rix0rrr rix0rrr added the pr-linter/exempt-integ-test The PR linter will not require integ test changes label Sep 22, 2025
@github-actions github-actions bot added the bug This issue is a bug. label Sep 22, 2025
Copy link
Contributor

mergify bot commented Sep 23, 2025

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).

Copy link
Contributor

mergify bot commented Sep 23, 2025

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 mergify bot merged commit 8a26869 into main Sep 23, 2025
19 checks passed
@mergify mergify bot deleted the huijbers/cloufront-fn-attr branch September 23, 2025 08:24
Copy link
Contributor

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 github-actions bot locked as resolved and limited conversation to collaborators Sep 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue is a bug. contribution/core This is a PR that came from AWS. p2 pr-linter/exempt-integ-test The PR linter will not require integ test changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cloudfront-function: 2.215.0 change Outputs from Fn::GetAtt to Ref - can not deploy
2 participants