fjall 3.4.1 → 3.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,11 +6,11 @@ import {
6
6
  // Fjall-managed domain — edit this file to add or change records.
7
7
  // See https://docs.fjall.io/resources/networking/domain for the Domain construct API.
8
8
 
9
- const app = App.getApp("<%= safeZoneName %>Domain");
9
+ const app = App.getApp("<%= domainStackName %>");
10
10
  // The stack name is Fjall's domain deploy contract (getDomainStackName) —
11
11
  // the CLI records and resolves the deployed domain by this exact
12
12
  // CloudFormation stack name. Do not rename it.
13
- const stack = app.getStack("<%= safeZoneName %>Domain").getStack();
13
+ const stack = app.getStack("<%= domainStackName %>").getStack();
14
14
 
15
15
  new Domain(stack, "<%= safeZoneName %>", {
16
16
  registrar: "route53",
@@ -20,6 +20,11 @@ new Domain(stack, "<%= safeZoneName %>", {
20
20
  <% } -%>
21
21
  certificates: [
22
22
  { domainName: "<%= domainName %>" },
23
+ // Serving this zone through CloudFront (staticsite/cdn)? Add a viewer
24
+ // certificate with cloudFront: true — it is minted in us-east-1 (the
25
+ // only region CloudFront accepts) and publishes the zone-level
26
+ // us-east-1 certificate export the deploy binding carries, e.g.:
27
+ // { domainName: "www.<%= domainName %>", cloudFront: true },
23
28
  ],
24
29
  records: [],
25
30
  });
@@ -29,3 +34,7 @@ new Domain(stack, "<%= safeZoneName %>", {
29
34
  // and delegatedSubdomain set; the Fjall CLI injects parentDelegationRoleArn
30
35
  // (ManagedDomainBinding.delegationRoleArn) so the child UPSERTs its NS
31
36
  // records into this zone. This apex declares no delegations[].
37
+ // Adopting an EXISTING child zone instead of creating one? Set hostedZoneId
38
+ // and adoptedNameServers (both together) on the child Domain — the literals
39
+ // feed the parent NS UPSERT because an imported zone exposes no name-server
40
+ // attribute at synth.