Skip to content

Commit

Permalink
Merge pull request juju#17951 from nvinuesa/merge-3.4-3.5-20240821
Browse files Browse the repository at this point in the history
juju#17951

Contains:

- juju#17945

No conflicts
  • Loading branch information
jujubot authored Aug 21, 2024
2 parents a3b0c85 + a99266c commit 14011e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions provider/ec2/environ.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion provider/ec2/image_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 14011e3

Please sign in to comment.