Skip to content

Latest commit

 

History

History

prefix-list

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

prefix-list

This module creates following resources.

  • aws_ec2_managed_prefix_list
  • aws_ec2_managed_prefix_list_entry (optional)

Requirements

Name Version
terraform >= 1.5
aws >= 4.58

Providers

Name Version
aws 5.22.0

Modules

Name Source Version
resource_group tedilabs/misc/aws//modules/resource-group ~> 0.10.0
share tedilabs/account/aws//modules/ram-share ~> 0.24.0

Resources

Name Type
aws_ec2_managed_prefix_list.this resource

Inputs

Name Description Type Default Required
address_family (Required) Address family of this prefix list. Valid values are IPv4 or IPv6. string n/a yes
name (Required) The name of the prefix list. The name must not start with com.amazonaws. string n/a yes
entries (Optional) A set of prefix list entries. Each block of entries as defined below.
(Required) cidr - The CIDR block of this entry.
(Optional) description - The description of this entry. Due to API limitations, updating only the description of an existing entry requires temporarily removing and re-adding the entry.
set(object({
cidr = string
description = optional(string, "Managed by Terraform.")
}))
[] no
max_entries (Optional) Maximum number of entries that this prefix list can contain. Configured the length of entries if not provided. number null no
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
shares (Optional) A list of resource shares via RAM (Resource Access Manager).
list(object({
name = optional(string)

permissions = optional(set(string), ["AWSRAMDefaultPermissionPrefixList"])

external_principals_allowed = optional(bool, false)
principals = optional(set(string), [])

tags = optional(map(string), {})
}))
[] no
tags (Optional) A map of tags to add to all resources. map(string) {} no

Outputs

Name Description
address_family The address family of the prefix list.
arn The ARN of the prefix list.
entries A set of prefix list entries.
id The ID of the prefix list.
max_entries The maximum number of entries of this prefix list.
name The name of the prefix list.
owner The ID of the AWS account that owns this prefix list.
sharing The configuration for sharing of the VPC prefix list.
status - An indication of whether the VPC prefix list is shared with other AWS accounts, or was shared with the current account by another AWS account. Sharing is configured through AWS Resource Access Manager (AWS RAM). Values are NOT_SHARED, SHARED_BY_ME or SHARED_WITH_ME.
shares - The list of resource shares via RAM (Resource Access Manager).
version Latest version of this prefix list.