Delete Security Groups

Delete EC2 security groups.

Source codePermissions

Usage

Input

Parameter Description Type Required Default Value
security_group_ids List of Security Group IDs to delete list(string) Yes None
region Region for operation. Leave blank for session default string No Session Default
debug Increase log verbosity bool No False
silent Decrease log verbosity bool No False
output Output format
table
string No None
session Established session object No None

Output

Returns a list of security group IDs that failed the deletion:

['sg-1234567890abcdef0', 'sg-abcdef1234567890']

Examples

Delete security groups in eu-west-2:

aaws ec2 delete_security_groups --security_group_ids sg-1234567890abcdef0 sg-abcdef1234567890 --region eu-west-2