Skip to content

Commit

Permalink
MLPAB-2185 - Fix name of policy (#1293)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewpearce-digital authored Jun 11, 2024
1 parent 71eaabc commit ca5e8eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions terraform/account/opensearch.tf
Original file line number Diff line number Diff line change
Expand Up @@ -83,20 +83,20 @@ resource "aws_opensearchserverless_security_policy" "lpas_collection_development

resource "aws_opensearchserverless_access_policy" "github_actions_access" {
count = local.account_name == "development" ? 1 : 0
name = "team-access-shared-${local.account_name}"
name = "github-access-shared-development"
type = "data"
description = "allow index and collection access for team"
policy = jsonencode([
{
Rules = [
{
ResourceType = "index",
Resource = ["index/shared-collection-${local.account_name}/*"],
Resource = ["index/shared-collection-development/*"],
Permission = ["aoss:*"]
},
{
ResourceType = "collection",
Resource = ["collection/shared-collection-${local.account_name}"],
Resource = ["collection/shared-collection-development"],
Permission = ["aoss:*"]
}
],
Expand Down

0 comments on commit ca5e8eb

Please sign in to comment.