We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adbe9f7 commit 33f6f0aCopy full SHA for 33f6f0a
internal/service/ec2/ec2_instance.go
@@ -3815,7 +3815,7 @@ func expandCapacityReservationSpecification(tfMap map[string]any) *awstypes.Capa
3815
apiObject.CapacityReservationPreference = awstypes.CapacityReservationPreference(v)
3816
}
3817
3818
- if v, ok := tfMap["capacity_reservation_target"].([]any); ok && len(v) > 0 {
+ if v, ok := tfMap["capacity_reservation_target"].([]any); ok && len(v) > 0 && v[0] != nil {
3819
apiObject.CapacityReservationTarget = expandCapacityReservationTarget(v[0].(map[string]any))
3820
3821
0 commit comments