在创建Opensearch Serverless新集合之前创建安全策略?

0

【以下的问题经过翻译处理】 ``` "https response error StatusCode: 400, RequestID: ****, ValidationException: No matching security policy of encryption type found for collection name: test. Please create security policy of encryption type for this collection.

尝试在OpenSearch Serverless中创建一个集合时,出现了上述错误(通过[Go SDK](https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/opensearchserverless#Client.CreateCollection)创建)。

我确定肯定是做错了什么,但是仍对这个错误信息感到困惑。在输入中:<https://docs.aws.amazon.com/opensearch-service/latest/ServerlessAPIReference/API_CreateCollection.html>中没有一个字段可以指定集合应具有的安全策略。

在尝试创建集合之前,有什么遗漏步骤吗?
profile picture
エキスパート
質問済み 6ヶ月前21ビュー
1回答
0

【以下的回答经过翻译处理】 在创建集合之前需要先创建EncryptionPolicy。您可以尝试使用https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/opensearchserverless#Client.CreateSecurityPolicy创建一个加密策略,然后再创建集合。 我认为这在API文档中没有提到,但在产品页面中提到了:https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-manage.html#:~:text=Create%20a%20collection%20(CLI)

profile picture
エキスパート
回答済み 6ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ