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

Fix stage name handling #579

Merged
merged 21 commits into from Jul 18, 2023
Merged

Fix stage name handling #579

merged 21 commits into from Jul 18, 2023

Conversation

aoskotsky-amplify
Copy link
Member

@aoskotsky-amplify aoskotsky-amplify commented May 12, 2023

Fixes #578

Description of Issue Fixed

Changes proposed in this pull request:

  • Added support for the custom stages
  • Added retryStrategy for the APiGateway clients in case ToManyRequests error or such

@rddimon rddimon linked an issue Jun 20, 2023 that may be closed by this pull request
@rddimon rddimon marked this pull request as ready for review June 20, 2023 12:19
src/index.ts Outdated
@@ -365,6 +365,12 @@ class ServerlessCustomDomain {
domain.domainInfo = await apiGateway.getCustomDomain(domain);

if (!domain.apiMapping) {
if (domain.apiType === Globals.apiTypes.http) {
Logging.logWarning(
"Make sure that the API Mapping with the `$default` stage already exists. " +
Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm what are people supposed to do when they see this warning?

CHANGELOG.md Outdated Show resolved Hide resolved
@@ -27,11 +27,13 @@ custom:
basePath: ''
endpointType: REGIONAL
autoDomain: true
stage: '$default'
Copy link
Member Author

Choose a reason for hiding this comment

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

Is this required now? This could be considered a breaking change. Is it possible to default to $default for http APIs?

@sonarcloud
Copy link

sonarcloud bot commented Jul 18, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.1% 0.1% Duplication

@rddimon rddimon merged commit ebee6fd into main Jul 18, 2023
5 checks passed
@rddimon rddimon deleted the fix_stage_name_handling branch July 18, 2023 19:11
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.

The custom.customDomain.stage value is being ignored
2 participants