Skip to content

Commit b02b8aa

Browse files
move the authentication doc from "getting-started" to "concepts"
1 parent f181059 commit b02b8aa

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

docs/concepts/accounts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Eventually, billing and payment information will be associated with your account
1616

1717
## Creating an Account
1818

19-
To create an account, simply login to Defang and accept the [terms of service](https://defang.io/terms-service.html) using the [CLI](../getting-started/authenticating.md).
19+
To create an account, simply login to Defang and accept the [terms of service](https://defang.io/terms-service.html) using the [CLI](/docs/concepts/authentication.md).
2020

2121
At the moment, the only way to authenticate with Defang is through GitHub. We plan to offer other authentication providers in the future.
2222

@@ -34,4 +34,4 @@ Keep in mind that your Defang account is separate from your [cloud provider acco
3434

3535
:::info
3636
We plan to introduce a more robust system for managing accounts, permissions, service groups, etc. in the future.
37-
:::
37+
:::
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
sidebar_position: 200
3-
title: Authenticating
4-
description: Authenticate with Defang.
3+
title: Authentication
4+
description: Authenticating with Defang.
55
---
66

7-
# Authenticating
7+
# Authenticating with Defang
88

99
To do pretty much anything with Defang, you'll need to authenticate with the platform. You can do this by running the following command:
1010

@@ -16,4 +16,4 @@ This will prompt you to open a browser and log into your Defang account. For now
1616

1717
:::warning
1818
Keep in mind that your Defang account is separate from your [cloud provider account](../concepts/defang-byoc.md). You will need to authenticate with your cloud provider account separately to deploy services to your own cloud account.
19-
:::
19+
:::

docs/getting-started/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Please visit http://127.0.0.1:49154 and log in. (Right click the URL or press EN
7272
```
7373

7474
:::info
75-
To learn more about how authentication works in defang, check out the [authenticating page](/docs/getting-started/authenticating).
75+
To learn more about how authentication works in defang, check out the [authenticating page](/docs/concepts/authentication).
7676
:::
7777

7878
When you do this, you should see something similar to the output below:

docs/tutorials/deploy-to-aws.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This tutorial will show you how to deploy your services to your own AWS account
1111
## Pre-requisites
1212
* [A Dockerfile in your project](https://docs.docker.com/get-started/docker-concepts/building-images/writing-a-dockerfile/)
1313
* [A `compose.yaml` file in your project](https://docs.docker.com/compose/gettingstarted/)
14-
* [A Defang Account](/docs/getting-started/authenticating)
14+
* [A Defang Account](/docs/concepts/authentication)
1515
* [The Defang CLI](/docs/getting-started/installing)
1616
* [AWS Account Credentials](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-authentication.html)
1717

@@ -23,7 +23,7 @@ $ cd path/to/your/project
2323

2424
## Step 2 - Authenticate Defang to use your AWS Account
2525

26-
There are many ways to authenticate your [AWS account](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-authentication.html).
26+
There are many ways to authenticate your [AWS account](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-authentication.html).
2727
Once you've done that, Defang will look for your AWS credentials in your shell environment and expect to find one of the following credential sets:
2828
* the `AWS_PROFILE` environment variable
2929
* or, the `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` environment variables

docs/tutorials/deploy-to-digitalocean.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This tutorial will show you how to deploy your services to your own DigitalOcean
1111
## Pre-requisites
1212
* [A Dockerfile in your project](https://docs.docker.com/get-started/docker-concepts/building-images/writing-a-dockerfile/)
1313
* [A `compose.yaml` file in your project](https://docs.docker.com/compose/gettingstarted/)
14-
* [A Defang Account](/docs/getting-started/authenticating)
14+
* [A Defang Account](/docs/concepts/authentication)
1515
* [The Defang CLI](/docs/getting-started/installing)
1616
* [DigitalOcean Account Credentials](/docs/providers/digitalocean#getting-started)
1717
* [DigitalOcean Spaces Access Keys](/docs/providers/digitalocean#getting-started)

docs/tutorials/deploy-to-playground.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This tutorial will show you how to deploy your project to the Defang Playground.
1111
## Pre-requisites
1212
* [A Dockerfile in your project](https://docs.docker.com/get-started/docker-concepts/building-images/writing-a-dockerfile/)
1313
* [A `compose.yaml` file in your project](https://docs.docker.com/compose/gettingstarted/)
14-
* [A Defang Account](/docs/getting-started/authenticating)
14+
* [A Defang Account](/docs/concepts/authentication)
1515
* [The Defang CLI](/docs/getting-started/installing)
1616

1717
## Step 1 - Navigate to your project directory
@@ -34,7 +34,7 @@ Please visit http://127.0.0.1:49154 and log in. (Right click the URL or press EN
3434
```
3535

3636
:::info
37-
To learn more about how authentication works in defang, check out the [authenticating page](/docs/getting-started/authenticating).
37+
To learn more about how authentication works in defang, check out the [authenticating page](/docs/concepts/authentication).
3838
:::
3939

4040
When you do this, you should see something similar to the output below:

docs/tutorials/deploy-using-pulumi.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ sidebar_position: 400
1111

1212
Make sure to install the [Pulumi CLI](https://www.pulumi.com/docs/install/) and the [Defang CLI](../getting-started/installing.md).
1313

14-
Make sure you are logged into the [Defang CLI](../getting-started/authenticating.md). Don't worry about the Pulumi CLI for now.
14+
Make sure you are logged into the [Defang CLI](/docs/concepts/authentication.md). Don't worry about the Pulumi CLI for now.
1515

1616
## Project Directory Setup
1717

static/samples.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
{
8383
"name": "nextjs",
8484
"category": "nodejs",
85-
"readme": "# Next.js × Defang\n\nA basic Next.js app with a Dockerfile and docker-compose ready to deploy to AWS with [Defang](https://defang.io).\n\n## Steps\n\n1. [Install Defang](https://docs.defang.io/docs/getting-started/installing)\n2. [Authenticate with Defang](https://docs.defang.io/docs/getting-started/authenticating)\n3. (optional) [Authenticate with AWS](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html)\n4. Run `defang compose up` in the root of this project"
85+
"readme": "# Next.js × Defang\n\nA basic Next.js app with a Dockerfile and docker-compose ready to deploy to AWS with [Defang](https://defang.io).\n\n## Steps\n\n1. [Install Defang](https://docs.defang.io/docs/getting-started/installing)\n2. [Authenticate with Defang](https://docs.defang.io/docs/concepts/authentication)\n3. (optional) [Authenticate with AWS](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html)\n4. Run `defang compose up` in the root of this project"
8686
},
8787
{
8888
"name": "nextjs-boilerplate",
@@ -92,7 +92,7 @@
9292
{
9393
"name": "nextjs-github-actions",
9494
"category": "nodejs",
95-
"readme": "# Next.js × Defang\n\nA basic Next.js app with a Dockerfile and docker-compose ready to deploy to AWS with [Defang](https://defang.io).\n\n## Steps\n\n1. [Install Defang](https://docs.defang.io/docs/getting-started/installing)\n2. [Authenticate with Defang](https://docs.defang.io/docs/getting-started/authenticating)\n3. (optional) [Authenticate with AWS](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html)\n4. Run `defang compose up` in the root of this project"
95+
"readme": "# Next.js × Defang\n\nA basic Next.js app with a Dockerfile and docker-compose ready to deploy to AWS with [Defang](https://defang.io).\n\n## Steps\n\n1. [Install Defang](https://docs.defang.io/docs/getting-started/installing)\n2. [Authenticate with Defang](https://docs.defang.io/docs/concepts/authentication)\n3. (optional) [Authenticate with AWS](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html)\n4. Run `defang compose up` in the root of this project"
9696
},
9797
{
9898
"name": "remix-aiven-postgres",
@@ -169,4 +169,4 @@
169169
"category": "ruby",
170170
"readme": "\nThis template is a member list project developed using Ruby on Rails, offering a starting point to help you quickly build your team management system. We have prepared all the essential files for deployment. By spending less than 10 minutes setting up the environment, as detailed in the prerequisites, and executing the commands in our step-by-step guide, your website will be ready to go live to the world!\n\n## NOTE\n1. This sample showcases how you could deploy a full-stack application with Defang in Ruby on Rails. However, it uses a SQLite database, which isn't production-ready and will be reset with every deployment. For production use cases you should use a managed database like RDS, Aiven, or others. If you stick to Rail's default SQLite database, your stored data will be lost on every deployment, and in some other cases. In the future, Defang will help you provision and connect to managed databases.\n\n## Essential Setup Files\n1. A <a href=\"https://docs.docker.com/develop/develop-images/dockerfile_best-practices/\">Dockerfile</a> to describe the basic image of your applications.\n2. A <a href=\"https://docs.defang.io/docs/concepts/compose\">docker-compose file</a> to define and run multi-container Docker applications.\n3. A <a href=\"https://docs.docker.com/build/building/context/#dockerignore-files\">.dockerignore</a> file to comply with the size limit (10MB).\n\n## Prerequisite\n1. Download <a href=\"https://github.com/defang-io/defang\">Defang CLI</a>\n2. If you are using <a href=\"https://docs.defang.io/docs/concepts/defang-byoc\">Defang BYOC</a>, make sure you have properly <a href=\"https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html\">authenticated your AWS account</a>\nPlus, make sure that you have properly set your environment variables like `AWS_PROFILE`, `AWS_REGION`, `AWS_ACCESS_KEY_ID`, and `AWS_SECRET_ACCESS_KEY`.\n\n## A Step-by-Step Guide\n1. Open the terminal and type `defang login`\n2. Type `defang compose up` in the CLI\n3. Now your application will be launched\n"
171171
}
172-
]
172+
]

0 commit comments

Comments
 (0)