Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

IPv6 Example

This example demonstrates IPv6 ingress rules using the tf-aws-module_primitive-vpc_security_group_ingress_rule module.

Features Demonstrated

  • IPv6 CIDR source
  • HTTP access (port 80) from IPv6
  • HTTPS access (port 443) from IPv6
  • VPC with IPv6 enabled

Usage

terraform init
terraform plan -var-file=test.tfvars
terraform apply -var-file=test.tfvars
terraform destroy -var-file=test.tfvars

Resources Created

  • 1 VPC (with IPv6 enabled)
  • 1 Security Group
  • 2 Security Group Ingress Rules (HTTP and HTTPS)

Requirements

Name Version
terraform ~> 1.0
aws ~> 5.100

Providers

Name Version
aws 5.100.0

Modules

Name Source Version
ingress_http_ipv6 ../../ n/a
ingress_https_ipv6 ../../ n/a

Resources

Name Type
aws_default_security_group.default resource
aws_security_group.test resource
aws_vpc.test resource

Inputs

Name Description Type Default Required
resource_name_prefix Prefix for resource names string "sgir-ipv6" no
vpc_cidr CIDR block for the VPC string "10.0.0.0/16" no
cidr_ipv6 IPv6 CIDR block allowed for ingress string "::/0" no

Outputs

Name Description
security_group_id ID of the test security group
ingress_rule_id ID of the HTTP IPv6 ingress rule
ingress_rule_arn ARN of the HTTP IPv6 ingress rule
effective_source Effective source for HTTP ingress rule
vpc_id ID of the test VPC
vpc_ipv6_cidr_block IPv6 CIDR block of the VPC
https_ingress_rule_id ID of the HTTPS IPv6 ingress rule