Skip to content

Commit 7335140

Browse files
committed
Update aws-role config to aws-role-arn.
Summary - 1. Updated README.md 2. SigV4AuthProvider.java
1 parent b78dc6c commit 7335140

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ One of the constructors for `software.aws.mcs.auth.SigV4AuthProvider` takes two
6969

7070
### Configuration
7171

72-
Set the IAM Role explicitly in your `advanced.auth-provider` configuration (see example below), by specifying the `advanced.auth-provider.aws-role` property.
72+
Set the IAM Role explicitly in your `advanced.auth-provider` configuration (see example below), by specifying the `advanced.auth-provider.aws-role-arn` property.
7373

7474
## Add the Authentication Plugin to the Application
7575

@@ -164,7 +164,7 @@ The following is an example of this config with an explicit role to be assumed.
164164
auth-provider = {
165165
class = software.aws.mcs.auth.SigV4AuthProvider
166166
aws-region = us-east-2
167-
aws-role = "arn:aws:iam::ACCOUNT_ID:role/ROLE_NAME"
167+
aws-role-arn = "arn:aws:iam::ACCOUNT_ID:role/ROLE_NAME"
168168
}
169169
ssl-engine-factory {
170170
class = DefaultSslEngineFactory

src/main/java/software/aws/mcs/auth/SigV4AuthProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public SigV4AuthProvider() {
106106

107107
private final static DriverOption REGION_OPTION = () -> "advanced.auth-provider.aws-region";
108108

109-
private final static DriverOption ROLE_OPTION = () -> "advanced.auth-provider.aws-role";
109+
private final static DriverOption ROLE_OPTION = () -> "advanced.auth-provider.aws-role-arn";
110110

111111
/**
112112
* This constructor is provided so that the driver can create

src/test/resources/keyspaces-reference-withrole.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ datastax-java-driver {
1212
auth-provider = {
1313
class = software.aws.mcs.auth.SigV4AuthProvider
1414
aws-region = ap-south-1
15-
aws-role = "arn:aws:iam::ACCOUNT_ID:role/keyspaces-act2-role"
15+
aws-role-arn = "arn:aws:iam::ACCOUNT_ID:role/keyspaces-act2-role"
1616
}
1717
ssl-engine-factory {
1818
class = DefaultSslEngineFactory

0 commit comments

Comments
 (0)