Skip to content

Commit 2117b85

Browse files
author
Fluder
committed
Fix role format
1 parent e349103 commit 2117b85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/example_code/s3/src/main/java/aws/example/s3/CrossRegionReplication.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static void main(String[] args) throws IOException {
6565
String destBucketName = "*** Destination bucket name ***";
6666
String prefix = "Tax/";
6767

68-
String roleARN = String.format("arn:aws:iam::%s:role/%s", accountId, roleName);
68+
String roleARN = String.format("arn:aws:iam::%s:%s", accountId, roleName);
6969
String destinationBucketARN = "arn:aws:s3:::" + destBucketName;
7070

7171
AmazonS3 s3Client = AmazonS3Client.builder()
@@ -183,4 +183,4 @@ private static void assignRole(String roleName, Regions region, String sourceBuc
183183
}
184184
}
185185

186-
// snippet-end:[s3.java.cross_region_replication.complete]
186+
// snippet-end:[s3.java.cross_region_replication.complete]

0 commit comments

Comments
 (0)