Expand description
Provides a managed prefix list resource.
NOTE on Managed Prefix Lists and Managed Prefix List Entries: The provider 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.
NOTE on
max_entries
: When you reference a Prefix List in a resource, the maximum number of entries for the prefix lists counts as the same number of rules or entries for the resource. For example, if you create a prefix list with a maximum of 20 entries and you reference that prefix list in a security group rule, this counts as 20 rules for the security group.
§Example Usage
Basic usage
resources:
example:
type: aws:ec2:ManagedPrefixList
properties:
name: All VPC CIDR-s
addressFamily: IPv4
maxEntries: 5
entries:
- cidr: ${exampleAwsVpc.cidrBlock}
description: Primary
- cidr: ${exampleAwsVpcIpv4CidrBlockAssociation.cidrBlock}
description: Secondary
tags:
Env: live
§Import
Using pulumi import
, import Prefix Lists using the id
. For example:
$ pulumi import aws:ec2/managedPrefixList:ManagedPrefixList default pl-0570a1d2d725c16be
Structs§
- Use builder syntax to set the inputs and finish with
build_struct()
.
Functions§
- Registers a new resource with the given unique name and arguments