replace Security Groups On Destroy
Whether to replace the security groups on the function's VPC configuration prior to destruction. Removing these security group associations prior to function destruction can speed up security group deletion times of AWS's internal cleanup operations. By default, the security groups will be replaced with the default
security group in the function's configured VPC. Set the replacement_security_group_ids
attribute to use a custom list of security groups for replacement.