Skip to content

Commit 43be054

Browse files
Update permission
1 parent e9997a9 commit 43be054

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

athena-s3vector-connector/athena-s3vector-connector.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,13 @@ Resources:
5252
FunctionName: !Sub "${AthenaCatalogName}"
5353
Handler: "com.amazonaws.athena.connectors.s3vector.S3VectorCompositeHandler"
5454
CodeUri: "./target/athena-s3vector-connector-0.1.0.jar"
55-
Description: "A guided example for writing and deploying your own federated Amazon Athena connector for a custom source."
55+
Description: "Federated connector to query vector data stored in S3 Vector buckets."
5656
Runtime: java11
5757
Timeout: !Ref LambdaTimeout
5858
MemorySize: !Ref LambdaMemory
5959
Policies:
60+
# It's common and expected for a single Athena connector to serve queries from multiple workgroups.
61+
# However, if the lambda is restricted to a specific workgroup update the permission to "arn:aws:athena:<region>:<account-id>:workgroup/<workgroup-name>"
6062
- Statement:
6163
- Action:
6264
- athena:GetQueryExecution
@@ -70,7 +72,6 @@ Resources:
7072
Effect: Allow
7173
Action:
7274
- s3vectors:ListIndexes
73-
- s3vectors:ListVectors
7475
Resource: !Sub 'arn:${AWS::Partition}:s3vectors:${AWS::Region}:${AWS::AccountId}:*'
7576

7677
# S3 Vector data access (scoped to specific bucket and its indexes)
@@ -81,6 +82,7 @@ Resources:
8182
- s3vectors:GetIndex
8283
- s3vectors:QueryVectors
8384
- s3vectors:GetVectors
85+
- s3vectors:ListVectors
8486
Resource:
8587
- !Sub 'arn:${AWS::Partition}:s3vectors:${AWS::Region}:${AWS::AccountId}:vector-bucket/${S3VectorBucketName}'
8688
- !Sub 'arn:${AWS::Partition}:s3vectors:${AWS::Region}:${AWS::AccountId}:vector-bucket/${S3VectorBucketName}/*'

0 commit comments

Comments
 (0)