Skip to content
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

Feature/cf package export local swagger includes transform #3440

Conversation

ekcrisp
Copy link

@ekcrisp ekcrisp commented Jul 10, 2018

When providing a swagger definition for AWS::Serverless::Api resource using DefinitionUri you are unable to use cloudformation intrinsic functions. Several users have complained about this. One workaround is using AWS::Include transformation to reference a swagger doc from the inline property DefinitionBody where intrinsic functions can be used. This feature provides the same local file export for swagger documents referenced from an AWS::Include in the DefinitionBody as the existing DefinitionUri file export. Below are links to discussions where this feature has been mentioned.

aws/serverless-application-model#160
aws/serverless-application-model#8
aws/serverless-application-model#345

@codecov-io
Copy link

codecov-io commented Jul 11, 2018

Codecov Report

Merging #3440 into develop will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #3440      +/-   ##
===========================================
+ Coverage    94.41%   94.42%   +<.01%     
===========================================
  Files          169      169              
  Lines        13252    13266      +14     
===========================================
+ Hits         12512    12526      +14     
  Misses         740      740
Impacted Files Coverage Δ
...customizations/cloudformation/artifact_exporter.py 97.6% <100%> (+0.17%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3af3096...fed9d57. Read the comment docs.

@ekcrisp
Copy link
Author

ekcrisp commented Jul 16, 2018

I opened #3454 which covers a broader case than this, will close if that PR is approved

@stealthycoin
Copy link
Contributor

Thanks for the PR! @sanathkr can you take a look at this?

@ekcrisp
Copy link
Author

ekcrisp commented Oct 17, 2018

no longer needed as #3454 was merged

@ekcrisp ekcrisp closed this Oct 17, 2018
@banenen
Copy link

banenen commented Jul 19, 2019

Are there any documentation of how to use this?

@apogiatzis
Copy link

Has this been merged? I was not able to use this feature. My packaged template still translates to DefinitionUri: s3://.... (I am using sam-translator 1.18)

thoward-godaddy pushed a commit to thoward-godaddy/aws-cli that referenced this pull request Feb 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants