This example creates an Elasticsearch Domain with fine-grained access control enabled
- Elasticsearch 6.7 or later
- Encryption of data at rest and node-to-node encryption enabled
- Require HTTPS for all traffic to the domain enabled Source: https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/fgac.html#fgac-enabling
Note: Fine-grained access control can only be enabled on new domains. Once enabled, it cannot be disabled.
To run, configure your AWS provider as described in https://www.terraform.io/docs/providers/aws/index.html
For planning phase
terraform plan
For apply phase
terraform apply
To remove the stack
terraform destroy