Skip to content

Flaconi/terraform-aws-xlt-loadtest

Repository files navigation

terraform-aws-xlt-loadtest

Build Status Tag License

This Terraform module can create typical resources needed for XLT Loadtest

Usage

WAF ACL

module "terraform-aws-xlt-loadtest" {
  source = "github.com/flaconi/terraform-aws-xlt-loadtest"

  name = "< unique identifier >"
  keyname  = "< your ssh keyname (existing keypair name) >"

  instance_count = 2
  password = xlt1234AbcD

  # start_port_services = "5000"
  # start_port_ssh = "6000"

  # local_network = "10.0.0.0/16"
  # instance_type = "c4.2xlarge"

  # allowed_networks = "ip/32"
}

Requirements

Name Version
terraform >= 1.0
aws >= 5

Providers

Name Version
aws >= 5

Modules

Name Source Version
ec2_sg terraform-aws-modules/security-group/aws 5.1.0
grafana terraform-aws-modules/ec2-instance/aws 5.1.0
vpc terraform-aws-modules/vpc/aws 5.0.0
xceptance_cluster terraform-aws-modules/ec2-instance/aws 5.1.0

Resources

Name Type
aws_lb.this resource
aws_lb_listener.grafana resource
aws_lb_listener.this resource
aws_lb_target_group.grafana resource
aws_lb_target_group.this resource
aws_lb_target_group_attachment.agents resource
aws_lb_target_group_attachment.grafana resource

Inputs

Name Description Type Default Required
allowed_networks The allowed networks IP/32 list(string) n/a yes
name The name used for further interpolation string n/a yes
password The password to use string n/a yes
ami The AMI used for the agents string "ami-036cc6f041deb429b" no
grafana_ami The grafana ami (required if grafana_enabled is set to true) string "ami-0fc36223101444802" no
grafana_enabled Do we create a custom Grafana instance bool false no
instance_count The amount of instances to start string 2 no
instance_count_per_lb The amount of instances per lb string 50 no
instance_type The default instance_type string "c5.2xlarge" no
keyname The existing keyname of the keypair used for connecting with ssh to the agents string "" no
local_network The vpc network string "10.0.0.0/16" no
start_port_services The first agent of many will be exposed at port 5000 of the NLB, the second on 5001 etc.etc. number 5000 no
start_port_ssh The first ssh of the agents will be exposed at port 6000 of the NLB, the second on 6001 etc.etc. number 6000 no
tags The tags to add map(string) {} no

Outputs

Name Description
lb_host n/a
master_controller_properties n/a
reporting_host n/a
vpc_nat_eips n/a

License

MIT

Copyright (c) 2019-2023 Flaconi GmbH