Skip to content

Return RegionalHostedZoneId from the cloudformation UI stack #378

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

salemgolemugoo
Copy link

Description

Return RegionalHostedZoneId in outputs of the UI stack as long as this value is needed by Route53 alias
https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-to-api-gateway.html#routing-to-api-gateway-config

Changes

A new output variable

How Has This Been Tested?

Deployed the UI stack and checked that value exists

PR Quality Checklist

  • I added tests to new or existing code
  • I removed hardcoded strings and used react-i18next library (useTranslation hook and/or Trans component), see an example here
  • I made sure no sensitive info gets logged at any time in the codebase (see here) (e.g. no user info or details, no stacktraces, etc.)
  • I made sure that any GitHub issue solved by this PR is correctly linked
  • I checked that infrastructure/update_infrastructure.sh runs without any error
  • I checked that npm run build builds without any error
  • I checked that clusters are listed correctly
  • I checked that a new cluster can be created (config is produced and dry run passes)
  • I checked that login and logout work as expected

In order to increase the likelihood of your contribution being accepted, please make sure you have read both the Contributing Guidelines and the Project Guidelines

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@@ -1109,8 +1109,15 @@ Outputs:
Condition: UseCustomDomain
Description: |
The endpoint associated with the custom domain name.
Add an A record in your DNS for the PCUI custom domain name pointing to this endpoint.
Add an A alias record in your DNS for the PCUI custom domain name pointing to this endpoint.
https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-to-api-gateway.html#routing-to-api-gateway-config
Copy link
Collaborator

Choose a reason for hiding this comment

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

We usually do not expose URLs we are not in direct control of as they may change over time.
This URL is owned by the Route53 team, not us.
May you please remove it?
Thanks

CustomDomainRegionalHostedZoneId:
Condition: UseCustomDomain
Description: |
The region-specific Amazon Route 53 Hosted Zone ID of the regional endpoint.
Copy link
Collaborator

Choose a reason for hiding this comment

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

May you please rephrase The Route 53 Hosted Zone ID of the regional endpoint.
"region-specific" is redundant here because of "regional endpoint".

Value: !GetAtt ApiGatewayCustomDomain.RegionalDomainName
CustomDomainRegionalHostedZoneId:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do you need this extra info to configured the DNS?
May you please clarify what's the use case where CustomDomainEndpoint is not enough?
Thank you

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.

2 participants