This repo creates custom AMI for JMeter on AWS.
- Packer
- AWS Console Access
- Install Packer
git clone https://github.com/QAInsights/Packer-JMeter.gitcd Packer-JMeter\fileorcd Packer-JMeter\shellpacker build .- Wait for a moment, typically it will take 3-5 minutes to create the AMI.
- The output contains the AMI ID and Region.
amazon-ebs.jmeter: output will be in this color. ==> amazon-ebs.jmeter: Prevalidating any provided VPC information ==> amazon-ebs.jmeter: Prevalidating AMI Name: jmeter_1643499054 amazon-ebs.jmeter: Found Image ID: ami-001089eb624938d9f ... ... ... ... ==> amazon-ebs.jmeter: No volumes to clean up, skipping ==> amazon-ebs.jmeter: Deleting temporary security group... ==> amazon-ebs.jmeter: Deleting temporary keypair... Build 'amazon-ebs.jmeter' finished after 3 minutes 59 seconds. ==> Wait completed after 3 minutes 59 seconds ==> Builds finished. The artifacts of successful builds are: --> amazon-ebs.jmeter: AMIs were created: us-east-2: ami-095b20c4727d864cb - Copy the AMI ID to spin up the instance on AWS.
The AMI is created with the following specifications:
- Java Corretto
- Apache JMeter 5.4.3
- JMeter Plugins: jpgc-casutg,jpgc-functions
us-east-2region- Base image:
amzn2-ami-kernel-5.10-hvm-*-x86_64-gp2 - Owner:
137112412989
To customize the AMI, open jmeter-amazon.pkr.hcl file and change the specifications.