
terraform-aws-arc-security-group¶
Module:
sourcefuse/arc-security-group/awsRegistry: https://registry.terraform.io/modules/sourcefuse/arc-security-group/aws
Category: Networking / Security
Source: https://github.com/sourcefuse/terraform-aws-arc-security-group
Overview¶
Creates AWS security groups with configurable ingress and egress rules for controlling network traffic.
What It Does¶
- Security group with custom name and description
- Ingress rules with CIDR, security group, or self references
- Egress rules with full configuration
- Multiple rules per security group
- Tag support
For more information about this repository and its usage, please see Terraform AWS ARC Security Group Module Usage Guide.
Quickstart¶
Required Inputs¶
| Name | Type | Description |
|---|---|---|
name |
string |
Security group name |
vpc_id |
string |
VPC ID |
ingress_rules |
list(object) |
Ingress rule definitions |
egress_rules |
list(object) |
Egress rule definitions |
| ## Key Outputs |
| Name | Description |
|---|---|
id |
Security group ID |
arn |
Security group ARN |
| ## Full Variable & Output Reference |
The complete inputs/outputs reference is auto-generated below.
Requirements¶
| Name | Version |
|---|---|
| terraform | > 1.4, < 2.0.0 |
| aws | >= 5.0, < 7.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 |
|---|---|
| arn | Security Group ARN |
| egress_rule_arns | ARNs of the egress rules |
| egress_rule_ids | IDs of the egress rules |
| id | Security Group ID |
| ingress_rule_arns | ARNs of the ingress rules |
| ingress_rule_ids | IDs of the ingress rules |
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
testdirectory - Configure the dependencies
- Now execute the test
Contributing¶
See CONTRIBUTING.md for commit conventions and development setup.
Authors¶
This project is authored by: - SourceFuse ARC Team