AWS Amazon EC2 Managed Prefix List Entry

This page shows how to write Terraform and CloudFormation for Amazon EC2 Managed Prefix List Entry and write them securely.

aws_ec2_managed_prefix_list_entry (Terraform)

The Managed Prefix List Entry in Amazon EC2 can be configured in Terraform with the resource name aws_ec2_managed_prefix_list_entry. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Parameters

The following arguments are supported:

  • cidr - (Required) CIDR block of this entry.
  • description - (Optional) Description of this entry. Due to API limitations, updating only the description of an entry requires recreating the entry.
  • prefix_list_id - (Required) CIDR block of this entry.

In addition to all arguments above, the following attributes are exported:

  • id - ID of the managed prefix list entry.

Explanation in Terraform Registry

Provides a managed prefix list entry resource.

NOTE on Managed Prefix Lists and Managed Prefix List Entries: Terraform currently provides both a standalone Managed Prefix List Entry resource (a single entry), and a Managed Prefix List resource with entries defined in-line. At this time you cannot use a Managed Prefix List with in-line rules in conjunction with any Managed Prefix List Entry resources. Doing so will cause a conflict of entries and will overwrite entries.

AWS::EC2::PrefixList Entry (CloudFormation)

The PrefixList Entry in EC2 can be configured in CloudFormation with the resource name AWS::EC2::PrefixList Entry. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Parameters

Cidr The CIDR block.
Required: Yes
Type: String
Update requires: No interruption

Description A description for the entry.
Constraints: Up to 255 characters in length.
Required: No
Type: String
Update requires: No interruption

Explanation in CloudFormation Registry

An entry for a prefix list.

Frequently asked questions

What is AWS Amazon EC2 Managed Prefix List Entry?

AWS Amazon EC2 Managed Prefix List Entry is a resource for Amazon EC2 of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.