Skip to content

Error response: "Principal: the items in the array must be unique" #13

Open
@Pela647

Description

@Pela647

Lines 108 and 109 here, are returning the same value and as a result, terraform apply is failing with the following error.
╷ │ Error: creating AWS OpenSearch Serverless Access Policy ("os-access-policy-bcq1") │ │ with module.bedrock.module.oss_knowledgebase[0].aws_opensearchserverless_access_policy.data_policy, │ on .terraform/modules/bedrock.oss_knowledgebase/main.tf line 74, in resource "aws_opensearchserverless_access_policy" "data_policy": │ 74: resource "aws_opensearchserverless_access_policy" "data_policy" { │ │ operation error OpenSearchServerless: CreateAccessPolicy, https response error StatusCode: 400, RequestID: d70bbe29-2451-4172-8f5e-02278b82d356, │ ValidationException: Policy json is invalid, error: [$[0].Principal: the items in the array must be unique] ╵

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions