Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

EC2 security group

Create a EC2 security group and manage it's rules

Requirements

Name Version
terraform ~> 1.3
aws >= 4.67.0, < 5.0.0
time ~> 0.9.1

Providers

Name Version
aws >= 4.67.0, < 5.0.0
time ~> 0.9.1

Modules

No modules.

Resources

Name Type
aws_security_group.sg resource
aws_security_group_rule.sg_rule resource
time_static.last_update resource

Inputs

Name Description Type Default Required
customer Customer applied to this instance string "" no
name Name applied to this instance string "" no
sg_rules Security group rules any
{
"ingress_ssh": {
"cidr_blocks": [
"0.0.0.0/0"
],
"description": "allow ssh in",
"from_port": 22,
"ipv6_cidr_blocks": [],
"protocol": "tcp",
"self": false,
"source_security_group_id": null,
"to_port": 22,
"type": "ingress"
},
"outbound_all": {
"cidr_blocks": [
"0.0.0.0/0"
],
"description": "allow all outbond traffic",
"from_port": 0,
"ipv6_cidr_blocks": [],
"protocol": "-1",
"self": false,
"source_security_group_id": null,
"to_port": 0,
"type": "egress"
}
}
no
tags Tags applied to this instance map(string)
{
"ManagedBy": "terraform"
}
no
vpc_id AWS vpc id string n/a yes

Outputs

Name Description
arn AWS security group arn
id AWS security group id
name AWS security group name