Terraform module to create an EC2 security group
Manual testing:
# Replace "xxx" with an actual AWS profile, then execute the integration tests.
export AWS_PROFILE=xxx
make terraform/pytest PYTEST_ARGS="-v --nomock"
For automated testing, PYTEST_ARGS is optional and no profile is needed:
make mockstack/up
make terraform/pytest PYTEST_ARGS="-v"
make mockstack/clean
Name | Version |
---|---|
terraform | >= 0.12 |
Name | Version |
---|---|
aws | n/a |
Name | Type |
---|
Name | Description | Type | Default | Required |
---|---|---|---|---|
name | Name of the Security Group | string |
n/a | yes |
vpc_id | VPC ID in which to create the Security Group | string |
n/a | yes |
description | Description of the Security Group | string |
"Managed by Terraform" |
no |
egress_rules | A schema list of egress rules for the Security Group, see https://www.terraform.io/docs/providers/aws/r/security_group.html#egress | list(any) |
[] |
no |
ingress_rules | A schema list of ingress rules for the Security Group, see https://www.terraform.io/docs/providers/aws/r/security_group.html#ingress | list(any) |
[] |
no |
revoke_rules_on_delete | Determines whether to forcibly remove rules when destroying the security group | string |
false |
no |
tags | A map of tags for the Security Group | map(string) |
{} |
no |
Name | Description |
---|---|
arn | The ARN of the Security Group |
id | The ID of the Security Group |
name | The name of the Security Group |
owner_id | The owner ID of the Security Group |