File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -100,10 +100,15 @@ absent, the providers would be invoked.
100100## AWS EC2 and ECS
101101
102102You 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
104104following 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
You can’t perform that action at this time.
0 commit comments