parameter |
required |
default |
choices |
comments |
aws_access_key
|
no |
|
|
AWS access key. If not set then the value of the AWS_ACCESS_KEY_ID, AWS_ACCESS_KEY or EC2_ACCESS_KEY environment variable is used.
aliases: ec2_access_key, access_key
|
aws_secret_key
|
no |
|
|
AWS secret key. If not set then the value of the AWS_SECRET_ACCESS_KEY, AWS_SECRET_KEY, or EC2_SECRET_KEY environment variable is used.
aliases: ec2_secret_key, secret_key
|
description
|
no |
|
|
Description of the security group. Required when state is present .
|
ec2_url
|
no |
|
|
Url to use to connect to EC2 or your Eucalyptus cloud (by default the module will use EC2 endpoints). Ignored for modules where region is required. Must be specified for all other modules if region is not used. If not set then the value of the EC2_URL environment variable, if any, is used.
|
group_id
(added in 2.4) |
no |
|
|
Id of group to delete (works only with absent).
One of and only one of name or group_id is required.
|
name
|
no |
|
|
Name of the security group.
One of and only one of name or group_id is required.
Required if state=present.
|
profile
(added in 1.6) |
no |
|
|
Uses a boto profile. Only works with boto >= 2.24.0.
|
purge_rules
(added in 1.8) |
no |
true |
|
Purge existing rules on security group that are not found in rules
|
purge_rules_egress
(added in 1.8) |
no |
true |
|
Purge existing rules_egress on security group that are not found in rules_egress
|
purge_tags
(added in 2.4) |
no |
True |
|
If yes, existing tags will be purged from the resource to match exactly what is defined by tags parameter. If the tags parameter is not set then tags will not be modified.
|
region
|
no |
|
|
aliases: aws_region, ec2_region
|
rules
|
no |
|
|
List of firewall inbound rules to enforce in this group (see example). If none are supplied, no inbound rules will be enabled. Rules list may include its own name in `group_name`. This allows idempotent loopback additions (e.g. allow group to access itself). Rule sources list support was added in version 2.4. This allows to define multiple sources per source type as well as multiple source types per rule. Prior to 2.4 an individual source is allowed.
|
rules_egress
(added in 1.6) |
no |
|
|
List of firewall outbound rules to enforce in this group (see example). If none are supplied, a default all-out rule is assumed. If an empty list is supplied, no outbound rules will be enabled. Rule Egress sources list support was added in version 2.4.
|
security_token
(added in 1.6) |
no |
|
|
AWS STS security token. If not set then the value of the AWS_SECURITY_TOKEN or EC2_SECURITY_TOKEN environment variable is used.
aliases: access_token
|
state
(added in 1.4) |
no |
present |
|
Create or delete a security group
|
tags
(added in 2.4) |
no |
|
|
A dictionary of one or more tags to assign to the security group.
|
validate_certs
(added in 1.5) |
no |
yes |
|
When set to "no", SSL certificates will not be validated for boto versions >= 2.6.0.
|
vpc_id
|
no |
|
|
ID of the VPC to create the group in.
|