Skip to content

Latest commit

 

History

History

single-ebs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Single InfluxDB Server with EBS Volumes Example

Terraform example module which creates an InfluxDB server, with EBS backed data storage.

Usage

If you already meet the requirements, create an auto variables file such as example.auto.tfvars with at minimum these. Otherwise see further below for more instructions.

admin_password = "parameter/influxdb-admin-password"
aws_region = "us-east-2"
hosted_zone_id = "Z200LS379IE475"
key_pair_name = "my-ssh-key-pair-name"
private_subnet_ids = ["subnet-0178794a1983117d", "..."]
vpc_id = "vpc-05fbe87d7fea46d75"

Then run Terraform as usual:

terraform workspace new lab
terraform init
terraform plan -out terraform.tfplan
terraform apply terraform.tfplan

When you are done, delete the resources.

terraform destroy

AWS System Manager Parameter Store

This will create a parameter holding the password for the admin user.

aws --region us-east-2 ssm put-parameter --name "influxdb-admin-password" \
  --type SecureString --value CHANGE_IT