-
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
Translate local file strings to AWS::Include transform #160
Comments
I am not sure. Inlining swagger file has some limitations:
Instead, it would be better to extend What do you think? This should be simple change to make the CLI. Want to send a PR? |
Ah, I didn't consider the template size limitations. That does make it awkward. Unfortunately, using CloudFormation constructs was part of my goal. 😅 Right now, Swagger files need hard-coded Lambda Function ARNs in, for example, paths:
/debug:
get:
x-amazon-apigateway-integration:
httpMethod: POST
type: "aws_proxy"
uri:
Fn::Sub: arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${DebugFunction.Arn}/invocations
responses: {} |
Closing this because it has been out for a while without gathering much interests. |
any updates on this? EDIT: I submitted a PR for this feature |
There are quite a few issues on this repo related to variable substitution in separate YAML files, particularly dealing with
x-amazon-apigateway-integration
'suri
parameter.What if, instead of
aws cloudformation package
translating a local file string to ans3://
URI, it translated it to an AWS::Include transform?This SAM / CloudFormation template:
… currently translates to:
… but could instead translate to:
The text was updated successfully, but these errors were encountered: