diff --git a/provider/ec2/environ.go b/provider/ec2/environ.go index 08ed6f12b99..fe27c06371b 100644 --- a/provider/ec2/environ.go +++ b/provider/ec2/environ.go @@ -530,8 +530,9 @@ func (e *environ) Region() (simplestreams.CloudSpec, error) { } const ( - ebsStorage = "ebs" - ssdStorage = "ssd" + ebsStorage = "ebs" + ssdGP3Storage = "ssd-gp3" + ssdStorage = "ssd" ) // DistributeInstances implements the state.InstanceDistributor policy. @@ -639,7 +640,7 @@ func (e *environ) StartInstance( Base: args.InstanceConfig.Base, Arch: arch, Constraints: args.Constraints, - Storage: []string{ssdStorage, ebsStorage}, + Storage: []string{ssdStorage, ebsStorage, ssdGP3Storage}, }, ) if err != nil { diff --git a/provider/ec2/image_test.go b/provider/ec2/image_test.go index 16229645887..7f90ca7e8ce 100644 --- a/provider/ec2/image_test.go +++ b/provider/ec2/image_test.go @@ -220,7 +220,7 @@ func (s *specSuite) TestFindInstanceSpec(c *gc.C) { test.storage) stor := test.storage if len(stor) == 0 { - stor = []string{ssdStorage, ebsStorage} + stor = []string{ssdStorage, ebsStorage, ssdGP3Storage} } // We need to filter the image metadata to the test's // arches and series; the provisioner and bootstrap