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

feat(AWS API Gateway): Add HttpApiId to httpApi CF Outputs #8664

Merged
merged 3 commits into from Dec 23, 2020

Conversation

captainsano
Copy link
Contributor

Link to the issue: #8650

This tiny PR adds HttpApi output to the cloudformation template when using AWS ApiGateway's httpApi, in addition to the existing HttpApiUrl output.

Closes: #8650

@codecov
Copy link

codecov bot commented Dec 22, 2020

Codecov Report

Merging #8664 (beb9a71) into master (b72a910) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #8664      +/-   ##
==========================================
- Coverage   87.08%   87.08%   -0.01%     
==========================================
  Files         253      253              
  Lines        9511     9547      +36     
==========================================
+ Hits         8283     8314      +31     
- Misses       1228     1233       +5     
Impacted Files Coverage Δ
lib/plugins/aws/package/compile/events/httpApi.js 92.63% <100.00%> (+0.04%) ⬆️
lib/classes/ConfigSchemaHandler/index.js 91.35% <0.00%> (-1.56%) ⬇️

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 b72a910...beb9a71. Read the comment docs.

Copy link
Contributor

@pgrzesik pgrzesik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @captainsano, looks great 🙌

@@ -148,6 +148,10 @@ class HttpApiEvents {
};
resource.DependsOn = this.provider.naming.getHttpApiLogGroupLogicalId();
}
this.cfTemplate.Outputs.HttpApi = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for confusion, after a second thought, I think it will be better to keep the same convention as for Url and output it as HttpApiId instead of HttpApi.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that makes sense, I'll change it

Copy link
Contributor

@pgrzesik pgrzesik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @captainsano 🙌

@pgrzesik pgrzesik changed the title Add HttpApi Id to api gateway httpApi cloudformation outputs. Closes #8650 feat(AWS API Gateway): Add HttpApiId to httpApi CF Outputs Dec 23, 2020
@pgrzesik pgrzesik merged commit f9c8677 into serverless:master Dec 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HttpApi in cloudformation stack output
2 participants