AWS EC2 Delete Security Group VERSION 1

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.


Dry RunDry run validates user permissions and inputs without completing the EC2 action (true or false).
Group NameFor 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 IDThe ID of the security group. Required for a non-default VPC.

Sample Configuration

Dry Runfalse
Group NameDevOps
Group IDsg-903004f8


This handler does not return any results.


No Changelog Available.