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

Support volume type io2 #14906

Merged
merged 3 commits into from
Sep 2, 2020
Merged

Conversation

nikhil-goenka
Copy link
Contributor

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 OR Closes #14817

Release note for CHANGELOG:


Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAWSInstance_EbsRootDevice_ModifyIOPS'
--- PASS: TestAccAWSInstance_EbsRootDevice_ModifyIOPS_Io2 (240.86s)
--- PASS: TestAccAWSInstance_EbsRootDevice_ModifyIOPS_Io1 (241.39s)
PASS
ok      github.com/terraform-providers/terraform-provider-aws/aws       241.812s
...

@nikhil-goenka nikhil-goenka requested a review from a team August 29, 2020 10:01
@ghost ghost added size/M Managed by automation to categorize the size of a PR. needs-triage Waiting for first response or review from a maintainer. service/ec2 Issues and PRs that pertain to the ec2 service. documentation Introduces or discusses updates to documentation. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Aug 29, 2020
@bflad bflad added enhancement Requests to existing resources that expand the functionality or scope. and removed needs-triage Waiting for first response or review from a maintainer. labels Sep 1, 2020
@bflad
Copy link
Contributor

bflad commented Sep 1, 2020

Hi @nikhil-goenka 👋 Thank you so much for updating these as well -- while we are updating these enumeration validations, could you switch these to using the newly available and automatically updating ec2.VolumeType_Values() so we no longer need to manually manage them? See also #14601. Cheers! e.g.

ValidationFunc: validation.StringInSlice(ec2.VolumeType_Values(), false),

@nikhil-goenka
Copy link
Contributor Author

Hi @nikhil-goenka 👋 Thank you so much for updating these as well -- while we are updating these enumeration validations, could you switch these to using the newly available and automatically updating ec2.VolumeType_Values() so we no longer need to manually manage them? See also #14601. Cheers! e.g.

ValidationFunc: validation.StringInSlice(ec2.VolumeType_Values(), false),

sure

@bflad
Copy link
Contributor

bflad commented Sep 1, 2020

Running make fmt should fix the linter errors 👍

@bflad bflad added this to the v3.5.0 milestone Sep 1, 2020
@bflad bflad self-assigned this Sep 1, 2020
@nikhil-goenka
Copy link
Contributor Author

Running make fmt should fix the linter errors 👍

great, that worked

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 to me, thanks @nikhil-goenka 🚀

Output from acceptance testing:

--- PASS: TestAccAWSAMI_basic (55.61s)
--- PASS: TestAccAWSAMI_description (62.94s)
--- PASS: TestAccAWSAMI_disappears (53.64s)
--- PASS: TestAccAWSAMI_snapshotSize (55.61s)
--- PASS: TestAccAWSAMI_tags (76.21s)

--- PASS: TestAccAWSInstance_addSecondaryInterface (135.73s)
--- PASS: TestAccAWSInstance_addSecurityGroupNetworkInterface (140.60s)
--- PASS: TestAccAWSInstance_associatePublic_defaultPrivate (88.92s)
--- PASS: TestAccAWSInstance_associatePublic_defaultPublic (87.26s)
--- PASS: TestAccAWSInstance_associatePublic_explicitPrivate (95.89s)
--- PASS: TestAccAWSInstance_associatePublic_explicitPublic (107.11s)
--- PASS: TestAccAWSInstance_associatePublic_overridePrivate (88.66s)
--- PASS: TestAccAWSInstance_associatePublic_overridePublic (90.37s)
--- PASS: TestAccAWSInstance_associatePublicIPAndPrivateIP (112.06s)
--- PASS: TestAccAWSInstance_atLeastOneOtherEbsVolume (127.30s)
--- PASS: TestAccAWSInstance_basic (70.21s)
--- PASS: TestAccAWSInstance_blockDevices (99.92s)
--- PASS: TestAccAWSInstance_changeInstanceType (171.22s)
--- PASS: TestAccAWSInstance_CreditSpecification_Empty_NonBurstable (123.23s)
--- PASS: TestAccAWSInstance_creditSpecification_isNotAppliedToNonBurstable (99.79s)
--- PASS: TestAccAWSInstance_creditSpecification_standardCpuCredits (106.36s)
--- PASS: TestAccAWSInstance_creditSpecification_standardCpuCredits_t2Tot3Taint (209.53s)
--- PASS: TestAccAWSInstance_creditSpecification_unknownCpuCredits_t2 (90.07s)
--- PASS: TestAccAWSInstance_creditSpecification_unknownCpuCredits_t3 (308.54s)
--- PASS: TestAccAWSInstance_creditSpecification_unlimitedCpuCredits (93.51s)
--- PASS: TestAccAWSInstance_creditSpecification_unlimitedCpuCredits_t2Tot3Taint (173.27s)
--- PASS: TestAccAWSInstance_creditSpecification_unspecifiedDefaultsToStandard (92.45s)
--- PASS: TestAccAWSInstance_CreditSpecification_UnspecifiedToEmpty_NonBurstable (86.01s)
--- PASS: TestAccAWSInstance_creditSpecification_updateCpuCredits (128.83s)
--- PASS: TestAccAWSInstance_creditSpecificationT3_standardCpuCredits (113.19s)
--- PASS: TestAccAWSInstance_creditSpecificationT3_unlimitedCpuCredits (113.32s)
--- PASS: TestAccAWSInstance_creditSpecificationT3_unspecifiedDefaultsToUnlimited (97.62s)
--- PASS: TestAccAWSInstance_creditSpecificationT3_updateCpuCredits (147.45s)
--- PASS: TestAccAWSInstance_disableApiTermination (133.95s)
--- PASS: TestAccAWSInstance_disappears (89.43s)
--- PASS: TestAccAWSInstance_EbsBlockDevice_InvalidIopsForVolumeType (8.07s)
--- PASS: TestAccAWSInstance_EbsRootDevice_basic (116.88s)
--- PASS: TestAccAWSInstance_EbsRootDevice_ModifyIOPS_Io1 (165.67s)
--- PASS: TestAccAWSInstance_EbsRootDevice_ModifyIOPS_Io2 (243.64s)
--- PASS: TestAccAWSInstance_EbsRootDevice_ModifySize (127.52s)
--- PASS: TestAccAWSInstance_EbsRootDevice_ModifyType (135.86s)
--- PASS: TestAccAWSInstance_EbsRootDevice_MultipleBlockDevices_ModifySize (153.71s)
--- PASS: TestAccAWSInstance_EbsRootDevice_MultipleDynamicEBSBlockDevices (220.76s)
--- PASS: TestAccAWSInstance_Empty_PrivateIP (100.55s)
--- PASS: TestAccAWSInstance_forceNewAndTagsDrift (166.33s)
--- PASS: TestAccAWSInstance_getPasswordData_falseToTrue (141.17s)
--- PASS: TestAccAWSInstance_getPasswordData_trueToFalse (165.00s)
--- PASS: TestAccAWSInstance_GP2IopsDevice (80.15s)
--- PASS: TestAccAWSInstance_GP2WithIopsValue (6.92s)
--- PASS: TestAccAWSInstance_hibernation (245.69s)
--- PASS: TestAccAWSInstance_inDefaultVpcBySgId (82.14s)
--- PASS: TestAccAWSInstance_inDefaultVpcBySgName (194.00s)
--- PASS: TestAccAWSInstance_ipv6_supportAddressCount (82.72s)
--- PASS: TestAccAWSInstance_ipv6_supportAddressCountWithIpv4 (83.80s)
--- PASS: TestAccAWSInstance_ipv6AddressCountAndSingleAddressCausesError (10.75s)
--- PASS: TestAccAWSInstance_keyPairCheck (93.49s)
--- PASS: TestAccAWSInstance_multipleRegions (232.21s)
--- PASS: TestAccAWSInstance_NetworkInstanceRemovingAllSecurityGroups (91.40s)
--- PASS: TestAccAWSInstance_NetworkInstanceSecurityGroups (87.57s)
--- PASS: TestAccAWSInstance_NetworkInstanceVPCSecurityGroupIDs (98.99s)
--- PASS: TestAccAWSInstance_NewNetworkInterface_EmptyPrivateIPAndSecondaryPrivateIPs (91.98s)
--- PASS: TestAccAWSInstance_NewNetworkInterface_EmptyPrivateIPAndSecondaryPrivateIPsUpdate (110.87s)
--- PASS: TestAccAWSInstance_NewNetworkInterface_PrivateIPAndSecondaryPrivateIPs (74.45s)
--- PASS: TestAccAWSInstance_NewNetworkInterface_PrivateIPAndSecondaryPrivateIPsUpdate (105.33s)
--- PASS: TestAccAWSInstance_NewNetworkInterface_PublicIPAndSecondaryPrivateIPs (232.60s)
--- PASS: TestAccAWSInstance_noAMIEphemeralDevices (83.73s)
--- PASS: TestAccAWSInstance_placementGroup (79.02s)
--- PASS: TestAccAWSInstance_primaryNetworkInterface (94.55s)
--- PASS: TestAccAWSInstance_primaryNetworkInterfaceSourceDestCheck (105.53s)
--- PASS: TestAccAWSInstance_privateIP (120.50s)
--- PASS: TestAccAWSInstance_RootBlockDevice_KmsKeyArn (54.01s)
--- PASS: TestAccAWSInstance_rootBlockDeviceMismatch (95.10s)
--- PASS: TestAccAWSInstance_rootInstanceStore (79.26s)
--- PASS: TestAccAWSInstance_sourceDestCheck (150.80s)
--- PASS: TestAccAWSInstance_tags (135.57s)
--- PASS: TestAccAWSInstance_UserData_EmptyStringToUnspecified (126.91s)
--- PASS: TestAccAWSInstance_UserData_UnspecifiedToEmptyString (119.37s)
--- PASS: TestAccAWSInstance_userDataBase64 (224.57s)
--- PASS: TestAccAWSInstance_volumeTags (164.13s)
--- PASS: TestAccAWSInstance_volumeTagsComputed (157.24s)
--- PASS: TestAccAWSInstance_withIamInstanceProfile (140.61s)

--- PASS: TestAccAWSLaunchTemplate_associatePublicIPAddress (110.52s)
--- PASS: TestAccAWSLaunchTemplate_basic (36.38s)
--- PASS: TestAccAWSLaunchTemplate_BlockDeviceMappings_EBS (59.60s)
--- PASS: TestAccAWSLaunchTemplate_BlockDeviceMappings_EBS_DeleteOnTermination (98.20s)
--- PASS: TestAccAWSLaunchTemplate_capacityReservation_preference (41.18s)
--- PASS: TestAccAWSLaunchTemplate_capacityReservation_target (48.36s)
--- PASS: TestAccAWSLaunchTemplate_cpuOptions (38.41s)
--- PASS: TestAccAWSLaunchTemplate_creditSpecification_nonBurstable (50.34s)
--- PASS: TestAccAWSLaunchTemplate_creditSpecification_t2 (52.57s)
--- PASS: TestAccAWSLaunchTemplate_creditSpecification_t3 (50.78s)
--- PASS: TestAccAWSLaunchTemplate_data (47.03s)
--- PASS: TestAccAWSLaunchTemplate_defaultVersion (80.07s)
--- PASS: TestAccAWSLaunchTemplate_description (83.93s)
--- PASS: TestAccAWSLaunchTemplate_disappears (21.38s)
--- PASS: TestAccAWSLaunchTemplate_EbsOptimized (184.75s)
--- PASS: TestAccAWSLaunchTemplate_ElasticInferenceAccelerator (79.59s)
--- PASS: TestAccAWSLaunchTemplate_hibernation (84.05s)
--- PASS: TestAccAWSLaunchTemplate_IamInstanceProfile_EmptyConfigurationBlock (46.03s)
--- PASS: TestAccAWSLaunchTemplate_instanceMarketOptions (82.34s)
--- PASS: TestAccAWSLaunchTemplate_licenseSpecification (52.90s)
--- PASS: TestAccAWSLaunchTemplate_metadataOptions (52.30s)
--- PASS: TestAccAWSLaunchTemplate_networkInterface (56.67s)
--- PASS: TestAccAWSLaunchTemplate_networkInterface_ipv6AddressCount (54.73s)
--- PASS: TestAccAWSLaunchTemplate_networkInterface_ipv6Addresses (56.68s)
--- PASS: TestAccAWSLaunchTemplate_networkInterfaceAddresses (57.28s)
--- PASS: TestAccAWSLaunchTemplate_NetworkInterfaces_DeleteOnTermination (162.30s)
--- PASS: TestAccAWSLaunchTemplate_placement_partitionNum (90.28s)
--- PASS: TestAccAWSLaunchTemplate_tags (81.42s)
--- PASS: TestAccAWSLaunchTemplate_update (99.24s)
--- PASS: TestAccAWSLaunchTemplate_updateDefaultVersion (88.19s)

--- PASS: TestAccAWSSpotFleetRequest_associatePublicIpAddress (229.84s)
--- PASS: TestAccAWSSpotFleetRequest_basic (290.79s)
--- PASS: TestAccAWSSpotFleetRequest_changePriceForcesNewRequest (602.40s)
--- PASS: TestAccAWSSpotFleetRequest_disappears (213.79s)
--- PASS: TestAccAWSSpotFleetRequest_diversifiedAllocation (368.59s)
--- PASS: TestAccAWSSpotFleetRequest_fleetType (244.22s)
--- PASS: TestAccAWSSpotFleetRequest_iamInstanceProfileArn (234.39s)
--- PASS: TestAccAWSSpotFleetRequest_instanceInterruptionBehavior (323.72s)
--- PASS: TestAccAWSSpotFleetRequest_LaunchSpecification_EbsBlockDevice_KmsKeyId (143.85s)
--- PASS: TestAccAWSSpotFleetRequest_LaunchSpecification_RootBlockDevice_KmsKeyId (135.59s)
--- PASS: TestAccAWSSpotFleetRequest_launchSpecToLaunchTemplate (544.92s)
--- PASS: TestAccAWSSpotFleetRequest_launchTemplate (276.36s)
--- PASS: TestAccAWSSpotFleetRequest_launchTemplate_multiple (297.55s)
--- PASS: TestAccAWSSpotFleetRequest_launchTemplateToLaunchSpec (487.46s)
--- PASS: TestAccAWSSpotFleetRequest_launchTemplateWithOverrides (283.66s)
--- PASS: TestAccAWSSpotFleetRequest_lowestPriceAzInGivenList (296.12s)
--- PASS: TestAccAWSSpotFleetRequest_lowestPriceAzOrSubnetInRegion (298.94s)
--- PASS: TestAccAWSSpotFleetRequest_lowestPriceSubnetInGivenList (286.59s)
--- PASS: TestAccAWSSpotFleetRequest_multipleInstancePools (291.38s)
--- PASS: TestAccAWSSpotFleetRequest_multipleInstanceTypesInSameAz (276.34s)
--- PASS: TestAccAWSSpotFleetRequest_multipleInstanceTypesInSameSubnet (277.54s)
--- PASS: TestAccAWSSpotFleetRequest_overriddingSpotPrice (277.17s)
--- PASS: TestAccAWSSpotFleetRequest_placementTenancyAndGroup (68.76s)
--- PASS: TestAccAWSSpotFleetRequest_tags (288.38s)
--- PASS: TestAccAWSSpotFleetRequest_updateExcessCapacityTerminationPolicy (580.71s)
--- PASS: TestAccAWSSpotFleetRequest_updateTargetCapacity (820.44s)
--- PASS: TestAccAWSSpotFleetRequest_withEBSDisk (225.31s)
--- PASS: TestAccAWSSpotFleetRequest_WithELBs (222.99s)
--- PASS: TestAccAWSSpotFleetRequest_withoutSpotPrice (228.61s)
--- PASS: TestAccAWSSpotFleetRequest_withTags (215.91s)
--- PASS: TestAccAWSSpotFleetRequest_WithTargetGroups (373.70s)
--- PASS: TestAccAWSSpotFleetRequest_withWeightedCapacity (295.64s)
--- PASS: TestAccAWSSpotFleetRequest_zero_capacity (355.42s)

@bflad bflad merged commit d5ca146 into hashicorp:master Sep 2, 2020
bflad added a commit that referenced this pull request Sep 2, 2020
@ghost
Copy link

ghost commented Sep 3, 2020

This has been released in version 3.5.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!

@nikhil-goenka nikhil-goenka deleted the support-io2-volume-type branch September 3, 2020 19:27
@ghost
Copy link

ghost commented Oct 2, 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 as resolved and limited conversation to collaborators Oct 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. enhancement Requests to existing resources that expand the functionality or scope. service/ec2 Issues and PRs that pertain to the ec2 service. size/M 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.

resource/aws_ebs_volume: support io2 volume type
2 participants