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
Copy file name to clipboardExpand all lines: docs/tutorials/use-your-own-domain-name.mdx
+13-18Lines changed: 13 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,25 +3,17 @@ title: How to Use Your Own Domain
3
3
sidebar_position: 600
4
4
---
5
5
6
-
# How to Use Your Own Domain
7
-
8
-
In our latest version of [Defang BYOC](https://docs.defang.io/docs/concepts/defang-byoc) (Bring Your Own Cloud), you can now use your own domain name. (Currently, this new feature is not applicable to [Defang Playground](https://docs.defang.io/docs/concepts/defang-playground))
6
+
# How to Use Your Own Domain with AWS
9
7
10
8
<iframewidth="560"height="315"src="https://www.youtube.com/embed/n4RlMpsdTbs?si=_Ru6tobSbi9LT4Q1"title="YouTube video player"frameborder="0"allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"referrerpolicy="strict-origin-when-cross-origin"allowfullscreen></iframe>
11
9
10
+
## Prerequisites
12
11
13
-
## Step 1 - Check your [Defang BYOC](../concepts/defang-byoc.md) settings
14
-
15
-
* Make sure you [install the latest version of the Defang CLI](../getting-started#install-the-defang-cli.md)
16
-
* Then, make sure you have properly [authenticated your AWS account](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html). The Defang CLI makes use of AWS environment variables like `AWS_PROFILE`, `AWS_REGION`, `AWS_ACCESS_KEY_ID`, and `AWS_SECRET_ACCESS_KEY`, so make sure the correct values are set for those.
17
-
18
-
If you use the AWS CLI, you can verify that your are authenticated against AWS using the following command (note that the AWS CLI itself is not required to use the Defang CLI in BYOC mode):
**If you purchased your domain with AWS, you can skip this step.**
@@ -31,8 +23,7 @@ For Defang to be able to manage your domain, you need to create a [public hosted
31
23
32
24
<imgsrc="/img/domains-tutorial/zone.png"alt="Hosted Zone UI Screenshot"style={{maxWidth: 650}} />
33
25
34
-
35
-
## Step 3 - Configure your DNS settings in your domain registrar
26
+
## Step 2 - Configure your DNS settings in your domain registrar
36
27
37
28
:::info
38
29
**If you purchased your domain with AWS, you can skip this step.**
@@ -43,7 +34,7 @@ You'll need to create NS records in your domain registrar that point to the AWS
43
34

44
35
45
36
46
-
## Step 4 - Set up Your Compose File
37
+
## Step 3 - Set up Your Compose File
47
38
In your compose file, specify the domain name you want to use, for example
48
39
49
40
```yaml
@@ -59,7 +50,7 @@ services:
59
50
```
60
51
61
52
62
-
## Step 5 - Deploy
53
+
## Step 4 - Deploy
63
54
Run the following command to deploy your service:
64
55
```bash
65
56
defang compose up
@@ -68,3 +59,7 @@ defang compose up
68
59
This will deploy your service and set up the necessary DNS records in Route 53 as seen in the screenshot below as well as provision SSL certificates. You can now access your service at the domain you specified in your compose file.
69
60
70
61
<imgsrc="/img/domains-tutorial/route53-records.png"alt="Route 53 DNS Records Screenshot" />
62
+
63
+
***
64
+
65
+
For a deeper discussion of how to use a custom domain with Defang, see our [Domain](/docs/concepts/domains) concept docs.
0 commit comments