Skip to content

Pyxis-Portal/tf-aws-sg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Security group Module

  • Creating of Security group.
  • Provides a security group rule resource. Represents a single ingress or egress group rule, which can be added to external Security Groups.
  • Attaching a security group to an Elastic Network Interface (ENI).

Requirements

Name Version
terraform >= 0.14
aws >= 3.61.0

Providers

Name Version
aws >= 3.61.0

Modules

No modules.

Resources

Name Type
aws_network_interface_sg_attachment.sg_attachment resource
aws_security_group.sg resource
aws_security_group_rule.sg_rule resource
aws_instance.instance data source

Inputs

Name Description Type Default Required
add_sg_rule if true, enable create rules to security group bool false no
create_sg if true, enable create security group bool false no
ec2_id ID of AMI to use for the instance string null no
sg_attachment_to_ec2 if true, enable attach security group to Instance bool false no
sg_egress_rules all configuration for rules ingress of security group any [] no
sg_id (Required) Security group to apply this rule to. string null no
sg_ingress_rules all configuration for rules ingress of security group any [] no
sg_ingress_rules_own type = map(object({
client-sg = {
# from_port = 2,
# to_port = 2,
# protocol = "-1",
# description = "sg",
# cidr_blocks = [],
# ipv6_cidr_blocks = [],
# prefix_list_ids = [],
# self = null,
# source_security_group_id = []
}
}))
Required configuration for attach rule to Sg
any null no
sg_name Name to be used on SG created. string null no
sg_type (Required) Type of rule being created. Valid options are ingress (inbound) or egress (outbound) string n/a yes
sg_vpc_id (Optional, Forces new resource) VPC ID. Defaults to the region's default VPC string null no
tags all tags for all recursives any null no

Outputs

Name Description
id_security_group n/a

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages