Skip to content

tothenew/terraform-aws-elasticsearch

terraform-aws-elasticsearch

Lint Status LICENSE

This is a elasticsearch to use for baseline. The default actions will provide updates for section bitween Requirements and Outputs.

Usages

module "elasticsearch" {
  source     = "git::https://github.com/tothenew/terraform-aws-elasticsearch.git"
  vpc_id     = "vpc-999999999999"
  subnet_ids = ["subnet-999999999999"]
  key_name   = "tothenew"
}

Requirements

Name Version
terraform >= 1.3.0
aws >= 3.72
template >= 2.2.0

Providers

Name Version
aws >= 3.72
template >= 2.2.0

Modules

No modules.

Resources

Name Type
aws_cloudwatch_log_group.cloudwatch_log_group resource
aws_cloudwatch_log_resource_policy.cloudwatch_log_resource_policy resource
aws_elasticsearch_domain.elasticsearch resource
aws_iam_instance_profile.elasticsearch_profile resource
aws_iam_role.elasticsearch_role resource
aws_iam_role_policy_attachment.elasticsearch_AmazonSSMManagedInstanceCore resource
aws_iam_service_linked_role.service_linked_role resource
aws_instance.ec2_elasticsearch resource
aws_security_group.elasticsearch_sg resource
aws_ssm_parameter.elasticsearch_host resource
aws_ami.amazon_linux_2 data source
aws_caller_identity.current data source
aws_region.current data source
aws_vpc.selected data source
template_file.user_data data source

Inputs

Name Description Type Default Required
advanced_security_options_enabled Advance Security Option to Enable for Authentication bool false no
ami_id AMI id of the Amazon Linux 2 string "" no
automated_snapshot_start_hour AWS elasticsearch snapshot start hour time number 22 no
availability_zone_count Availability Zone count when zone is enabled number 2 no
cloudwatch_logs_retention Cloudwatch logs of the AWS Elasticsearch retention period number 7 no
common_tags A map to add common tags to all the resources map(string)
{
"Environment": "dev",
"Project": "ToTheNew"
}
no
create_aws_ec2_elasticsearch If you want to create the AWS EC2 instance elasticsearch enable this check bool true no
create_aws_elasticsearch If you want to create the AWS elasticsearch enable this check bool false no
create_iam_service_linked_role Whether to create AWSServiceRoleForAmazonElasticsearchService service-linked role. Set it to false if you already have an ElasticSearch cluster created in the AWS account and AWSServiceRoleForAmazonElasticsearchService already exists. bool false no
delete_on_termination Delete the volume after the termination of the EC2 bool true no
disable_api_stop Disable API stop means disable instance stop bool true no
disable_api_termination Disable API termination means disable instance termination bool true no
ebs_optimized EBS optimized enable bool true no
elasticsearch_version AWS Elasticsearch version default is 7.10 which is latest string "7.10" no
iam_instance_profile IAM Profile name for launching the EC2 instance string "" no
instance_count Number of node of AWS elasticsearch you want to launch number 1 no
instance_type Instance type of the Server string "t3.large" no
key_name Key name for launching the EC2 instance string "" no
kms_key_id KMS key ID for creating AWS resources default alias for EC2 is aws/ebs and for AWS Elasticsearch aws/es string "alias/aws/ebs" no
master_user_name Username of the security option enabled string "" no
master_user_password Password of the security option enabled string "" no
project_name_prefix A string value to describe prefix of all the resources string "dev-tothenew" no
security_group_ids A string value for Security Group ID list(string) [] no
source_dest_check Source destination Check bool true no
subnet_ids Subnet Ids where server will be launched list(string) n/a yes
volume_encrypted Volume can be encrypted through this check bool true no
volume_size Volume size of the EC2 instance number 100 no
volume_type Volume type for EC2 instance default latest type string "gp3" no
vpc_id A string value for VPC ID string n/a yes
zone_awareness_enabled Zone Awareness enable for multi AZ bool false no

Outputs

Name Description
ec2_elasticsearch_private_ip n/a
elasticsearch_arn n/a
elasticsearch_domain_id n/a
elasticsearch_domain_name n/a
elasticsearch_endpoint n/a
kibana_endpoint n/a

Authors

Module managed by TO THE NEW Pvt. Ltd.

License

Apache 2 Licensed. See LICENSE for full details.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors