Skip to main content
Kinetic Community

AWS EC2 Delete Security Group

Deletes a security group.

Downloads

By downloading this file, you acknowledge that you agree to our Terms of Service

aws_ec2_delete_security_group_v1.zip

Detailed Description

This handler is built on the AWS API, and is used to delete a security group. If you attempt to delete a security group that is associated with an instance, or is referenced by another security group, the operation fails with InvalidGroup.InUse in EC2-Classic or DependencyViolation in EC2-VPC.For more information see the AWS Amazon Virtual Private Cloud User Guide online.

The Dry Run parameter validates user permissions and inputs. If it is set to true, an error will always be thrown by the handler before completing the handler action. Error response will be 'DryRunOperation' if the account has proper permissions and inputs; 'UnauthorizedOperation' if the account does not have proper permissions.

Parameters

Name Description
Dry Run Dry run validates user permissions and inputs without completing the EC2 action (true or false).
Group Name For EC2 Classic and removing the default VPC, The name of the security group. You can specify either the security group name or the security group ID.
Group ID The ID of the security group. Required for a non-default VPC.

Sample Configuration

Parameter Example Configuration
Dry Run false
Group Name DevOps
Group ID sg-903004f8

Results

This handler returns no results

Change Log

Version Date Description
1 2017-08-22 * Initial version. See README for details.