Skip to content
Permalink
Browse files
Use larger disk
  • Loading branch information
pivotal-jbarrett committed Apr 19, 2019
1 parent 1d4fc64 commit 4ecbcde71d24608b4dd320bbe835b9ea87bf5a0a
Showing 1 changed file with 11 additions and 0 deletions.
@@ -36,6 +36,7 @@
import org.json.JSONObject;
import software.amazon.awssdk.services.ec2.Ec2Client;
import software.amazon.awssdk.services.ec2.model.AuthorizeSecurityGroupIngressRequest;
import software.amazon.awssdk.services.ec2.model.BlockDeviceMapping;
import software.amazon.awssdk.services.ec2.model.CreateKeyPairRequest;
import software.amazon.awssdk.services.ec2.model.CreateKeyPairResponse;
import software.amazon.awssdk.services.ec2.model.CreateLaunchTemplateRequest;
@@ -50,6 +51,8 @@
import software.amazon.awssdk.services.ec2.model.Filter;
import software.amazon.awssdk.services.ec2.model.Image;
import software.amazon.awssdk.services.ec2.model.Instance;
import software.amazon.awssdk.services.ec2.model.LaunchTemplateBlockDeviceMappingRequest;
import software.amazon.awssdk.services.ec2.model.LaunchTemplateEbsBlockDeviceRequest;
import software.amazon.awssdk.services.ec2.model.LaunchTemplatePlacementRequest;
import software.amazon.awssdk.services.ec2.model.LaunchTemplateSpecification;
import software.amazon.awssdk.services.ec2.model.RequestLaunchTemplateData;
@@ -58,6 +61,7 @@
import software.amazon.awssdk.services.ec2.model.RunInstancesResponse;
import software.amazon.awssdk.services.ec2.model.Tag;
import software.amazon.awssdk.services.ec2.model.TagSpecification;
import software.amazon.awssdk.services.ec2.model.VolumeType;

import org.apache.geode.infrastructure.BenchmarkMetadata;

@@ -219,6 +223,13 @@ private static void createLaunchTemplate(String benchmarkTag, Image newestImage)
.build())
.keyName(AwsBenchmarkMetadata.keyPair(benchmarkTag))
.securityGroups(securityGroupList)
.blockDeviceMappings(LaunchTemplateBlockDeviceMappingRequest.builder()
.deviceName("/dev/sda1")
.ebs(LaunchTemplateEbsBlockDeviceRequest.builder()
.volumeType(VolumeType.GP2)
.volumeSize(50)
.build())
.build())
.build())
.build());

0 comments on commit 4ecbcde

Please sign in to comment.