fjall 2.33.0 → 3.0.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.
@@ -0,0 +1,31 @@
1
+ import {
2
+ App,
3
+ Domain,
4
+ } from "@fjall/components-infrastructure";
5
+
6
+ // Fjall-managed domain — edit this file to add or change records.
7
+ // See https://docs.fjall.io/resources/networking/domain for the Domain construct API.
8
+
9
+ const app = App.getApp("<%= safeZoneName %>Domain");
10
+ // The stack name is Fjall's domain deploy contract (getDomainStackName) —
11
+ // the CLI records and resolves the deployed domain by this exact
12
+ // CloudFormation stack name. Do not rename it.
13
+ const stack = app.getStack("<%= safeZoneName %>Domain").getStack();
14
+
15
+ new Domain(stack, "<%= safeZoneName %>", {
16
+ registrar: "route53",
17
+ zoneName: "<%= domainName %>",
18
+ <% if (hostedZoneId) { -%>
19
+ hostedZoneId: "<%= hostedZoneId %>",
20
+ <% } -%>
21
+ certificates: [
22
+ { domainName: "<%= domainName %>" },
23
+ ],
24
+ records: [],
25
+ });
26
+
27
+ // Delegating a subdomain to another account? (D8 — child writes NS.)
28
+ // Declare the child as its own Domain with registrar: "external-delegated"
29
+ // and delegatedSubdomain set; the Fjall CLI injects parentDelegationRoleArn
30
+ // (ManagedDomainBinding.delegationRoleArn) so the child UPSERTs its NS
31
+ // records into this zone. This apex declares no delegations[].