You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 20, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: docs/providers/pulumi/aws.mdx
+46-4Lines changed: 46 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,8 +96,8 @@ The Nitric team is working to expand the list of resources that can be imported.
96
96
- [Buckets](/storage)
97
97
98
98
<Note>
99
-
Currently, only resources in the same AWS account and region as the Nitric project
100
-
are supported.
99
+
Currently, only resources in the same AWS account and region as the Nitric
100
+
project are supported.
101
101
</Note>
102
102
103
103
### Buckets
@@ -142,8 +142,8 @@ import:
142
142
```
143
143
144
144
<Note>
145
-
Unlike some other imported resources, secret imports require the ARN to be used.
146
-
Providing only the secret's name will be invalid.
145
+
Unlike some other imported resources, secret imports require the ARN to be
146
+
used. Providing only the secret's name will be invalid.
147
147
</Note>
148
148
149
149
Need to import another resource type or have another question? Chat with us on [Discord](https://nitric.io/chat) or [open an issue](https://github.com/nitrictech/nitric/issues) on GitHub.
@@ -190,6 +190,13 @@ apis:
190
190
- api.example.com
191
191
description: An AWS API
192
192
193
+
# Apply configuration for nitric websites
194
+
cdn:
195
+
# A valid domain or subdomain for the CloudFront Distribution to use for the deployed websites endpoint
196
+
domain: cdn.example.com
197
+
# Skip CDN cache invalidation during deployments (defaults to false)
198
+
skip-cache-invalidation: true
199
+
193
200
# Configure your deployed services
194
201
config:
195
202
# How services without a type will be deployed
@@ -228,6 +235,41 @@ config:
228
235
provisioned-concurrency: 1
229
236
```
230
237
238
+
### Websites
239
+
240
+
When deploying [websites](/websites), Nitric will create a CloudFront Distribution that automatically provides a public URL for your website. This URL is not suitable for production use, and you should configure a custom domain for your website.
241
+
242
+
The Hosted Zone used to configure the custom domain must be created in Route53 before deploying your CloudFront distribution with a custom domain configuration.
243
+
244
+
- Purchase/Register a domain name with your domain registrar of choice.
245
+
- Navigate to https://us-east-1.console.aws.amazon.com/route53/v2/hostedzones in your Azure Portal
246
+
- Click `Create hosted zone`
247
+
- Enter a `Domain name` of your choice, this should be the domain name you purchased i.e. example.com
248
+
- Select Public Hosted Zone
249
+
- Click `Create hosted zone`
250
+
- Once the Hosted Zone is created, click on the `Go to resource` button
251
+
252
+
Now that the Hosted Zone is created, you need to configure your registrar (domain) or existing DNS (subdomain) to point at the new name servers created for the zone.
253
+
254
+
The configuration details are available on the `Records` tab within the `Hosted Zone` page. This step is different depending on your chosen domain registrar. Below are some general steps depending on whether your configuring the primary domain or a subdomain.
255
+
256
+
#### Domain
257
+
258
+
Your registrar (e.g. Namecheap, GoDaddy, Cloudflare, etc.) will allow you to change the name servers for you domain, sometimes this is called 'Custom DNS'. Add each of the name servers (NS records) from the Registrar setup dialog in the relevant config page for your registrar.
259
+
260
+
#### Subdomain
261
+
262
+
If you're configuring a subdomain e.g. app.yourdomain.com, you can simply add the NS records to your existing DNS configuration for the chosen subdomain. Typically, the config will look something like this:
263
+
264
+
<Note>Substitute your values for `Nameserver`</Note>
265
+
266
+
| Record Type | Nameserver |
267
+
| ----------- | ----------------------- |
268
+
| NS Record | ns-001.awsdns-60.net. |
269
+
| NS Record | ns-002.awsdns-49.co.uk. |
270
+
| NS Record | ns-003.awsdns-24.org. |
271
+
| NS Record | ns-004.awsdns-34.com. |
272
+
231
273
<Note>
232
274
Missing something? Let us know by raising an issue in
233
275
[GitHub](https://github.com/nitrictech/nitric) or by dropping us a line on
0 commit comments