Skip to content

Commit

Permalink
Use gp3 AWS volumes instead of gp2 for better default IOPS capacity (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kaaloo authored Oct 31, 2023
1 parent 763e7a1 commit 53cd393
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions iterative/aws/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func ResourceMachineCreate(ctx context.Context, d *schema.ResourceData, m interf
if err != nil {
return err
}

if len(vpcsDesc.Vpcs) == 0 {
return errors.New("no VPCs found")
}
Expand Down Expand Up @@ -288,7 +288,7 @@ func ResourceMachineCreate(ctx context.Context, d *schema.ResourceData, m interf
DeleteOnTermination: aws.Bool(true),
Encrypted: aws.Bool(false),
VolumeSize: aws.Int32(int32(hddSize)),
VolumeType: types.VolumeType("gp2"),
VolumeType: types.VolumeType("gp3"),
},
},
}
Expand Down
2 changes: 1 addition & 1 deletion task/aws/resources/resource_launch_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func (l *LaunchTemplate) Create(ctx context.Context) error {
Ebs: &types.LaunchTemplateEbsBlockDeviceRequest{
DeleteOnTermination: aws.Bool(true),
Encrypted: aws.Bool(false),
VolumeType: types.VolumeType("gp2"),
VolumeType: types.VolumeType("gp3"),
},
},
},
Expand Down

0 comments on commit 53cd393

Please sign in to comment.