Skip to content

Commit cca6b71

Browse files
committed
fix tip for aws sts caller identity
1 parent 765bc78 commit cca6b71

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

docs/providers/aws/aws.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Why should you use Defang with AWS? Defang allows you to easily create and manag
1717
Getting started with the Defang BYOC AWS Provider is easy. The first step is to [authenticate your shell](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html) with AWS as an admin user. The authenticated user should be an IAM admin because Defang will need permission to create resources and IAM roles in your account.
1818

1919
:::tip
20-
If you have the aws CLI installed, you should be able to successfully run `aws sts get-caller-identity` and see your account ID.
20+
If you have the AWS CLI installed, you should be able to successfully run `aws sts get-caller-identity` and see your account ID.
2121
:::
2222

2323
Use the `--provider=aws` flag to tell the Defang CLI to use the AWS Provider or set the `DEFANG_PROVIDER` environment variable to `aws`.

docs/tutorials/deploy-to-aws.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ Once you've done that, Defang will look for your AWS credentials in your shell e
2828
* the `AWS_PROFILE` environment variable
2929
* or, the `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` environment variables
3030

31+
:::tip
32+
If you have the AWS CLI installed (which is not required in order to use the Defang CLI), you can verify that you've authenticated to AWS by running `aws sts get-caller-identity` and see your account ID.
33+
:::
34+
3135
## Step 3 - Deploy
3236

3337
Invoke the `defang up` CLI command with the `--provider=aws` flag or set the `DEFANG_PROVIDER=aws` environment variable.

docs/tutorials/deploy-with-gpu.mdx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,9 @@ You'll need to clone [this sample](https://github.com/DefangLabs/samples/tree/ma
3434
* Make sure you [install the latest version of the Defang CLI](../getting-started/installing.md)
3535
* 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.
3636

37-
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):
38-
```bash
39-
aws sts get-caller-identity
40-
```
41-
37+
:::tip
38+
If you have the AWS CLI installed (which is not required in order to use the Defang CLI), you can verify that you've authenticated to AWS by running `aws sts get-caller-identity` and see your account ID.
39+
:::
4240

4341
## Step 3 - Prepare your Environment
4442
* Log into your Defang account

0 commit comments

Comments
 (0)