Skip to content

Commit 2d6c0a9

Browse files
Update sam tempalte
1 parent 99a31d9 commit 2d6c0a9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Resources:
5858
- Action:
5959
- athena:GetQueryExecution
6060
Effect: Allow
61-
Resource: '*'
61+
Resource: !Sub 'arn:${AWS::Partition}:athena:${AWS::Region}:${AWS::AccountId}:workgroup/*'
6262
Version: '2012-10-17'
6363

6464
# S3 Vector read access
@@ -71,7 +71,7 @@ Resources:
7171
- s3vectors:QueryVectors
7272
- s3vectors:GetVectors
7373
- s3vectors:ListVectors
74-
Resource: '*'
74+
Resource: !Sub 'arn:${AWS::Partition}:s3vectors:${AWS::Region}:${AWS::AccountId}:*'
7575

7676
#S3CrudPolicy allows our connector to spill large responses to S3. You can optionally replace this pre-made policy
7777
#with one that is more restrictive and can only 'put' but not read,delete, or overwrite files.

0 commit comments

Comments
 (0)