r/launch_template - fix placement partition number#13239
Conversation
+ add test to ASG
|
Verified acceptance tests: $ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSLaunchTemplate_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws/ -v -count 1 -parallel 20 -run=TestAccAWSLaunchTemplate_ -timeout 120m
=== RUN TestAccAWSLaunchTemplate_basic
=== PAUSE TestAccAWSLaunchTemplate_basic
=== RUN TestAccAWSLaunchTemplate_disappears
=== PAUSE TestAccAWSLaunchTemplate_disappears
=== RUN TestAccAWSLaunchTemplate_BlockDeviceMappings_EBS
=== PAUSE TestAccAWSLaunchTemplate_BlockDeviceMappings_EBS
=== RUN TestAccAWSLaunchTemplate_BlockDeviceMappings_EBS_DeleteOnTermination
=== PAUSE TestAccAWSLaunchTemplate_BlockDeviceMappings_EBS_DeleteOnTermination
=== RUN TestAccAWSLaunchTemplate_EbsOptimized
=== PAUSE TestAccAWSLaunchTemplate_EbsOptimized
=== RUN TestAccAWSLaunchTemplate_ElasticInferenceAccelerator
=== PAUSE TestAccAWSLaunchTemplate_ElasticInferenceAccelerator
=== RUN TestAccAWSLaunchTemplate_data
=== PAUSE TestAccAWSLaunchTemplate_data
=== RUN TestAccAWSLaunchTemplate_description
=== PAUSE TestAccAWSLaunchTemplate_description
=== RUN TestAccAWSLaunchTemplate_update
=== PAUSE TestAccAWSLaunchTemplate_update
=== RUN TestAccAWSLaunchTemplate_tags
=== PAUSE TestAccAWSLaunchTemplate_tags
=== RUN TestAccAWSLaunchTemplate_capacityReservation_preference
=== PAUSE TestAccAWSLaunchTemplate_capacityReservation_preference
=== RUN TestAccAWSLaunchTemplate_capacityReservation_target
=== PAUSE TestAccAWSLaunchTemplate_capacityReservation_target
=== RUN TestAccAWSLaunchTemplate_cpuOptions
=== PAUSE TestAccAWSLaunchTemplate_cpuOptions
=== RUN TestAccAWSLaunchTemplate_creditSpecification_nonBurstable
=== PAUSE TestAccAWSLaunchTemplate_creditSpecification_nonBurstable
=== RUN TestAccAWSLaunchTemplate_creditSpecification_t2
=== PAUSE TestAccAWSLaunchTemplate_creditSpecification_t2
=== RUN TestAccAWSLaunchTemplate_creditSpecification_t3
=== PAUSE TestAccAWSLaunchTemplate_creditSpecification_t3
=== RUN TestAccAWSLaunchTemplate_IamInstanceProfile_EmptyConfigurationBlock
=== PAUSE TestAccAWSLaunchTemplate_IamInstanceProfile_EmptyConfigurationBlock
=== RUN TestAccAWSLaunchTemplate_networkInterface
=== PAUSE TestAccAWSLaunchTemplate_networkInterface
=== RUN TestAccAWSLaunchTemplate_networkInterfaceAddresses
=== PAUSE TestAccAWSLaunchTemplate_networkInterfaceAddresses
=== RUN TestAccAWSLaunchTemplate_associatePublicIPAddress
=== PAUSE TestAccAWSLaunchTemplate_associatePublicIPAddress
=== RUN TestAccAWSLaunchTemplate_placement_partitionNum
=== PAUSE TestAccAWSLaunchTemplate_placement_partitionNum
=== RUN TestAccAWSLaunchTemplate_networkInterface_ipv6Addresses
=== PAUSE TestAccAWSLaunchTemplate_networkInterface_ipv6Addresses
=== RUN TestAccAWSLaunchTemplate_networkInterface_ipv6AddressCount
=== PAUSE TestAccAWSLaunchTemplate_networkInterface_ipv6AddressCount
=== RUN TestAccAWSLaunchTemplate_instanceMarketOptions
=== PAUSE TestAccAWSLaunchTemplate_instanceMarketOptions
=== RUN TestAccAWSLaunchTemplate_licenseSpecification
=== PAUSE TestAccAWSLaunchTemplate_licenseSpecification
=== RUN TestAccAWSLaunchTemplate_metadataOptions
=== PAUSE TestAccAWSLaunchTemplate_metadataOptions
=== RUN TestAccAWSLaunchTemplate_hibernation
=== PAUSE TestAccAWSLaunchTemplate_hibernation
=== CONT TestAccAWSLaunchTemplate_basic
=== CONT TestAccAWSLaunchTemplate_hibernation
=== CONT TestAccAWSLaunchTemplate_metadataOptions
=== CONT TestAccAWSLaunchTemplate_licenseSpecification
=== CONT TestAccAWSLaunchTemplate_instanceMarketOptions
=== CONT TestAccAWSLaunchTemplate_networkInterface_ipv6AddressCount
=== CONT TestAccAWSLaunchTemplate_networkInterface_ipv6Addresses
=== CONT TestAccAWSLaunchTemplate_placement_partitionNum
=== CONT TestAccAWSLaunchTemplate_associatePublicIPAddress
=== CONT TestAccAWSLaunchTemplate_networkInterfaceAddresses
=== CONT TestAccAWSLaunchTemplate_networkInterface
=== CONT TestAccAWSLaunchTemplate_IamInstanceProfile_EmptyConfigurationBlock
=== CONT TestAccAWSLaunchTemplate_creditSpecification_t3
=== CONT TestAccAWSLaunchTemplate_creditSpecification_t2
=== CONT TestAccAWSLaunchTemplate_creditSpecification_nonBurstable
=== CONT TestAccAWSLaunchTemplate_cpuOptions
=== CONT TestAccAWSLaunchTemplate_capacityReservation_target
=== CONT TestAccAWSLaunchTemplate_capacityReservation_preference
=== CONT TestAccAWSLaunchTemplate_tags
=== CONT TestAccAWSLaunchTemplate_update
--- PASS: TestAccAWSLaunchTemplate_IamInstanceProfile_EmptyConfigurationBlock (25.94s)
=== CONT TestAccAWSLaunchTemplate_description
--- PASS: TestAccAWSLaunchTemplate_cpuOptions (27.35s)
=== CONT TestAccAWSLaunchTemplate_data
--- PASS: TestAccAWSLaunchTemplate_creditSpecification_nonBurstable (29.00s)
=== CONT TestAccAWSLaunchTemplate_ElasticInferenceAccelerator
--- PASS: TestAccAWSLaunchTemplate_networkInterface_ipv6AddressCount (29.34s)
=== CONT TestAccAWSLaunchTemplate_EbsOptimized
--- PASS: TestAccAWSLaunchTemplate_creditSpecification_t2 (29.72s)
=== CONT TestAccAWSLaunchTemplate_BlockDeviceMappings_EBS_DeleteOnTermination
--- PASS: TestAccAWSLaunchTemplate_networkInterface_ipv6Addresses (29.72s)
=== CONT TestAccAWSLaunchTemplate_BlockDeviceMappings_EBS
--- PASS: TestAccAWSLaunchTemplate_basic (29.95s)
=== CONT TestAccAWSLaunchTemplate_disappears
--- PASS: TestAccAWSLaunchTemplate_metadataOptions (30.32s)
--- PASS: TestAccAWSLaunchTemplate_creditSpecification_t3 (30.38s)
--- PASS: TestAccAWSLaunchTemplate_capacityReservation_preference (30.76s)
--- PASS: TestAccAWSLaunchTemplate_licenseSpecification (31.60s)
--- PASS: TestAccAWSLaunchTemplate_capacityReservation_target (35.71s)
--- PASS: TestAccAWSLaunchTemplate_tags (48.79s)
--- PASS: TestAccAWSLaunchTemplate_disappears (18.86s)
--- PASS: TestAccAWSLaunchTemplate_networkInterfaceAddresses (49.64s)
--- PASS: TestAccAWSLaunchTemplate_networkInterface (49.70s)
--- PASS: TestAccAWSLaunchTemplate_placement_partitionNum (50.44s)
--- PASS: TestAccAWSLaunchTemplate_data (25.38s)
--- PASS: TestAccAWSLaunchTemplate_hibernation (63.85s)
--- PASS: TestAccAWSLaunchTemplate_description (41.48s)
--- PASS: TestAccAWSLaunchTemplate_ElasticInferenceAccelerator (41.41s)
--- PASS: TestAccAWSLaunchTemplate_BlockDeviceMappings_EBS (51.49s)
--- PASS: TestAccAWSLaunchTemplate_update (83.01s)
--- PASS: TestAccAWSLaunchTemplate_instanceMarketOptions (84.73s)
--- PASS: TestAccAWSLaunchTemplate_associatePublicIPAddress (100.19s)
--- PASS: TestAccAWSLaunchTemplate_BlockDeviceMappings_EBS_DeleteOnTermination (80.39s)
--- PASS: TestAccAWSLaunchTemplate_EbsOptimized (90.91s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 120.313s |
bflad
left a comment
There was a problem hiding this comment.
Looks good, thanks for the fix, @DrFaust92 🚀
Output from acceptance testing:
--- PASS: TestAccAWSAutoScalingGroup_ALB_TargetGroups (171.95s)
--- PASS: TestAccAWSAutoScalingGroup_ALB_TargetGroups_ELBCapacity (285.70s)
--- PASS: TestAccAWSAutoScalingGroup_autoGeneratedName (118.21s)
--- PASS: TestAccAWSAutoScalingGroup_basic (289.54s)
--- PASS: TestAccAWSAutoScalingGroup_classicVpcZoneIdentifier (126.69s)
--- PASS: TestAccAWSAutoScalingGroup_emptyAvailabilityZones (78.93s)
--- PASS: TestAccAWSAutoScalingGroup_enablingMetrics (236.84s)
--- PASS: TestAccAWSAutoScalingGroup_initialLifecycleHook (254.46s)
--- PASS: TestAccAWSAutoScalingGroup_launchTemplate (39.84s)
--- PASS: TestAccAWSAutoScalingGroup_LaunchTemplate_IAMInstanceProfile (63.24s)
--- PASS: TestAccAWSAutoScalingGroup_launchTemplate_update (196.20s)
--- PASS: TestAccAWSAutoScalingGroup_launchTempPartitionNum (170.82s)
--- PASS: TestAccAWSAutoScalingGroup_LoadBalancers (693.58s)
--- PASS: TestAccAWSAutoScalingGroup_MaxInstanceLifetime (79.29s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy (49.05s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_OnDemandAllocationStrategy (42.20s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_OnDemandBaseCapacity (106.01s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_OnDemandPercentageAboveBaseCapacity (51.32s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_SpotAllocationStrategy (170.25s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_SpotInstancePools (74.39s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_SpotMaxPrice (49.26s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_LaunchTemplate_LaunchTemplateSpecification_LaunchTemplateName (48.53s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_LaunchTemplate_LaunchTemplateSpecification_Version (68.41s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_LaunchTemplate_Override_InstanceType (73.56s)
--- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_LaunchTemplate_Override_WeightedCapacity (142.65s)
--- PASS: TestAccAWSAutoScalingGroup_namePrefix (47.08s)
--- PASS: TestAccAWSAutoScalingGroup_serviceLinkedRoleARN (76.81s)
--- PASS: TestAccAWSAutoScalingGroup_suspendingProcesses (237.62s)
--- PASS: TestAccAWSAutoScalingGroup_tags (199.87s)
--- PASS: TestAccAWSAutoScalingGroup_TargetGroupArns (341.68s)
--- PASS: TestAccAWSAutoScalingGroup_terminationPolicies (114.77s)
--- PASS: TestAccAWSAutoScalingGroup_VpcUpdates (78.67s)
--- PASS: TestAccAWSAutoScalingGroup_WithLoadBalancer (642.03s)
--- PASS: TestAccAWSAutoScalingGroup_WithLoadBalancer_ToTargetGroup (320.77s)
--- PASS: TestAccAWSAutoScalingGroup_withMetrics (70.40s)
--- PASS: TestAccAWSAutoScalingGroup_withPlacementGroup (166.42s)
--- PASS: TestAccAWSLaunchTemplate_associatePublicIPAddress (26.93s)
--- PASS: TestAccAWSLaunchTemplate_basic (7.90s)
--- PASS: TestAccAWSLaunchTemplate_BlockDeviceMappings_EBS (43.93s)
--- PASS: TestAccAWSLaunchTemplate_BlockDeviceMappings_EBS_DeleteOnTermination (70.32s)
--- PASS: TestAccAWSLaunchTemplate_capacityReservation_preference (8.37s)
--- PASS: TestAccAWSLaunchTemplate_capacityReservation_target (10.16s)
--- PASS: TestAccAWSLaunchTemplate_cpuOptions (7.90s)
--- PASS: TestAccAWSLaunchTemplate_creditSpecification_nonBurstable (8.79s)
--- PASS: TestAccAWSLaunchTemplate_creditSpecification_t2 (8.45s)
--- PASS: TestAccAWSLaunchTemplate_creditSpecification_t3 (8.57s)
--- PASS: TestAccAWSLaunchTemplate_data (8.40s)
--- PASS: TestAccAWSLaunchTemplate_description (13.69s)
--- PASS: TestAccAWSLaunchTemplate_disappears (6.42s)
--- PASS: TestAccAWSLaunchTemplate_EbsOptimized (30.29s)
--- PASS: TestAccAWSLaunchTemplate_ElasticInferenceAccelerator (13.65s)
--- PASS: TestAccAWSLaunchTemplate_hibernation (18.80s)
--- PASS: TestAccAWSLaunchTemplate_IamInstanceProfile_EmptyConfigurationBlock (7.20s)
--- PASS: TestAccAWSLaunchTemplate_instanceMarketOptions (51.48s)
--- PASS: TestAccAWSLaunchTemplate_licenseSpecification (8.73s)
--- PASS: TestAccAWSLaunchTemplate_metadataOptions (8.15s)
--- PASS: TestAccAWSLaunchTemplate_networkInterface (12.63s)
--- PASS: TestAccAWSLaunchTemplate_networkInterface_ipv6AddressCount (8.55s)
--- PASS: TestAccAWSLaunchTemplate_networkInterface_ipv6Addresses (9.18s)
--- PASS: TestAccAWSLaunchTemplate_networkInterfaceAddresses (12.71s)
--- PASS: TestAccAWSLaunchTemplate_placement_partitionNum (14.94s)
--- PASS: TestAccAWSLaunchTemplate_tags (13.82s)
--- PASS: TestAccAWSLaunchTemplate_update (47.24s)
--- PASS: TestAccAWSLaunchTemplateDataSource_associatePublicIPAddress (26.16s)
--- PASS: TestAccAWSLaunchTemplateDataSource_basic (13.70s)
--- PASS: TestAccAWSLaunchTemplateDataSource_filter_basic (13.86s)
--- PASS: TestAccAWSLaunchTemplateDataSource_filter_tags (13.62s)
--- PASS: TestAccAWSLaunchTemplateDataSource_metadataOptions (13.55s)
| PreCheck: func() { testAccPreCheck(t) }, | ||
| Providers: testAccProviders, | ||
| CheckDestroy: testAccCheckAWSAutoScalingGroupDestroy, | ||
| DisableBinaryDriver: true, |
There was a problem hiding this comment.
Nit: This temporary flag is only necessary for acceptance testing that is checking TypeSet values at the moment.
… partition test Output from acceptance testing: ``` --- PASS: TestAccAWSAutoScalingGroup_launchTempPartitionNum (46.40s) ```
|
Fun enough, it looks like the EC2 API just was updated to be able to return validation errors (thank goodness): https://github.com/terraform-providers/terraform-provider-aws/pull/13190/files#diff-6fed94e5d96961410c0aedf93f473c1fR46604 -- I will create a separate issue for that. |
|
This has been released in version 2.63.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! |
… unconfigured partition numbers (hashicorp#13239) Output from acceptance testing: ``` --- PASS: TestAccAWSAutoScalingGroup_ALB_TargetGroups (171.95s) --- PASS: TestAccAWSAutoScalingGroup_ALB_TargetGroups_ELBCapacity (285.70s) --- PASS: TestAccAWSAutoScalingGroup_autoGeneratedName (118.21s) --- PASS: TestAccAWSAutoScalingGroup_basic (289.54s) --- PASS: TestAccAWSAutoScalingGroup_classicVpcZoneIdentifier (126.69s) --- PASS: TestAccAWSAutoScalingGroup_emptyAvailabilityZones (78.93s) --- PASS: TestAccAWSAutoScalingGroup_enablingMetrics (236.84s) --- PASS: TestAccAWSAutoScalingGroup_initialLifecycleHook (254.46s) --- PASS: TestAccAWSAutoScalingGroup_launchTemplate (39.84s) --- PASS: TestAccAWSAutoScalingGroup_LaunchTemplate_IAMInstanceProfile (63.24s) --- PASS: TestAccAWSAutoScalingGroup_launchTemplate_update (196.20s) --- PASS: TestAccAWSAutoScalingGroup_launchTempPartitionNum (170.82s) --- PASS: TestAccAWSAutoScalingGroup_LoadBalancers (693.58s) --- PASS: TestAccAWSAutoScalingGroup_MaxInstanceLifetime (79.29s) --- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy (49.05s) --- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_OnDemandAllocationStrategy (42.20s) --- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_OnDemandBaseCapacity (106.01s) --- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_OnDemandPercentageAboveBaseCapacity (51.32s) --- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_SpotAllocationStrategy (170.25s) --- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_SpotInstancePools (74.39s) --- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_InstancesDistribution_SpotMaxPrice (49.26s) --- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_LaunchTemplate_LaunchTemplateSpecification_LaunchTemplateName (48.53s) --- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_LaunchTemplate_LaunchTemplateSpecification_Version (68.41s) --- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_LaunchTemplate_Override_InstanceType (73.56s) --- PASS: TestAccAWSAutoScalingGroup_MixedInstancesPolicy_LaunchTemplate_Override_WeightedCapacity (142.65s) --- PASS: TestAccAWSAutoScalingGroup_namePrefix (47.08s) --- PASS: TestAccAWSAutoScalingGroup_serviceLinkedRoleARN (76.81s) --- PASS: TestAccAWSAutoScalingGroup_suspendingProcesses (237.62s) --- PASS: TestAccAWSAutoScalingGroup_tags (199.87s) --- PASS: TestAccAWSAutoScalingGroup_TargetGroupArns (341.68s) --- PASS: TestAccAWSAutoScalingGroup_terminationPolicies (114.77s) --- PASS: TestAccAWSAutoScalingGroup_VpcUpdates (78.67s) --- PASS: TestAccAWSAutoScalingGroup_WithLoadBalancer (642.03s) --- PASS: TestAccAWSAutoScalingGroup_WithLoadBalancer_ToTargetGroup (320.77s) --- PASS: TestAccAWSAutoScalingGroup_withMetrics (70.40s) --- PASS: TestAccAWSAutoScalingGroup_withPlacementGroup (166.42s) --- PASS: TestAccAWSLaunchTemplate_associatePublicIPAddress (26.93s) --- PASS: TestAccAWSLaunchTemplate_basic (7.90s) --- PASS: TestAccAWSLaunchTemplate_BlockDeviceMappings_EBS (43.93s) --- PASS: TestAccAWSLaunchTemplate_BlockDeviceMappings_EBS_DeleteOnTermination (70.32s) --- PASS: TestAccAWSLaunchTemplate_capacityReservation_preference (8.37s) --- PASS: TestAccAWSLaunchTemplate_capacityReservation_target (10.16s) --- PASS: TestAccAWSLaunchTemplate_cpuOptions (7.90s) --- PASS: TestAccAWSLaunchTemplate_creditSpecification_nonBurstable (8.79s) --- PASS: TestAccAWSLaunchTemplate_creditSpecification_t2 (8.45s) --- PASS: TestAccAWSLaunchTemplate_creditSpecification_t3 (8.57s) --- PASS: TestAccAWSLaunchTemplate_data (8.40s) --- PASS: TestAccAWSLaunchTemplate_description (13.69s) --- PASS: TestAccAWSLaunchTemplate_disappears (6.42s) --- PASS: TestAccAWSLaunchTemplate_EbsOptimized (30.29s) --- PASS: TestAccAWSLaunchTemplate_ElasticInferenceAccelerator (13.65s) --- PASS: TestAccAWSLaunchTemplate_hibernation (18.80s) --- PASS: TestAccAWSLaunchTemplate_IamInstanceProfile_EmptyConfigurationBlock (7.20s) --- PASS: TestAccAWSLaunchTemplate_instanceMarketOptions (51.48s) --- PASS: TestAccAWSLaunchTemplate_licenseSpecification (8.73s) --- PASS: TestAccAWSLaunchTemplate_metadataOptions (8.15s) --- PASS: TestAccAWSLaunchTemplate_networkInterface (12.63s) --- PASS: TestAccAWSLaunchTemplate_networkInterface_ipv6AddressCount (8.55s) --- PASS: TestAccAWSLaunchTemplate_networkInterface_ipv6Addresses (9.18s) --- PASS: TestAccAWSLaunchTemplate_networkInterfaceAddresses (12.71s) --- PASS: TestAccAWSLaunchTemplate_placement_partitionNum (14.94s) --- PASS: TestAccAWSLaunchTemplate_tags (13.82s) --- PASS: TestAccAWSLaunchTemplate_update (47.24s) --- PASS: TestAccAWSLaunchTemplateDataSource_associatePublicIPAddress (26.16s) --- PASS: TestAccAWSLaunchTemplateDataSource_basic (13.70s) --- PASS: TestAccAWSLaunchTemplateDataSource_filter_basic (13.86s) --- PASS: TestAccAWSLaunchTemplateDataSource_filter_tags (13.62s) --- PASS: TestAccAWSLaunchTemplateDataSource_metadataOptions (13.55s) ```
|
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! |
Community Note
Closes #13236
Relates #11655
Release note for CHANGELOG:
Output from acceptance testing: