Skip to content

Latest commit

 

History

History

lattice-shared-service-network

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

lattice-shared-service-network

This module creates following resources.

  • aws_vpclattice_service_network_vpc_association (optional)
  • aws_vpclattice_service_network_service_association (optional)

Requirements

Name Version
terraform >= 1.5
aws >= 5.21

Providers

Name Version
aws 5.22.0

Modules

Name Source Version
resource_group tedilabs/misc/aws//modules/resource-group ~> 0.10.0

Resources

Name Type
aws_vpclattice_service_network_service_association.this resource
aws_vpclattice_service_network_vpc_association.this resource
aws_vpclattice_service_network.this data source

Inputs

Name Description Type Default Required
id (Required) The ID of the service network. string n/a yes
module_tags_enabled (Optional) Whether to create AWS Resource Tags for the module informations. bool true no
resource_group_description (Optional) The description of Resource Group. string "Managed by Terraform." no
resource_group_enabled (Optional) Whether to create Resource Group to find and group AWS resources which are created by this module. bool true no
resource_group_name (Optional) The name of Resource Group. A Resource Group name can have a maximum of 127 characters, including letters, numbers, hyphens, dots, and underscores. The name cannot start with AWS or aws. string "" no
service_associations (Optional) The configuration for the service associations with the service network. To facilitate network client access to your service, you will need to associate your service to the relevant service networks. Only service networks created in the same account, or that have been shared with you (by way of Resource Access Manager), are available for you to create associations with. Each block of service_associations as defined below.
(Required) name - The name of the service association.
(Required) service - The ID or ARN (Amazon Resource Name) of the service.
(Optional) tags - A map of tags to add to the service association.
list(object({
name = string
service = string
tags = optional(map(string), {})
}))
[] no
tags (Optional) A map of tags to add to all resources. map(string) {} no
vpc_associations (Optional) The configuration for VPC associations with the service network. It enables all the resources within that VPC to be clients and communicate with other services in the service network. Each block of vpc_associations as defined below.
(Required) vpc - The ID of the VPC.
(Optional) security_groups - A list of the IDs of the security groups.
(Optional) tags - A map of tags to add to the vpc association.
list(object({
vpc = string
security_groups = optional(set(string), [])
tags = optional(map(string), {})
}))
[] no

Outputs

Name Description
arn The ARN of the service network.
auth_type The type of authentication and authorization that manages client access to the service network.
created_at Date and time that the service network was created, specified in ISO-8601 format.
id The ID of the service network.
name The name of the service network.
service_associations The list of the service associations with the service network.
id - The ID of the association.
arn - The ARN of the Association.
status - The operations status. Valid Values are CREATE_IN_PROGRESS, ACTIVE, DELETE_IN_PROGRESS, CREATE_FAILED, DELETE_FAILED.
created_by - The principal that created the association.

service - The ARN (Amazon Resource Name) of the service.
updated_at Date and time that the service network was last updated, specified in ISO-8601 format.
vpc_associations The list of VPC associations with the service network.
id - The ID of the association.
arn - The ARN of the Association.
status - The operations status. Valid Values are CREATE_IN_PROGRESS, ACTIVE, DELETE_IN_PROGRESS, CREATE_FAILED, DELETE_FAILED.
created_by - The principal that created the association.

vpc - The ID of the VPC.
security_groups - A list of the IDs of the security groups.