terraform-aws-arc-security-group¶
Introduction¶
The SourceFuse AWS Reference Architecture (ARC) Terraform module for creating and managing AWS security groups with customizable rules. It simplifies defining inbound and outbound rules for specific protocols, ports, and CIDR ranges, ensuring secure and efficient network traffic control in your infrastructure.
For more information about this repository and its usage, please see Terraform AWS ARC Security Group Module Usage Guide.
Prerequisites¶
Before using this module, ensure you have the following:
- AWS credentials configured.
- Terraform installed.
- A working knowledge of Terraform.
Usage¶
See the examples
folder for a complete example.
Requirements¶
Name | Version |
---|---|
terraform | > 1.4, < 2.0.0 |
aws | ~> 5.0 |
Providers¶
Name | Version |
---|---|
aws | 5.80.0 |
Modules¶
No modules.
Resources¶
Name | Type |
---|---|
aws_security_group.this | resource |
aws_vpc_security_group_egress_rule.this | resource |
aws_vpc_security_group_ingress_rule.this | resource |
Inputs¶
Name | Description | Type | Default | Required |
---|---|---|---|---|
description | (optional) Description of Security Group | string |
null |
no |
egress_rules | (optional) List of egress rules for the security group. | list(object({ |
[] |
no |
ingress_rules | (optional) List of ingress rules for the security group. | list(object({ |
[] |
no |
name | Security Group name | string |
n/a | yes |
tags | Tags for Security Group | map(string) |
{} |
no |
vpc_id | VPC Id for creating security group | string |
n/a | yes |
Outputs¶
Name | Description |
---|---|
id | Security Group ID |
Versioning¶
This project uses a .version
file at the root of the repo which the pipeline reads from and does a git tag.
When you intend to commit to main
, you will need to increment this version. Once the project is merged,
the pipeline will kick off and tag the latest git commit.
Development¶
Prerequisites¶
Configurations¶
- Configure pre-commit hooks
Versioning¶
while Contributing or doing git commit please specify the breaking change in your commit message whether its major,minor or patch
For Example
Tests¶
- Tests are available in
test
directory - Configure the dependencies
- Now execute the test
Authors¶
This project is authored by: - SourceFuse ARC Team