Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove hardcoded AMI IDs from spot fleet request #14083

Merged
merged 1 commit into from
Jul 27, 2020

Conversation

YakDriver
Copy link
Member

@YakDriver YakDriver commented Jul 8, 2020

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Relates #14067
Central management issue: #12994

Release note for CHANGELOG:

NONE

See AWSAT002

Current stats of acceptance tests for this PR:

Partition Passing Failing Test
us-gov 27 5* With-PR
us-gov 10 22 Pre-PR
standard 32 0 With-PR
standard 32 0* Pre-PR

Standard and us-gov both have flitty errors. 2/5 current errors appear flitty (1 is a bad ARN check, 2 are errors in tfawsresource.TestCheckTypeSetElemNestedAttrs).

@YakDriver YakDriver requested a review from a team July 8, 2020 00:07
@ghost ghost added size/M Managed by automation to categorize the size of a PR. service/ec2 Issues and PRs that pertain to the ec2 service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Jul 8, 2020
@YakDriver YakDriver changed the title Remove hardcoded AMI IDs from spot fleet request [WIP] Remove hardcoded AMI IDs from spot fleet request Jul 8, 2020
@YakDriver YakDriver marked this pull request as draft July 8, 2020 13:09
@YakDriver YakDriver force-pushed the spoflereq branch 5 times, most recently from b0eef7f to bec1847 Compare July 8, 2020 19:16
@ghost ghost added size/L Managed by automation to categorize the size of a PR. and removed size/M Managed by automation to categorize the size of a PR. labels Jul 8, 2020
@YakDriver YakDriver marked this pull request as ready for review July 9, 2020 20:36
@YakDriver
Copy link
Member Author

YakDriver commented Jul 9, 2020

Added stats above.

@ghost ghost added size/M Managed by automation to categorize the size of a PR. and removed size/L Managed by automation to categorize the size of a PR. labels Jul 9, 2020
@YakDriver YakDriver changed the title [WIP] Remove hardcoded AMI IDs from spot fleet request Remove hardcoded AMI IDs from spot fleet request Jul 9, 2020
@YakDriver YakDriver force-pushed the spoflereq branch 2 times, most recently from 69ff7bc to 78ba012 Compare July 10, 2020 15:28
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good except one spot noted below. 👍 We'll flip things to the new aws_ec2_spot_price data source once its merged in.

aws/resource_aws_spot_fleet_request_test.go Outdated Show resolved Hide resolved
@ghost ghost added size/L Managed by automation to categorize the size of a PR. and removed size/M Managed by automation to categorize the size of a PR. labels Jul 23, 2020
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! 🚀

Output from acceptance testing in AWS Commercial (failure relating to #14265 and being fixed shortly before release):

--- FAIL: TestAccAWSSpotFleetRequest_iamInstanceProfileArn (22.74s)

--- PASS: TestAccAWSSpotFleetRequest_LaunchSpecification_EbsBlockDevice_KmsKeyId (139.22s)
--- PASS: TestAccAWSSpotFleetRequest_LaunchSpecification_RootBlockDevice_KmsKeyId (141.18s)
--- PASS: TestAccAWSSpotFleetRequest_WithELBs (288.90s)
--- PASS: TestAccAWSSpotFleetRequest_WithTargetGroups (411.45s)
--- PASS: TestAccAWSSpotFleetRequest_associatePublicIpAddress (281.89s)
--- PASS: TestAccAWSSpotFleetRequest_basic (300.22s)
--- PASS: TestAccAWSSpotFleetRequest_changePriceForcesNewRequest (516.37s)
--- PASS: TestAccAWSSpotFleetRequest_disappears (401.37s)
--- PASS: TestAccAWSSpotFleetRequest_diversifiedAllocation (454.99s)
--- PASS: TestAccAWSSpotFleetRequest_fleetType (320.19s)
--- PASS: TestAccAWSSpotFleetRequest_instanceInterruptionBehavior (320.10s)
--- PASS: TestAccAWSSpotFleetRequest_launchSpecToLaunchTemplate (629.76s)
--- PASS: TestAccAWSSpotFleetRequest_launchTemplate (220.01s)
--- PASS: TestAccAWSSpotFleetRequest_launchTemplateToLaunchSpec (542.36s)
--- PASS: TestAccAWSSpotFleetRequest_launchTemplateWithOverrides (249.07s)
--- PASS: TestAccAWSSpotFleetRequest_launchTemplate_multiple (248.44s)
--- PASS: TestAccAWSSpotFleetRequest_lowestPriceAzOrSubnetInRegion (299.53s)
--- PASS: TestAccAWSSpotFleetRequest_lowestPriceSubnetInGivenList (220.94s)
--- PASS: TestAccAWSSpotFleetRequest_lowestPriceSubnetInGivenList (243.76s)
--- PASS: TestAccAWSSpotFleetRequest_multipleInstancePools (455.06s)
--- PASS: TestAccAWSSpotFleetRequest_multipleInstanceTypesInSameAz (281.23s)
--- PASS: TestAccAWSSpotFleetRequest_multipleInstanceTypesInSameSubnet (216.10s)
--- PASS: TestAccAWSSpotFleetRequest_overriddingSpotPrice (411.38s)
--- PASS: TestAccAWSSpotFleetRequest_placementTenancyAndGroup (57.45s)
--- PASS: TestAccAWSSpotFleetRequest_tags (317.35s)
--- PASS: TestAccAWSSpotFleetRequest_updateExcessCapacityTerminationPolicy (601.82s)
--- PASS: TestAccAWSSpotFleetRequest_updateTargetCapacity (812.92s)
--- PASS: TestAccAWSSpotFleetRequest_withEBSDisk (292.72s)
--- PASS: TestAccAWSSpotFleetRequest_withTags (232.83s)
--- PASS: TestAccAWSSpotFleetRequest_withWeightedCapacity (256.78s)
--- PASS: TestAccAWSSpotFleetRequest_withoutSpotPrice (263.63s)

--- SKIP: TestAccAWSSpotFleetRequest_WithInstanceStoreAmi (0.00s)

Output from acceptance testing in AWS GovCloud (US) (failures related to hardcoded AZ in TestCheckFunc):

--- FAIL: TestAccAWSSpotFleetRequest_lowestPriceAzInGivenList (269.00s)
--- FAIL: TestAccAWSSpotFleetRequest_multipleInstanceTypesInSameAz (390.28s)

--- PASS: TestAccAWSSpotFleetRequest_associatePublicIpAddress (271.05s)
--- PASS: TestAccAWSSpotFleetRequest_basic (391.42s)
--- PASS: TestAccAWSSpotFleetRequest_changePriceForcesNewRequest (773.76s)
--- PASS: TestAccAWSSpotFleetRequest_disappears (271.17s)
--- PASS: TestAccAWSSpotFleetRequest_diversifiedAllocation (513.47s)
--- PASS: TestAccAWSSpotFleetRequest_fleetType (390.81s)
--- PASS: TestAccAWSSpotFleetRequest_iamInstanceProfileArn (391.02s)
--- PASS: TestAccAWSSpotFleetRequest_instanceInterruptionBehavior (511.99s)
--- PASS: TestAccAWSSpotFleetRequest_LaunchSpecification_EbsBlockDevice_KmsKeyId (270.59s)
--- PASS: TestAccAWSSpotFleetRequest_LaunchSpecification_RootBlockDevice_KmsKeyId (271.02s)
--- PASS: TestAccAWSSpotFleetRequest_launchSpecToLaunchTemplate (652.80s)
--- PASS: TestAccAWSSpotFleetRequest_launchTemplate (391.17s)
--- PASS: TestAccAWSSpotFleetRequest_launchTemplate_multiple (272.76s)
--- PASS: TestAccAWSSpotFleetRequest_launchTemplateToLaunchSpec (653.68s)
--- PASS: TestAccAWSSpotFleetRequest_launchTemplateWithOverrides (271.02s)
--- PASS: TestAccAWSSpotFleetRequest_lowestPriceAzOrSubnetInRegion (270.49s)
--- PASS: TestAccAWSSpotFleetRequest_lowestPriceSubnetInGivenList (393.76s)
--- PASS: TestAccAWSSpotFleetRequest_multipleInstancePools (513.05s)
--- PASS: TestAccAWSSpotFleetRequest_multipleInstanceTypesInSameSubnet (273.02s)
--- PASS: TestAccAWSSpotFleetRequest_overriddingSpotPrice (271.11s)
--- PASS: TestAccAWSSpotFleetRequest_placementTenancyAndGroup (44.34s)
--- PASS: TestAccAWSSpotFleetRequest_tags (390.87s)
--- PASS: TestAccAWSSpotFleetRequest_updateExcessCapacityTerminationPolicy (774.17s)
--- PASS: TestAccAWSSpotFleetRequest_updateTargetCapacity (1155.30s)
--- PASS: TestAccAWSSpotFleetRequest_withEBSDisk (511.90s)
--- PASS: TestAccAWSSpotFleetRequest_WithELBs (299.84s)
--- PASS: TestAccAWSSpotFleetRequest_withoutSpotPrice (271.47s)
--- PASS: TestAccAWSSpotFleetRequest_withTags (270.28s)
--- PASS: TestAccAWSSpotFleetRequest_WithTargetGroups (443.05s)
--- PASS: TestAccAWSSpotFleetRequest_withWeightedCapacity (331.28s)

@YakDriver YakDriver merged commit ca0d7e7 into hashicorp:master Jul 27, 2020
@YakDriver YakDriver deleted the spoflereq branch July 27, 2020 20:42
@YakDriver YakDriver added this to the v3.0.0 milestone Jul 27, 2020
@ghost
Copy link

ghost commented Jul 31, 2020

This has been released in version 3.0.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@YakDriver YakDriver added the partition/aws-us-gov Pertains to the aws-us-gov partition. label Aug 27, 2020
@ghost
Copy link

ghost commented Aug 27, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Aug 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
partition/aws-us-gov Pertains to the aws-us-gov partition. service/ec2 Issues and PRs that pertain to the ec2 service. size/L Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants