Skip to content

Commit 2877bd4

Browse files
committed
wildcard
1 parent 69b92fb commit 2877bd4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/cdk/resources/VectorIndex.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class VectorIndex extends Construct {
7171
}
7272
})
7373

74-
const collectionArn = `arn:aws:aoss:${props.region}:${props.account}:collection/${props.collection.name}`
74+
//const collectionArn = `arn:aws:aoss:${props.region}:${props.account}:collection/${props.collection.name}`
7575
// eslint-disable-next-line max-len
7676
// const indexArn = `arn:aws:aoss:${props.region}:${props.account}:index/${props.collection.name}/${props.indexName}`
7777

@@ -81,7 +81,7 @@ export class VectorIndex extends Construct {
8181
actions: [
8282
"aoss:BatchGetCollection"
8383
],
84-
resources: [collectionArn]
84+
resources: ["*"]
8585
})
8686
const getIndexPolicy = new PolicyStatement({
8787
actions: [

packages/indexWaiter/index_waiter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def handler(event, context):
3636
continue
3737

3838
# 2. Check index
39-
idx_resp = aoss.batch_get_index(names=[index_name], collectionName=collection_name)
39+
idx_resp = aoss.get_index(names=[index_name], collectionName=collection_name)
4040
idx = next((i for i in idx_resp.get("indexDetails", []) if i["name"] == index_name), None)
4141

4242
if not idx:

0 commit comments

Comments
 (0)