/terraform-aws-jmeter

Deploys and configures JMeter an EC2 instance running CentOS 7

Primary LanguageHCLMIT LicenseMIT

Terraform Module for Deploying JMeter

Deploys and configures JMeter an EC2 instance running CentOS 7.

Usage

After instance startup, monitor the output of the following for cloud-init completion before running Jmeter:

sudo journalctl --no-pager -f | grep cloud-init

License

This work is licensed under the MIT license. See LICENSE file for details.

Author Information

This project was started in 2019 by David Alger.

Requirements

Name Version
terraform ~> 0.14
aws ~> 3.4.0

Providers

Name Version
aws ~> 3.4.0

Inputs

Name Description Type Default Required
authorized_keys list of ssh pub key allowed to ssh list(any) n/a yes
instance_filter provide a map of filter to search Instance ID (see https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/ami)
list(object({
name = string
values = list(string)
}))
[
{
"name": "name",
"values": [
"CentOS 7.9.2009 x86_64"
]
}
]
no
instance_owner List of AMI owners to limit search. At least 1 value must be specified. Valid values: an AWS account ID, self (the current account), or an AWS owner alias (e.g. amazon, aws-marketplace, microsoft). Default to centos public account list(string)
[
"125523088429"
]
no
instance_type instance type to deploy string "c5.2xlarge" no
instance_user service account to run jmeter string "jmeter" no
jmeter_scenario a path to a jmeter jmx file tu upload to the ec2 it will be uploaded to /tmp/jmeter.jmx string "../jmeter.jmx" no
jmeter_version jmeter version string "5.1.1" no
name n/a string n/a yes
security_groups Additional security groups to attach to the jmeter instance. list(string) [] no
subnet_id n/a string n/a yes
tags n/a map(string) n/a yes
trusted_ip_ranges List of IP ranges to whitelist for ICMP and SSH ingress. list(string)
[
"0.0.0.0/0"
]
no
vpc_id n/a string n/a yes

Outputs

Name Description
instance_address n/a
instance_arn n/a
instance_id n/a
instance_name n/a
instance_user n/a