Skip to content

Commit 3fed222

Browse files
committed
updating obsolete docs
1 parent 136b532 commit 3fed222

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,15 @@ absent, the providers would be invoked.
100100
## AWS EC2 and ECS
101101

102102
You don't need an explicit `accessKey` / `secretKey` configuration when running on EC2 or ECS, as these environments
103-
provide a built-in metadata service to look up credentials. To enable no-config deployment in EC2 or ECS, add the
103+
provide a built-in metadata service to look up credentials. To enable no-config deployment in EC2, add the
104104
following credentials provider:
105105
```java
106-
AwsModule.extend(binder).addEC2ContainerCredentialsProvider();
106+
AwsModule.extend(binder).addContainerCredentialsProvider();
107+
```
108+
109+
and for ECS use this:
110+
```java
111+
AwsModule.extend(binder).addContainerCredentialsProvider();
107112
```
108113

109114
## AWS Lambdas

0 commit comments

Comments
 (0)