Skip to content

Commit 2fc4e4f

Browse files
committed
correct policy
1 parent 192fa32 commit 2fc4e4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cdk/resources/VectorIndex.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export class VectorIndex extends Construct {
7676
// const indexArn = `arn:aws:aoss:${props.region}:${props.account}:index/${props.collection.name}/${props.indexName}`
7777

7878
//const collectionArn = "aoss:collection/*"
79-
const indexArn = `arn:aws:aoss:${props.region}:${props.account}:index/*`
79+
const indexArn = `arn:aws:aoss:${props.region}:${props.account}:collection/${props.collection.attrId}`
8080
const getCollectionPolicy = new PolicyStatement({
8181
actions: [
8282
"aoss:BatchGetCollection"

0 commit comments

Comments
 (0)