Skip to content

Commit

Permalink
Merge pull request #14083 from YakDriver/spoflereq
Browse files Browse the repository at this point in the history
Remove hardcoded AMI IDs from spot fleet request
  • Loading branch information
YakDriver committed Jul 27, 2020
2 parents 3fd275c + 90b08bb commit ca0d7e7
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 82 deletions.
22 changes: 22 additions & 0 deletions aws/resource_aws_instance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4862,6 +4862,28 @@ data "aws_ami" "amzn-ami-minimal-hvm-ebs" {
`
}

// testAccLatestAmazonLinuxHvmInstanceStoreAmiConfig returns the configuration for a data source that
// describes the latest Amazon Linux AMI using HVM virtualization and an instance store root device.
// The data source is named 'amzn-ami-minimal-hvm-instance-store'.
func testAccLatestAmazonLinuxHvmInstanceStoreAmiConfig() string {
return `
data "aws_ami" "amzn-ami-minimal-hvm-instance-store" {
most_recent = true
owners = ["amazon"]
filter {
name = "name"
values = ["amzn-ami-minimal-hvm-*"]
}
filter {
name = "root-device-type"
values = ["instance-store"]
}
}
`
}

// testAccLatestAmazonLinuxPvEbsAmiConfig returns the configuration for a data source that
// describes the latest Amazon Linux AMI using PV virtualization and an EBS root device.
// The data source is named 'amzn-ami-minimal-pv-ebs'.
Expand Down
Loading

0 comments on commit ca0d7e7

Please sign in to comment.