This IPv6 Intra VPC Security Group Rule will create a SG Rule for each Tiered VPC allowing inbound-only ports from all other VPC networks (excluding itself).
v1.0.1
- support for ipv6 secondary cidrs
- moar validation
module "ipv6_intra_vpc_security_group_rules" {
source = "JudeQuintana/ipv6-intra-vpc-security-group-rule/aws"
version = "1.0.1"
..
v1.0.0
- New Dual Stack Networking Trifecta Demo
- Similar declaration to Intra VPC Security Group Rules modules but this only supports IPv6
- important to keep IPv6 SG rules as a separate module from IPv4
v1.0.0
example:
locals {
ipv6_intra_vpc_security_group_rules = [
{
label = "ssh6"
protocol = "tcp"
from_port = 22
to_port = 22
},
{
label = "ping6"
protocol = "icmpv6"
from_port = -1
to_port = -1
}
]
}
# Allowing IPv6 SSH and ping communication across all VPCs
module "ipv6_intra_vpc_security_group_rules" {
source = "JudeQuintana/ipv6-intra-vpc-security-group-rule/aws"
version = "1.0.0"
for_each = { for r in local.ipv6_intra_vpc_security_group_rules : r.label => r }
env_prefix = var.env_prefix
region_az_labels = var.region_az_labels
ipv6_intra_vpc_security_group_rule = {
rule = each.value
vpcs = module.vpcs
}
}
Name | Version |
---|---|
terraform | >=1.3 |
aws | >=5.61 |
Name | Version |
---|---|
aws | >=5.61 |
No modules.
Name | Type |
---|---|
aws_security_group_rule.this | resource |
aws_caller_identity.this | data source |
aws_region.this | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
env_prefix | prod, stage, test | string |
n/a | yes |
ipv6_intra_vpc_security_group_rule | intra vpc security group rule configuration | object({ |
n/a | yes |
region_az_labels | Region and AZ names mapped to short naming conventions for labeling | map(string) |
n/a | yes |
Name | Description |
---|---|
account_id | n/a |
region | n/a |
rule | n/a |
vpcs | n/a |