cloud
aws-ia/cloud/elastic
Terraform module automates Elastic Cloud deployment and optional data migration to the AWS Cloud.
Terraform for Elastic Cloud on AWS This Terraform module automates your Elastic Cloud deployment and optional data migration to the AWS Cloud. The deployment provisions the following components: Your Elastic Cloud cluster. Amazon Elastic Compute Cloud (Amazon EC2), which is needed for Elastic Agent. An Amazon Simple Storage Service (Amazon S3) bucket needed for Elasticsearch snapshots. Elastic Serverless Forwarder for data ingestion. An AWS Identity and Access Management (IAM) instance role with fine-grained permissions to access AWS services. Existing customers with Elasticsearch cluster data stored on premises in a self-managed Elasticsearch cluster can optionally choose to migrate that data into Elastic Cloud after deployment to AWS. Both the deployment and migration processes are cover
| Name | Type | Description | Default |
|---|---|---|---|
| name | string | Deployment Name | required |
| s3_client_access_key | string | Access Key ID for the S3 repository | required |
| availability_zone | string | Availability Zone into which the instance is deployed | required |
| associate_public_ip_address | bool | Whether to associate a public IP address with an instance in a VPC | required |
| vpc_security_group_ids | list(string) | A list of security group IDs with which to associate the instance | required |
| s3_client_secret_key | string | Secret Access Key for the S3 repository | required |
| ami | string | AMI ID for the instance | required |
| key_name | string | Key name of the EC2 Key Pair to use for the instance. | required |
| apikey | string | Elasticsearch Service API Key | required |
| subnet_id | string | Subnet ID | required |
| user_data | string | The user data to provide when launching the instance. | required |
| deployment_template_id | string | "aws-io-optimized-v2" | |
| region | string | AWS Region | "us-west-2" |
| sourceip | string | "0.0.0.0/0" | |
| existing_s3_repo_bucket_name | string | Existing S3 bucket name for repository | "" |
| ec2_name | string | EC2 Name | "single-instance" |
| autoscale | string | "false" | |
| zone_count | number | 1 | |
| local_elasticsearch_url | string | Migrates self-hosted Elasticsearch data if its URL is provided – e.g., http://12 | "" |
| local_elasticsearch_repo_name | string | Creates an S3 repository with the specified name for the local cluster | "es-index-backups" |
| repo_s3_bucket_prefix | string | Creates a unique bucket name beginning with the specified prefix | "es-s3-repo" |
| root_block_device | list(any) | Details about the root block device of the instance. | [] |
| deployment_version | string | Elastic Cloud Deployment Version | "7.17.0" |
| agent_s3_bucket_prefix | string | Creates a unique bucket name beginning with the specified prefix | "es-s3-agent" |
| instance_type | string | The type of instance to start | "t3.micro" |
| tags | map(string) | tags, which could be used for additional tags | {} |
elasticsearch_https_endpointelasticsearch_cloud_idkibana_https_endpointapm_https_endpointdeployment_id