-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Simplify single security group searches and error handling #18433
Conversation
e7674c3
to
dea6e27
Compare
Will this PR need refactoring once #17613 is merged? |
dea6e27
to
2f7a24f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
% EC2_SECURITY_GROUP_RULES_PER_GROUP_LIMIT=60 make testacc TEST=./aws TESTARGS='-run=TestAccAWSDefaultSecurityGroup_\|TestAccAWSEMRCluster_\|TestAccAwsGlobalAcceleratorEndpointGroup_\|TestAccAWSSecurityGroupRule_\|TestAccAWSSecurityGroup_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSDefaultSecurityGroup_\|TestAccAWSEMRCluster_\|TestAccAwsGlobalAcceleratorEndpointGroup_\|TestAccAWSSecurityGroupRule_\|TestAccAWSSecurityGroup_ -timeout 180m
=== RUN TestAccAWSDefaultSecurityGroup_Vpc_basic
=== PAUSE TestAccAWSDefaultSecurityGroup_Vpc_basic
=== RUN TestAccAWSDefaultSecurityGroup_Vpc_empty
=== PAUSE TestAccAWSDefaultSecurityGroup_Vpc_empty
=== RUN TestAccAWSDefaultSecurityGroup_Classic_basic
=== PAUSE TestAccAWSDefaultSecurityGroup_Classic_basic
=== RUN TestAccAWSDefaultSecurityGroup_Classic_empty
provider_test.go:55: This resource does not currently clear tags when adopting the resource
--- SKIP: TestAccAWSDefaultSecurityGroup_Classic_empty (0.00s)
=== RUN TestAccAWSEMRCluster_basic
=== PAUSE TestAccAWSEMRCluster_basic
=== RUN TestAccAWSEMRCluster_additionalInfo
=== PAUSE TestAccAWSEMRCluster_additionalInfo
=== RUN TestAccAWSEMRCluster_disappears
=== PAUSE TestAccAWSEMRCluster_disappears
=== RUN TestAccAWSEMRCluster_configurationsJson
=== PAUSE TestAccAWSEMRCluster_configurationsJson
=== RUN TestAccAWSEMRCluster_CoreInstanceGroup_AutoscalingPolicy
=== PAUSE TestAccAWSEMRCluster_CoreInstanceGroup_AutoscalingPolicy
=== RUN TestAccAWSEMRCluster_CoreInstanceGroup_BidPrice
=== PAUSE TestAccAWSEMRCluster_CoreInstanceGroup_BidPrice
=== RUN TestAccAWSEMRCluster_CoreInstanceGroup_InstanceCount
=== PAUSE TestAccAWSEMRCluster_CoreInstanceGroup_InstanceCount
=== RUN TestAccAWSEMRCluster_CoreInstanceGroup_InstanceType
=== PAUSE TestAccAWSEMRCluster_CoreInstanceGroup_InstanceType
=== RUN TestAccAWSEMRCluster_CoreInstanceGroup_Name
=== PAUSE TestAccAWSEMRCluster_CoreInstanceGroup_Name
=== RUN TestAccAWSEMRCluster_Ec2Attributes_DefaultManagedSecurityGroups
=== PAUSE TestAccAWSEMRCluster_Ec2Attributes_DefaultManagedSecurityGroups
=== RUN TestAccAWSEMRCluster_Kerberos_ClusterDedicatedKdc
=== PAUSE TestAccAWSEMRCluster_Kerberos_ClusterDedicatedKdc
=== RUN TestAccAWSEMRCluster_MasterInstanceGroup_BidPrice
=== PAUSE TestAccAWSEMRCluster_MasterInstanceGroup_BidPrice
=== RUN TestAccAWSEMRCluster_MasterInstanceGroup_InstanceCount
=== PAUSE TestAccAWSEMRCluster_MasterInstanceGroup_InstanceCount
=== RUN TestAccAWSEMRCluster_MasterInstanceGroup_InstanceType
=== PAUSE TestAccAWSEMRCluster_MasterInstanceGroup_InstanceType
=== RUN TestAccAWSEMRCluster_MasterInstanceGroup_Name
=== PAUSE TestAccAWSEMRCluster_MasterInstanceGroup_Name
=== RUN TestAccAWSEMRCluster_security_config
=== PAUSE TestAccAWSEMRCluster_security_config
=== RUN TestAccAWSEMRCluster_Step_Basic
=== PAUSE TestAccAWSEMRCluster_Step_Basic
=== RUN TestAccAWSEMRCluster_Step_ConfigMode
=== PAUSE TestAccAWSEMRCluster_Step_ConfigMode
=== RUN TestAccAWSEMRCluster_Step_Multiple
=== PAUSE TestAccAWSEMRCluster_Step_Multiple
=== RUN TestAccAWSEMRCluster_bootstrap_ordering
=== PAUSE TestAccAWSEMRCluster_bootstrap_ordering
=== RUN TestAccAWSEMRCluster_terminationProtected
=== PAUSE TestAccAWSEMRCluster_terminationProtected
=== RUN TestAccAWSEMRCluster_keepJob
=== PAUSE TestAccAWSEMRCluster_keepJob
=== RUN TestAccAWSEMRCluster_visibleToAllUsers
=== PAUSE TestAccAWSEMRCluster_visibleToAllUsers
=== RUN TestAccAWSEMRCluster_s3Logging
=== PAUSE TestAccAWSEMRCluster_s3Logging
=== RUN TestAccAWSEMRCluster_tags
=== PAUSE TestAccAWSEMRCluster_tags
=== RUN TestAccAWSEMRCluster_root_volume_size
=== PAUSE TestAccAWSEMRCluster_root_volume_size
=== RUN TestAccAWSEMRCluster_step_concurrency_level
=== PAUSE TestAccAWSEMRCluster_step_concurrency_level
=== RUN TestAccAWSEMRCluster_ebs_config
=== PAUSE TestAccAWSEMRCluster_ebs_config
=== RUN TestAccAWSEMRCluster_custom_ami_id
=== PAUSE TestAccAWSEMRCluster_custom_ami_id
=== RUN TestAccAWSEMRCluster_InstanceFleet_basic
=== PAUSE TestAccAWSEMRCluster_InstanceFleet_basic
=== RUN TestAccAWSEMRCluster_InstanceFleet_master_only
=== PAUSE TestAccAWSEMRCluster_InstanceFleet_master_only
=== RUN TestAccAwsGlobalAcceleratorEndpointGroup_basic
=== PAUSE TestAccAwsGlobalAcceleratorEndpointGroup_basic
=== RUN TestAccAwsGlobalAcceleratorEndpointGroup_disappears
=== PAUSE TestAccAwsGlobalAcceleratorEndpointGroup_disappears
=== RUN TestAccAwsGlobalAcceleratorEndpointGroup_ALBEndpoint_ClientIP
=== PAUSE TestAccAwsGlobalAcceleratorEndpointGroup_ALBEndpoint_ClientIP
=== RUN TestAccAwsGlobalAcceleratorEndpointGroup_InstanceEndpoint
=== PAUSE TestAccAwsGlobalAcceleratorEndpointGroup_InstanceEndpoint
=== RUN TestAccAwsGlobalAcceleratorEndpointGroup_MultiRegion
=== PAUSE TestAccAwsGlobalAcceleratorEndpointGroup_MultiRegion
=== RUN TestAccAwsGlobalAcceleratorEndpointGroup_PortOverrides
=== PAUSE TestAccAwsGlobalAcceleratorEndpointGroup_PortOverrides
=== RUN TestAccAwsGlobalAcceleratorEndpointGroup_TCPHealthCheckProtocol
=== PAUSE TestAccAwsGlobalAcceleratorEndpointGroup_TCPHealthCheckProtocol
=== RUN TestAccAwsGlobalAcceleratorEndpointGroup_Update
=== PAUSE TestAccAwsGlobalAcceleratorEndpointGroup_Update
=== RUN TestAccAWSSecurityGroupRule_Ingress_VPC
=== PAUSE TestAccAWSSecurityGroupRule_Ingress_VPC
=== RUN TestAccAWSSecurityGroupRule_Ingress_Source_With_Account_Id
=== PAUSE TestAccAWSSecurityGroupRule_Ingress_Source_With_Account_Id
=== RUN TestAccAWSSecurityGroupRule_Ingress_Protocol
=== PAUSE TestAccAWSSecurityGroupRule_Ingress_Protocol
=== RUN TestAccAWSSecurityGroupRule_Ingress_Ipv6
=== PAUSE TestAccAWSSecurityGroupRule_Ingress_Ipv6
=== RUN TestAccAWSSecurityGroupRule_Ingress_Classic
=== PAUSE TestAccAWSSecurityGroupRule_Ingress_Classic
=== RUN TestAccAWSSecurityGroupRule_MultiIngress
=== PAUSE TestAccAWSSecurityGroupRule_MultiIngress
=== RUN TestAccAWSSecurityGroupRule_Egress
=== PAUSE TestAccAWSSecurityGroupRule_Egress
=== RUN TestAccAWSSecurityGroupRule_SelfReference
=== PAUSE TestAccAWSSecurityGroupRule_SelfReference
=== RUN TestAccAWSSecurityGroupRule_ExpectInvalidTypeError
=== PAUSE TestAccAWSSecurityGroupRule_ExpectInvalidTypeError
=== RUN TestAccAWSSecurityGroupRule_ExpectInvalidCIDR
=== PAUSE TestAccAWSSecurityGroupRule_ExpectInvalidCIDR
=== RUN TestAccAWSSecurityGroupRule_PartialMatching_basic
=== PAUSE TestAccAWSSecurityGroupRule_PartialMatching_basic
=== RUN TestAccAWSSecurityGroupRule_PartialMatching_Source
=== PAUSE TestAccAWSSecurityGroupRule_PartialMatching_Source
=== RUN TestAccAWSSecurityGroupRule_Issue5310
=== PAUSE TestAccAWSSecurityGroupRule_Issue5310
=== RUN TestAccAWSSecurityGroupRule_Race
=== PAUSE TestAccAWSSecurityGroupRule_Race
=== RUN TestAccAWSSecurityGroupRule_SelfSource
=== PAUSE TestAccAWSSecurityGroupRule_SelfSource
=== RUN TestAccAWSSecurityGroupRule_PrefixListEgress
=== PAUSE TestAccAWSSecurityGroupRule_PrefixListEgress
=== RUN TestAccAWSSecurityGroupRule_IngressDescription
=== PAUSE TestAccAWSSecurityGroupRule_IngressDescription
=== RUN TestAccAWSSecurityGroupRule_EgressDescription
=== PAUSE TestAccAWSSecurityGroupRule_EgressDescription
=== RUN TestAccAWSSecurityGroupRule_IngressDescription_updates
=== PAUSE TestAccAWSSecurityGroupRule_IngressDescription_updates
=== RUN TestAccAWSSecurityGroupRule_EgressDescription_updates
=== PAUSE TestAccAWSSecurityGroupRule_EgressDescription_updates
=== RUN TestAccAWSSecurityGroupRule_Description_AllPorts
=== PAUSE TestAccAWSSecurityGroupRule_Description_AllPorts
=== RUN TestAccAWSSecurityGroupRule_Description_AllPorts_NonZeroPorts
=== PAUSE TestAccAWSSecurityGroupRule_Description_AllPorts_NonZeroPorts
=== RUN TestAccAWSSecurityGroupRule_MultipleRuleSearching_AllProtocolCrash
=== PAUSE TestAccAWSSecurityGroupRule_MultipleRuleSearching_AllProtocolCrash
=== RUN TestAccAWSSecurityGroupRule_MultiDescription
=== PAUSE TestAccAWSSecurityGroupRule_MultiDescription
=== RUN TestAccAWSSecurityGroup_allowAll
=== PAUSE TestAccAWSSecurityGroup_allowAll
=== RUN TestAccAWSSecurityGroup_sourceSecurityGroup
=== PAUSE TestAccAWSSecurityGroup_sourceSecurityGroup
=== RUN TestAccAWSSecurityGroup_IPRangeAndSecurityGroupWithSameRules
=== PAUSE TestAccAWSSecurityGroup_IPRangeAndSecurityGroupWithSameRules
=== RUN TestAccAWSSecurityGroup_IPRangesWithSameRules
=== PAUSE TestAccAWSSecurityGroup_IPRangesWithSameRules
=== RUN TestAccAWSSecurityGroup_basic
=== PAUSE TestAccAWSSecurityGroup_basic
=== RUN TestAccAWSSecurityGroup_egressConfigMode
=== PAUSE TestAccAWSSecurityGroup_egressConfigMode
=== RUN TestAccAWSSecurityGroup_ingressConfigMode
=== PAUSE TestAccAWSSecurityGroup_ingressConfigMode
=== RUN TestAccAWSSecurityGroup_ruleGathering
=== PAUSE TestAccAWSSecurityGroup_ruleGathering
=== RUN TestAccAWSSecurityGroup_forceRevokeRulesTrue
=== PAUSE TestAccAWSSecurityGroup_forceRevokeRulesTrue
=== RUN TestAccAWSSecurityGroup_forceRevokeRulesFalse
=== PAUSE TestAccAWSSecurityGroup_forceRevokeRulesFalse
=== RUN TestAccAWSSecurityGroup_ipv6
=== PAUSE TestAccAWSSecurityGroup_ipv6
=== RUN TestAccAWSSecurityGroup_Name_Generated
=== PAUSE TestAccAWSSecurityGroup_Name_Generated
=== RUN TestAccAWSSecurityGroup_Name_TerraformPrefix
=== PAUSE TestAccAWSSecurityGroup_Name_TerraformPrefix
=== RUN TestAccAWSSecurityGroup_NamePrefix
=== PAUSE TestAccAWSSecurityGroup_NamePrefix
=== RUN TestAccAWSSecurityGroup_NamePrefix_TerraformPrefix
=== PAUSE TestAccAWSSecurityGroup_NamePrefix_TerraformPrefix
=== RUN TestAccAWSSecurityGroup_self
=== PAUSE TestAccAWSSecurityGroup_self
=== RUN TestAccAWSSecurityGroup_vpc
=== PAUSE TestAccAWSSecurityGroup_vpc
=== RUN TestAccAWSSecurityGroup_vpcNegOneIngress
=== PAUSE TestAccAWSSecurityGroup_vpcNegOneIngress
=== RUN TestAccAWSSecurityGroup_vpcProtoNumIngress
=== PAUSE TestAccAWSSecurityGroup_vpcProtoNumIngress
=== RUN TestAccAWSSecurityGroup_multiIngress
=== PAUSE TestAccAWSSecurityGroup_multiIngress
=== RUN TestAccAWSSecurityGroup_change
=== PAUSE TestAccAWSSecurityGroup_change
=== RUN TestAccAWSSecurityGroup_ruleDescription
=== PAUSE TestAccAWSSecurityGroup_ruleDescription
=== RUN TestAccAWSSecurityGroup_defaultEgressVPC
=== PAUSE TestAccAWSSecurityGroup_defaultEgressVPC
=== RUN TestAccAWSSecurityGroup_defaultEgressClassic
=== PAUSE TestAccAWSSecurityGroup_defaultEgressClassic
=== RUN TestAccAWSSecurityGroup_drift
=== PAUSE TestAccAWSSecurityGroup_drift
=== RUN TestAccAWSSecurityGroup_driftComplex
=== PAUSE TestAccAWSSecurityGroup_driftComplex
=== RUN TestAccAWSSecurityGroup_invalidCIDRBlock
=== PAUSE TestAccAWSSecurityGroup_invalidCIDRBlock
=== RUN TestAccAWSSecurityGroup_tags
=== PAUSE TestAccAWSSecurityGroup_tags
=== RUN TestAccAWSSecurityGroup_CIDRandGroups
=== PAUSE TestAccAWSSecurityGroup_CIDRandGroups
=== RUN TestAccAWSSecurityGroup_ingressWithCidrAndSGsVPC
=== PAUSE TestAccAWSSecurityGroup_ingressWithCidrAndSGsVPC
=== RUN TestAccAWSSecurityGroup_ingressWithCidrAndSGsClassic
=== PAUSE TestAccAWSSecurityGroup_ingressWithCidrAndSGsClassic
=== RUN TestAccAWSSecurityGroup_egressWithPrefixList
=== PAUSE TestAccAWSSecurityGroup_egressWithPrefixList
=== RUN TestAccAWSSecurityGroup_ingressWithPrefixList
=== PAUSE TestAccAWSSecurityGroup_ingressWithPrefixList
=== RUN TestAccAWSSecurityGroup_ipv4andipv6Egress
=== PAUSE TestAccAWSSecurityGroup_ipv4andipv6Egress
=== RUN TestAccAWSSecurityGroup_failWithDiffMismatch
=== PAUSE TestAccAWSSecurityGroup_failWithDiffMismatch
=== RUN TestAccAWSSecurityGroup_ruleLimitExceededAppend
=== PAUSE TestAccAWSSecurityGroup_ruleLimitExceededAppend
=== RUN TestAccAWSSecurityGroup_ruleLimitCidrBlockExceededAppend
=== PAUSE TestAccAWSSecurityGroup_ruleLimitCidrBlockExceededAppend
=== RUN TestAccAWSSecurityGroup_ruleLimitExceededPrepend
=== PAUSE TestAccAWSSecurityGroup_ruleLimitExceededPrepend
=== RUN TestAccAWSSecurityGroup_ruleLimitExceededAllNew
=== PAUSE TestAccAWSSecurityGroup_ruleLimitExceededAllNew
=== RUN TestAccAWSSecurityGroup_rulesDropOnError
=== PAUSE TestAccAWSSecurityGroup_rulesDropOnError
=== CONT TestAccAWSDefaultSecurityGroup_Vpc_basic
=== CONT TestAccAWSSecurityGroupRule_Issue5310
=== CONT TestAccAwsGlobalAcceleratorEndpointGroup_Update
=== CONT TestAccAWSEMRCluster_tags
=== CONT TestAccAWSSecurityGroupRule_PartialMatching_Source
=== CONT TestAccAWSSecurityGroupRule_PartialMatching_basic
=== CONT TestAccAWSSecurityGroupRule_ExpectInvalidCIDR
=== CONT TestAccAWSSecurityGroupRule_ExpectInvalidTypeError
=== CONT TestAccAWSSecurityGroupRule_SelfReference
=== CONT TestAccAWSSecurityGroupRule_Egress
=== CONT TestAccAWSSecurityGroupRule_MultiIngress
=== CONT TestAccAWSSecurityGroupRule_Ingress_Classic
=== CONT TestAccAWSSecurityGroupRule_Ingress_Ipv6
=== CONT TestAccAWSSecurityGroupRule_Ingress_Protocol
=== CONT TestAccAWSSecurityGroupRule_Ingress_Source_With_Account_Id
=== CONT TestAccAWSSecurityGroupRule_Ingress_VPC
=== CONT TestAccAWSEMRCluster_MasterInstanceGroup_BidPrice
=== CONT TestAccAWSEMRCluster_s3Logging
=== CONT TestAccAWSSecurityGroup_rulesDropOnError
=== CONT TestAccAWSEMRCluster_visibleToAllUsers
--- PASS: TestAccAWSSecurityGroupRule_ExpectInvalidTypeError (4.69s)
=== CONT TestAccAWSSecurityGroup_ruleLimitExceededAllNew
--- PASS: TestAccAWSSecurityGroupRule_ExpectInvalidCIDR (10.68s)
=== CONT TestAccAWSSecurityGroup_ruleLimitExceededPrepend
--- PASS: TestAccAWSSecurityGroupRule_Issue5310 (25.54s)
=== CONT TestAccAWSEMRCluster_keepJob
--- PASS: TestAccAWSSecurityGroupRule_Egress (26.48s)
=== CONT TestAccAWSSecurityGroup_ruleLimitCidrBlockExceededAppend
--- PASS: TestAccAWSSecurityGroupRule_Ingress_VPC (32.16s)
=== CONT TestAccAWSSecurityGroup_ruleLimitExceededAppend
--- PASS: TestAccAWSSecurityGroupRule_Ingress_Classic (33.19s)
=== CONT TestAccAWSEMRCluster_terminationProtected
--- PASS: TestAccAWSSecurityGroupRule_MultiIngress (36.13s)
=== CONT TestAccAWSSecurityGroup_failWithDiffMismatch
--- PASS: TestAccAWSSecurityGroupRule_SelfReference (39.86s)
=== CONT TestAccAWSEMRCluster_bootstrap_ordering
--- PASS: TestAccAWSSecurityGroupRule_Ingress_Ipv6 (40.64s)
=== CONT TestAccAWSEMRCluster_Step_Multiple
--- PASS: TestAccAWSSecurityGroupRule_Ingress_Source_With_Account_Id (46.75s)
=== CONT TestAccAWSEMRCluster_Step_ConfigMode
--- PASS: TestAccAWSSecurityGroupRule_Ingress_Protocol (47.42s)
=== CONT TestAccAWSSecurityGroup_ipv4andipv6Egress
--- PASS: TestAccAWSSecurityGroupRule_PartialMatching_Source (50.38s)
=== CONT TestAccAWSEMRCluster_Step_Basic
=== CONT TestAccAWSSecurityGroup_rulesDropOnError
--- PASS: TestAccAWSSecurityGroup_rulesDropOnError (53.93s)
--- PASS: TestAccAWSSecurityGroupRule_PartialMatching_basic (54.82s)
=== CONT TestAccAWSEMRCluster_security_config
--- PASS: TestAccAWSDefaultSecurityGroup_Vpc_basic (55.75s)
=== CONT TestAccAWSEMRCluster_MasterInstanceGroup_Name111111
=== CONT TestAccAWSEMRCluster_MasterInstanceGroup_InstanceType
=== CONT TestAccAWSSecurityGroup_ruleLimitExceededAllNew
=== CONT TestAccAWSSecurityGroup_ruleLimitExceededPrepend
--- PASS: TestAccAWSSecurityGroup_ruleLimitExceededAllNew (58.18s)
=== CONT TestAccAWSSecurityGroup_ingressWithPrefixList
--- PASS: TestAccAWSSecurityGroup_ruleLimitExceededPrepend (59.49s)
=== CONT TestAccAWSEMRCluster_MasterInstanceGroup_InstanceCount
=== CONT TestAccAWSSecurityGroup_ruleLimitCidrBlockExceededAppend
--- PASS: TestAccAWSSecurityGroup_failWithDiffMismatch (36.68s)
=== CONT TestAccAWSSecurityGroup_egressWithPrefixList
--- PASS: TestAccAWSSecurityGroup_ipv4andipv6Egress (27.80s)
=== CONT TestAccAWSSecurityGroup_ingressWithCidrAndSGsClassic
--- PASS: TestAccAWSSecurityGroup_ruleLimitCidrBlockExceededAppend (52.01s)
=== CONT TestAccAWSEMRCluster_additionalInfo
=== CONT TestAccAWSSecurityGroup_ruleLimitExceededAppend
--- PASS: TestAccAWSSecurityGroup_ruleLimitExceededAppend (55.35s)
=== CONT TestAccAWSEMRCluster_configurationsJson
--- PASS: TestAccAWSSecurityGroup_ingressWithCidrAndSGsClassic (11.14s)
=== CONT TestAccAWSEMRCluster_disappears
--- PASS: TestAccAWSSecurityGroup_ingressWithPrefixList (49.21s)
=== CONT TestAccAWSEMRCluster_CoreInstanceGroup_Name
--- PASS: TestAccAWSSecurityGroup_egressWithPrefixList (51.08s)
=== CONT TestAccAWSEMRCluster_Ec2Attributes_DefaultManagedSecurityGroups
--- PASS: TestAccAwsGlobalAcceleratorEndpointGroup_Update (344.87s)
=== CONT TestAccAWSEMRCluster_Kerberos_ClusterDedicatedKdc
=== CONT TestAccAWSEMRCluster_keepJob
--- PASS: TestAccAWSEMRCluster_Step_Basic (388.88s)
=== CONT TestAccAWSSecurityGroup_ingressWithCidrAndSGsVPC
--- PASS: TestAccAWSSecurityGroup_ingressWithCidrAndSGsVPC (29.96s)
=== CONT TestAccAWSDefaultSecurityGroup_Classic_basic
--- PASS: TestAccAWSDefaultSecurityGroup_Classic_basic (12.46s)
=== CONT TestAccAWSEMRCluster_basic
--- PASS: TestAccAWSEMRCluster_disappears (416.67s)
=== CONT TestAccAWSSecurityGroup_forceRevokeRulesTrue
--- PASS: TestAccAWSEMRCluster_terminationProtected (504.94s)
=== CONT TestAccAWSSecurityGroup_ruleGathering
--- PASS: TestAccAWSEMRCluster_security_config (489.80s)
=== CONT TestAccAWSDefaultSecurityGroup_Vpc_empty
--- PASS: TestAccAWSEMRCluster_keepJob (416.11s)
=== CONT TestAccAWSSecurityGroup_ingressConfigMode
--- PASS: TestAccAWSEMRCluster_s3Logging (557.95s)
=== CONT TestAccAWSSecurityGroup_egressConfigMode
--- PASS: TestAccAWSDefaultSecurityGroup_Vpc_empty (27.07s)
=== CONT TestAccAWSEMRCluster_CoreInstanceGroup_InstanceCount
=== CONT TestAccAWSSecurityGroup_egressConfigMode
--- PASS: TestAccAWSSecurityGroup_egressConfigMode (57.40s)
=== CONT TestAccAWSSecurityGroup_basic
--- PASS: TestAccAWSSecurityGroup_ruleGathering (52.21s)
=== CONT TestAccAWSEMRCluster_CoreInstanceGroup_InstanceType
--- PASS: TestAccAWSEMRCluster_additionalInfo (523.78s)
=== CONT TestAccAWSSecurityGroupRule_EgressDescription_updates
--- PASS: TestAccAWSSecurityGroup_basic (34.44s)
=== CONT TestAccAWSSecurityGroup_forceRevokeRulesFalse
--- PASS: TestAccAWSSecurityGroup_ingressConfigMode (69.87s)
=== CONT TestAccAwsGlobalAcceleratorEndpointGroup_basic
--- PASS: TestAccAWSSecurityGroupRule_EgressDescription_updates (31.63s)
=== CONT TestAccAWSSecurityGroup_CIDRandGroups
--- PASS: TestAccAWSSecurityGroup_CIDRandGroups (31.10s)
=== CONT TestAccAWSSecurityGroup_tags
--- PASS: TestAccAWSEMRCluster_CoreInstanceGroup_Name (591.63s)
=== CONT TestAccAwsGlobalAcceleratorEndpointGroup_TCPHealthCheckProtocol
--- PASS: TestAccAWSEMRCluster_configurationsJson (627.34s)
=== CONT TestAccAWSSecurityGroup_invalidCIDRBlock
--- PASS: TestAccAWSEMRCluster_MasterInstanceGroup_InstanceType (654.72s)
=== CONT TestAccAwsGlobalAcceleratorEndpointGroup_PortOverrides
--- PASS: TestAccAWSSecurityGroup_invalidCIDRBlock (2.27s)
=== CONT TestAccAWSSecurityGroupRule_IngressDescription_updates
--- PASS: TestAccAWSEMRCluster_Kerberos_ClusterDedicatedKdc (377.59s)
=== CONT TestAccAwsGlobalAcceleratorEndpointGroup_MultiRegion
--- PASS: TestAccAWSSecurityGroup_tags (60.73s)
=== CONT TestAccAWSSecurityGroupRule_Description_AllPorts
--- PASS: TestAccAWSEMRCluster_MasterInstanceGroup_BidPrice (737.59s)
=== CONT TestAccAwsGlobalAcceleratorEndpointGroup_InstanceEndpoint
--- PASS: TestAccAWSEMRCluster_basic (256.34s)
=== CONT TestAccAWSSecurityGroup_IPRangesWithSameRules
--- PASS: TestAccAWSSecurityGroupRule_IngressDescription_updates (28.72s)
=== CONT TestAccAWSSecurityGroup_driftComplex
--- PASS: TestAccAWSEMRCluster_visibleToAllUsers (745.66s)
=== CONT TestAccAwsGlobalAcceleratorEndpointGroup_ALBEndpoint_ClientIP
--- PASS: TestAccAWSSecurityGroupRule_Description_AllPorts (28.91s)
=== CONT TestAccAWSSecurityGroup_IPRangeAndSecurityGroupWithSameRules
--- PASS: TestAccAWSSecurityGroup_IPRangesWithSameRules (29.92s)
=== CONT TestAccAWSSecurityGroupRule_EgressDescription
--- PASS: TestAccAWSSecurityGroup_driftComplex (30.39s)
=== CONT TestAccAwsGlobalAcceleratorEndpointGroup_disappears
--- PASS: TestAccAWSSecurityGroup_IPRangeAndSecurityGroupWithSameRules (32.84s)
=== CONT TestAccAWSSecurityGroupRule_IngressDescription
--- PASS: TestAccAWSSecurityGroupRule_EgressDescription (17.06s)
=== CONT TestAccAWSEMRCluster_custom_ami_id
--- PASS: TestAccAwsGlobalAcceleratorEndpointGroup_basic (176.06s)
=== CONT TestAccAWSSecurityGroupRule_PrefixListEgress
--- PASS: TestAccAWSSecurityGroupRule_IngressDescription (17.71s)
=== CONT TestAccAWSSecurityGroup_drift
--- PASS: TestAccAWSSecurityGroup_drift (14.60s)
=== CONT TestAccAWSSecurityGroupRule_SelfSource
--- PASS: TestAccAWSSecurityGroupRule_PrefixListEgress (40.18s)
=== CONT TestAccAWSSecurityGroup_defaultEgressClassic
--- PASS: TestAccAWSSecurityGroupRule_SelfSource (27.03s)
=== CONT TestAccAWSSecurityGroupRule_Race
--- PASS: TestAccAWSSecurityGroup_defaultEgressClassic (9.00s)
=== CONT TestAccAWSSecurityGroup_defaultEgressVPC
--- PASS: TestAccAWSEMRCluster_Step_Multiple (834.66s)
=== CONT TestAccAWSSecurityGroup_ruleDescription
--- PASS: TestAccAWSSecurityGroup_defaultEgressVPC (29.50s)
=== CONT TestAccAWSSecurityGroup_change
--- PASS: TestAccAwsGlobalAcceleratorEndpointGroup_MultiRegion (169.27s)
=== CONT TestAccAWSSecurityGroup_multiIngress
--- PASS: TestAccAWSEMRCluster_Ec2Attributes_DefaultManagedSecurityGroups (769.86s)
=== CONT TestAccAWSSecurityGroup_vpcProtoNumIngress
--- PASS: TestAccAWSSecurityGroup_vpcProtoNumIngress (31.18s)
=== CONT TestAccAWSSecurityGroup_sourceSecurityGroup
--- PASS: TestAccAWSSecurityGroup_multiIngress (37.77s)
=== CONT TestAccAWSSecurityGroup_vpcNegOneIngress
--- PASS: TestAccAWSSecurityGroup_change (59.33s)
=== CONT TestAccAWSSecurityGroup_allowAll
--- PASS: TestAccAWSSecurityGroup_sourceSecurityGroup (28.18s)
=== CONT TestAccAWSSecurityGroup_vpc
--- PASS: TestAccAWSSecurityGroup_vpcNegOneIngress (29.79s)
=== CONT TestAccAWSSecurityGroupRule_MultiDescription
--- PASS: TestAccAWSSecurityGroup_ruleDescription (85.22s)
=== CONT TestAccAWSSecurityGroup_self
--- PASS: TestAccAWSSecurityGroup_allowAll (29.86s)
=== CONT TestAccAWSSecurityGroupRule_MultipleRuleSearching_AllProtocolCrash
--- PASS: TestAccAwsGlobalAcceleratorEndpointGroup_TCPHealthCheckProtocol (270.83s)
=== CONT TestAccAWSEMRCluster_InstanceFleet_master_only
--- PASS: TestAccAWSSecurityGroup_vpc (30.44s)
=== CONT TestAccAWSSecurityGroup_Name_TerraformPrefix
--- PASS: TestAccAWSSecurityGroupRule_MultipleRuleSearching_AllProtocolCrash (18.55s)
=== CONT TestAccAWSSecurityGroup_NamePrefix
--- PASS: TestAccAWSSecurityGroup_self (31.43s)
=== CONT TestAccAWSSecurityGroup_NamePrefix_TerraformPrefix
--- PASS: TestAccAWSSecurityGroup_Name_TerraformPrefix (24.91s)
=== CONT TestAccAWSSecurityGroup_Name_Generated
--- PASS: TestAccAwsGlobalAcceleratorEndpointGroup_disappears (236.81s)
=== CONT TestAccAWSSecurityGroup_ipv6
--- PASS: TestAccAwsGlobalAcceleratorEndpointGroup_PortOverrides (298.99s)
=== CONT TestAccAWSEMRCluster_CoreInstanceGroup_BidPrice
--- PASS: TestAccAWSSecurityGroup_NamePrefix (27.24s)
=== CONT TestAccAWSEMRCluster_step_concurrency_level
--- PASS: TestAccAWSSecurityGroup_NamePrefix_TerraformPrefix (32.27s)
=== CONT TestAccAWSEMRCluster_InstanceFleet_basic
--- PASS: TestAccAWSSecurityGroup_Name_Generated (29.48s)
=== CONT TestAccAWSSecurityGroupRule_Description_AllPorts_NonZeroPorts
--- PASS: TestAccAWSSecurityGroupRule_MultiDescription (94.66s)
=== CONT TestAccAWSEMRCluster_root_volume_size
--- PASS: TestAccAWSSecurityGroup_ipv6 (47.61s)
=== CONT TestAccAWSEMRCluster_ebs_config
--- PASS: TestAccAWSEMRCluster_MasterInstanceGroup_Name (1012.56s)
=== CONT TestAccAWSEMRCluster_CoreInstanceGroup_AutoscalingPolicy
--- PASS: TestAccAWSSecurityGroupRule_Description_AllPorts_NonZeroPorts (30.90s)
--- PASS: TestAccAWSEMRCluster_Step_ConfigMode (1038.69s)
--- PASS: TestAccAWSEMRCluster_bootstrap_ordering (1071.54s)
--- PASS: TestAccAWSSecurityGroupRule_Race (284.68s)
--- PASS: TestAccAWSEMRCluster_CoreInstanceGroup_InstanceCount (606.75s)
--- PASS: TestAccAWSEMRCluster_MasterInstanceGroup_InstanceCount (1143.95s)
--- PASS: TestAccAWSEMRCluster_tags (1289.95s)
--- PASS: TestAccAwsGlobalAcceleratorEndpointGroup_InstanceEndpoint (573.40s)
--- PASS: TestAccAWSEMRCluster_custom_ami_id (565.32s)
--- PASS: TestAccAwsGlobalAcceleratorEndpointGroup_ALBEndpoint_ClientIP (682.54s)
--- PASS: TestAccAWSSecurityGroup_forceRevokeRulesTrue (1021.84s)
--- PASS: TestAccAWSEMRCluster_ebs_config (495.25s)
--- PASS: TestAccAWSSecurityGroup_forceRevokeRulesFalse (968.46s)
--- PASS: TestAccAWSEMRCluster_CoreInstanceGroup_InstanceType (1013.19s)
--- PASS: TestAccAWSEMRCluster_InstanceFleet_master_only (702.07s)
--- PASS: TestAccAWSEMRCluster_CoreInstanceGroup_AutoscalingPolicy (646.69s)
--- PASS: TestAccAWSEMRCluster_root_volume_size (811.30s)
--- PASS: TestAccAWSEMRCluster_CoreInstanceGroup_BidPrice (1063.36s)
--- PASS: TestAccAWSEMRCluster_step_concurrency_level (1086.92s)
--- PASS: TestAccAWSEMRCluster_InstanceFleet_basic (1222.73s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 2250.230s
Pushed one change to error code checked for in TestAccAWSSecurityGroup_rulesDropOnError
.
…ror and expands use of Security Group finder
…nder.SecurityGroup...()`
fa67089
to
4283c8a
Compare
This functionality has been released in v3.50.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. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Updates
finder.SecurityGroup...()
functions to return aresource.NotFound
error to simplify error handling. Replaces a number of calls to the AWS SDK function withfinder.SecurityGroup..()
.Closes #19965.
Output from acceptance testing: