Skip to content

Commit 5c25343

Browse files
committed
docs: The AWS token must be a single line in .netrc
1 parent bb40c7a commit 5c25343

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Sources/swift-container-plugin/Documentation.docc/authentication.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ machine ghcr.io
6969
You'll need to know the name of the [AWS region](https://docs.aws.amazon.com/global-infrastructure/latest/regions/aws-regions.html) in which your registry is hosted.
7070
Registries in different AWS regions are separate and require different authentication tokens.
7171

72-
The following command generates a token which can be used with ECR in the `us-west-2` region:
72+
For example, the following command generates a token for ECR in the `us-west-2` region:
7373
```
7474
aws ecr get-login-password --region us-west-2
7575
```
@@ -88,7 +88,8 @@ Registries in different AWS regions are separate and require different authentic
8888
--output text
8989
```
9090
* **The login name must be `AWS`**.
91-
* The token is a large encoded string which is not shown in full in the example.
91+
* The token is a large encoded string.
92+
It must appear in the `.netrc` file as a single line, with no breaks.
9293
9394
The final `.netrc` entry should be similar to this:
9495

0 commit comments

Comments
 (0)