Skip to content

chore: add default domain alias for static site#5191

Merged
mergify[bot] merged 6 commits intoaws:mainlinefrom
KollaAdithya:default/alias/staticsite
Aug 18, 2023
Merged

chore: add default domain alias for static site#5191
mergify[bot] merged 6 commits intoaws:mainlinefrom
KollaAdithya:default/alias/staticsite

Conversation

@KollaAdithya
Copy link
Copy Markdown
Contributor

resolves #5159

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.

@KollaAdithya KollaAdithya requested a review from a team as a code owner August 14, 2023 16:45
@KollaAdithya KollaAdithya requested review from huanjani and removed request for a team August 14, 2023 16:45
@KollaAdithya KollaAdithya changed the title chore: add default alias for static site chore: add default domain alias for static site Aug 14, 2023
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Aug 14, 2023

🍕 Here are the new binary sizes!

Name New size (kiB) size (kiB) Delta (%)
macOS (amd) 51628 51488 +0.27
macOS (arm) 51828 51680 +0.29
linux (amd) 45452 45324 +0.28
linux (arm) 43716 43588 +0.29
windows (amd) 42256 42144 +0.27

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Aug 14, 2023

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.49%. Comparing base (185035a) to head (1d1e09f).
⚠️ Report is 340 commits behind head on mainline.

Additional details and impacted files
@@            Coverage Diff            @@
##           mainline    #5191   +/-   ##
=========================================
  Coverage     69.48%   69.49%           
=========================================
  Files           295      295           
  Lines         43926    43936   +10     
  Branches        285      286    +1     
=========================================
+ Hits          30524    30534   +10     
  Misses        11909    11909           
  Partials       1493     1493           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.


// If the certificate domain is one of the aliases, expect one validation option for each alias.
// Otherwise, include an extra validation option for the certificate domain itself.
let expectedCount = aliases.has(certificateDomain) ? aliases.size : aliases.size + 1;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks like we have the same problem with NLB as well: if they specify ${serviceName}-nlb.${envName}.${appName}.${domainName} as the NLB alias 🤔

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes that's true, we are using the same custom resource for nlb alias as well.

Comment thread internal/pkg/deploy/cloudformation/stack/static_site.go Outdated
Comment thread internal/pkg/deploy/cloudformation/stack/static_site.go Outdated
Comment thread internal/pkg/deploy/cloudformation/stack/static_site.go Outdated
@KollaAdithya KollaAdithya force-pushed the default/alias/staticsite branch from 572421c to 6dd50ee Compare August 18, 2023 21:29
@mergify mergify Bot merged commit 20d1250 into aws:mainline Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Static Site does not honor --domain option

5 participants