# Creating Amazon VPC Lattice Service Network VPC Assocation This example shows how you can use this module to create a [VPC Lattice]() Service Network VPC association. The example creates: * VPC Lattice Service Network. * Security Group (allowing HTTP and HTTPS traffic from the local CIDR). Used to attach it to the VPC Lattice association * The VPC module creates the following: * One set of subnets (*workload*) * VPC Lattice Service Network VPC association. ## Requirements | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 1.3.0 | | [aws](#requirement\_aws) | >= 4.65.0 | ## Providers | Name | Version | |------|---------| | [aws](#provider\_aws) | >= 4.65.0 | ## Modules | Name | Source | Version | |------|--------|---------| | [vpc](#module\_vpc) | aws-ia/vpc/aws | >= 4.3.0 | ## Resources | Name | Type | |------|------| | [aws_security_group.security_group](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/security_group) | resource | | [aws_vpclattice_service_network.service_network](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpclattice_service_network) | resource | ## Inputs | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| | [aws\_region](#input\_aws\_region) | AWS Region. | `string` | `"eu-west-1"` | no | ## Outputs | Name | Description | |------|-------------| | [vpc\_lattice\_service\_network\_association](#output\_vpc\_lattice\_service\_network\_association) | VPC Lattice Service Network VPC association. |