Skip to content

OPENSEARCH CREATION

0

HI! I have this project on terraform where I need to create an assumerole and assign it with permission/policy that can spin up and spin down Opensearch. I tried to do it first in AWS console manually so I can understand the concept and I selected Opensearch Service on full-access but I can't still create the Opensearch Domain, it just load endlessly but when I assigned AdminAccess to the IAM user it created the domain instantly.

I would like to ask if what other services do I need to allow in order to successfully create the Opensearch Domain without Admin access?

2 Answers
0

This really depends on what you want to configure as part of the creation. For OpenSearch, I'd start with the service reference for the list of actions and how they can be controlled. If you don't want to be that granluar, you can use the AmazonOpenSearchServiceFullAccess managed policy which grants full access to the service (es:*).

AWS
EXPERT
answered 3 years ago
  • Thank you for replying! Is it possible to create only a spin up and spin down, without giving full access to Opensearch?

0

If you want more granular access control, you should create a custom policy and allow the following actions: es:CreateDomain, es:DeleteDomain, es:UpgradeDomain, es:UpdateDomainConfig, es:UpgradePackage

If need an Amazon OpenSearch Service domain that uses VPC access, you additionally would need es:CreateServiceRole, es:CreateVpcEndpoint, es:AuthorizeVpcEndpointAccess, es:DeleteVpcEndpoint, es:DeleteElasticsearchServiceRole

answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.