Security Group Module¶
Description¶
This module creates security groups for the EIC endpoint, EC2 bastion, RDS proxy, RDS, Lambda, and Secret Manager.
Usage¶
module "security_group" {
source = "./modules/security-group"
product = "oqtopus"
org = "example"
env = "dev"
vpc_id = "vpc-123"
}
Requirements¶
| Name | Version |
|---|---|
| terraform | >= 1.9.0, < 2.0.0 |
| aws | ~> 5.57.0 |
Providers¶
| Name | Version |
|---|---|
| aws | ~> 5.57.0 |
Resources¶
Inputs¶
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| env | environment name | string |
n/a | yes |
| org | organization name | string |
n/a | yes |
| product | product name | string |
n/a | yes |
| region | region name | string |
n/a | yes |
| vpc_id | The ID of the VPC | string |
n/a | yes |
Outputs¶
| Name | Description |
|---|---|
| cloudtrail_security_group_ids | The security group IDs for the CloudTrail |
| cognito_security_group_ids | The security group IDs for the Cognito IdP |
| db_proxy_security_group_ids | The security group IDs for the RDS proxy |
| db_security_group_ids | The security group IDs for the RDS instance |
| ec2_bastion_security_group_ids | The security group IDs for the EC2 instance |
| eic_security_group_ids | The security group IDs for the EIC instance |
| lambda_security_group_ids | The security group IDs for the Lambda function |
| secret_manager_security_group_ids | The security group IDs for the Secret Manager |