-
Notifications
You must be signed in to change notification settings - Fork 2.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::Serverless::Application Location string cannot be set from Substitution #694
Comments
Good callout. It'd definitely be nice to support intrinsic functions in the case where the Location property is being used as an S3 template URL and not a reference to a SAR app. The change would go in this area if you want to submit a PR: |
I got similar issue
And I got |
I believe I ran into the same/similar bug with more descriptive error. I'm using Here's error message and resource definition (stack trace available on the bottom):
Traceback:
|
Any idea why there is no traction on this?
|
Anyone knows why #710 has been closed without merging? @jlhood @keetonian ? thanks |
For anyone who is blocked here without support from AWS:
Beware of this bug, where you cannot publish a stack containing a substitution for a nested stack's SemanticVersion. That means that you cannot use deeply nested dynamic stacks, in the sense that the child nested stack could not consume a dynamic version of the grandchild. |
Kind of surprising that one cannot do a simple regional find in map (still, issues are 2+ years old), like we do with ec2 amis Our use case involves a private SAR app published regionally (because it contains IAM features and regional boundary items). So this code should work but does not for Mappings:
SarArn:
RegionMap:
us-west-2: arn:aws:serverlessrepo:us-west-2:<account-id>:applications/rtorpo
us-east-1: arn:aws:serverlessrepo:us-east-1:<account-id>:applications/rtorpo
Resources:
RTORPO:
Type: AWS::Serverless::Application
Properties:
Location:
ApplicationId: !FindInMap [SarArn, RegionMap, !Ref AWS::Region]
SemanticVersion: !Ref RTOVersionTarget
|
@rojomisin what have you done to solve that scenario? I have the same issue. I cannot understand why this is not working, even when the error message says that FindInMap and Ref are supported. Is there somebody from the SAM team that can guide us with something? |
Any traction on this issue??? |
You might be able to get this to work by adding Transform:
- AWS::LanguageExtensions
- AWS::Serverless-2016-10-31
See #2533 for more information. |
Closing in favor of #2533. |
@hoffa's advice above, to use Type: AWS::Serverless::Application
Properties:
Location:
ApplicationId: !Sub arn:${AWS::Partition}:serverlessrepo:${AWS::Region}:${AWS::AccountId}:applications/${AppName}
SemanticVersion: !Ref AppVersion |
We are using AWS::Serverless::Application to break up our CloudFormation into smaller pieces.
We would like to use the Substitution function to define the Location of the CloudFormation template:
This results in:
Is this something will be supported soon?
The text was updated successfully, but these errors were encountered: