-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(aws-cdk-lib): (Add support for this CfnIntrinsic function -- Fn::AccountIdFromAlias) #27642
Comments
Thank you for your report. |
There is a workaround to use the AWS SDK to turn the alias into an account ID, but that doesn't replace it not being supported in CfnInclude. |
@indrora You're right on this. On the other hand, in terms of region build automation, Thanks for looking into this issue and the update. |
Hey @indrora and team, |
I do not have an ETA. @cgarvis might have an update though. |
Thank you @indrora . Looking forward to an update on ETA. : ) |
Hello @indrora ps: I am not sure if this is the right place for asking this question. Apologize if I post the question at wrong place. Context: I see some CFN functions "extends" [FnBase] class while some CFN functions "implements" [IResolvable] interface. For example, class FnSplit extends FnBase while class FnJoin implements IResolvable. By checking definitions of Thanks, |
Describe the bug
CfnInclude
fails to import CFN templates if templates contain the usage of this CFN function -- "Fn:: AccountIdFromAlias".CfnInclude
fails with error -- "Error: Unsupported CloudFormation function 'Fn::AccountIdFromAlias".CfnParser.parseIfCfnIntrinsic
reportsFn::AccountIdFromAlias
as an "unsupported" CFN function.Example stacktrace
Expected Behavior
CfnInclude
can properly import the CFN template that usesAccountIdFromAlias
.Current Behavior
CfnInclude
fails to import the CFN template that usesAccountIdFromAlias
with error -- "Error: Unsupported CloudFormation function 'Fn::AccountIdFromAlias".Reproduction Steps
aws-cdk-lib/cloudformation-include
to include the CFN template.Possible Solution
This function needs to be updated to support this CFN function. source code link. Please add a new "case" statement to support this CFN function.
Additional Information/Context
No response
CDK CLI Version
2.87.0
Framework Version
No response
Node.js Version
v18.16.0
OS
Mac, Amazon Linux
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: