# Is it possible to use terraform to create cluster privileges and roles?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-use-terraform-to-create-cluster-privileges-and-roles/360752>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-monitoring\
**Created:** [June 4, 2024, 1:34am UTC](https://discuss.elastic.co/t/is-it-possible-to-use-terraform-to-create-cluster-privileges-and-roles/360752 "2024-06-04T01:34:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wshao12](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wshao12/32/135013_2.png) [@wshao12](https://discuss.elastic.co/u/wshao12)\
**Post date:** [June 4, 2024, 1:34am UTC](https://discuss.elastic.co/t/is-it-possible-to-use-terraform-to-create-cluster-privileges-and-roles/360752/1 "2024-06-04T01:34:16Z")

</div>

Hi Support,  
I want to do cross cluster replication. The prerequisites of this process need manager privilege and master node role, as documented here: [ccr prerequisites](https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-getting-started-tutorial.html#ccr-getting-started-prerequisites)  
Is it possible to use terraform to manage it? I do not see any api [here](https://registry.terraform.io/providers/elastic/ec/latest/docs/resources/deployment#nestedatt--elasticsearch--config)

Thank you,  
William
