security-group

cloudposse/security-group/aws

Terraform Module HCL AWS

Terraform module to provision an AWS Security Group

Install
module "security-group" {
source = "cloudposse/security-group/aws"
version = "2.2.0"
}
plain text: /constructs/tfmod-cloudposse-security-group-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-aws-security-group ![Latest Release](https://github.com/cloudposse/terraform-aws-security-group) ![Slack Community](https://slack.cloudposse.com) [![README Header][readme_header_img]][readme_header_link] [![Cloud Posse][logo]](https://cpco.io/homepage) Terraform module to create AWS Security Group and rules. --- This project is part of our comprehensive "SweetOps" approach towards DevOps. [ ][share_email] [ ][share_googleplus] [ ][share_facebook] [ ][share_reddit] [ ][share_linkedin] [ ][share_twitter] ![Terraform Open Source Modules][terraform_modules] It's 100% Open Source and licensed under the APACHE2. We literally have [hundreds of terraform modules][terraform_modules] that are Open Source and well-maintained. Check them out! Security & Compliance Security scanning is gracio

Inputs (32)
NameTypeDescriptionDefault
vpc_idstringThe ID of the VPC where the Security Group will be created. required
stagestringID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'bunull
id_length_limitnumberLimit `id` to this many characters (minimum 6). Set to `0` for unlimited length.null
ruleslist(any)A list of Security Group rule objects. All elements of a list must be exactly th[]
namespacestringID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp'null
label_key_casestringControls the letter case of the `tags` keys (label names) for tags generated by null
security_group_descriptionstringThe description to assign to the created Security Group. Warning: Changing the d"Managed by Terraform"
tenantstringID element _(Rarely used, not included by default)_. A customer identifier, indinull
inline_rules_enabledboolNOT RECOMMENDED. Create rules "inline" instead of as separate `aws_security_groufalse
environmentstringID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'stnull
attributeslist(string)ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`, []
regex_replace_charsstringTerraform regular expression (regex) string. Characters matching the regex will null
rules_mapanyA map-like object of lists of Security Group rule objects. All elements of a lis{}
rule_matrixanyA convenient way to apply the same set of rules to a set of subjects. See README[]
security_group_create_timeoutstringHow long to wait for the security group to be created."10m"
additional_tag_mapmap(string)Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not add{}
label_orderlist(string)The order in which the labels (ID elements) appear in the `id`. Defaults to ["nanull
target_security_group_idlist(string)The ID of an existing Security Group to which Security Group rules will be assig[]
security_group_namelist(string)The name to assign to the security group. Must be unique within the VPC. If not []
allow_all_egressboolA convenience that adds to the rules specified elsewhere a rule that allows all true
revoke_rules_on_deleteboolInstruct Terraform to revoke all of the Security Group's attached ingress and egfalse
Outputs (4)
id — The created or target Security Group ID
arn — The created Security Group ARN (null if using existing security group)
name — The created Security Group Name (null if using existing security group)
rules_terraform_ids — List of Terraform IDs of created `security_group_rule` resources, primarily provided to enable `depe
Resources (4)
aws_security_groupaws_security_group_rulenull_resourcerandom_id
Details
FrameworkTerraform Module
LanguageHCL
Version2.2.0
Cloud AWS
★ Stars39
Forks38
Total downloads22.1M
Inputs32
Outputs4
Resources4
Examples1
LicenseApache-2.0
Namespacecloudposse
Updated