Skip to content

Commit

Permalink
fix the role to install opensearch
Browse files Browse the repository at this point in the history
  • Loading branch information
vallard committed Aug 2, 2022
1 parent 09fbfac commit 2063618
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 02/terraform/iam/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,8 @@ resource "aws_iam_role" "eks_dude_role" {
managed_policy_arns = [
"arn:aws:iam::aws:policy/AmazonEC2FullAccess",
aws_iam_policy.iamPassRole.arn,
aws_iam_policy.EKSFullAccess.arn
aws_iam_policy.EKSFullAccess.arn,
"arn:aws:iam::aws:policy/AmazonOpenSearchServiceFullAccess",
]
}

Expand Down
4 changes: 4 additions & 0 deletions 02/terragrunt/modules/opensearch/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
data "aws_caller_identity" "current" {}
data "aws_region" "current" {}
locals {
iam_state = data.terraform_remote_state.iam.outputs.iam
}


resource "aws_iam_service_linked_role" "cluster" {
aws_service_name = "opensearchservice.amazonaws.com"
Expand Down

0 comments on commit 2063618

Please sign in to comment.