pulumi_wasm_providers_aws_mini::ec2

Module vpc_ipam_pool

source
Expand description

Provides an IP address pool resource for IPAM.

§Example Usage

Basic usage:

resources:
  example:
    type: aws:ec2:VpcIpam
    properties:
      operatingRegions:
        - regionName: ${current.name}
  exampleVpcIpamPool:
    type: aws:ec2:VpcIpamPool
    name: example
    properties:
      addressFamily: ipv4
      ipamScopeId: ${example.privateDefaultScopeId}
      locale: ${current.name}
variables:
  current:
    fn::invoke:
      function: aws:getRegion
      arguments: {}

Nested Pools:

resources:
  example:
    type: aws:ec2:VpcIpam
    properties:
      operatingRegions:
        - regionName: ${current.name}
  parent:
    type: aws:ec2:VpcIpamPool
    properties:
      addressFamily: ipv4
      ipamScopeId: ${example.privateDefaultScopeId}
  parentTest:
    type: aws:ec2:VpcIpamPoolCidr
    name: parent_test
    properties:
      ipamPoolId: ${parent.id}
      cidr: 172.20.0.0/16
  child:
    type: aws:ec2:VpcIpamPool
    properties:
      addressFamily: ipv4
      ipamScopeId: ${example.privateDefaultScopeId}
      locale: ${current.name}
      sourceIpamPoolId: ${parent.id}
  childTest:
    type: aws:ec2:VpcIpamPoolCidr
    name: child_test
    properties:
      ipamPoolId: ${child.id}
      cidr: 172.20.0.0/24
variables:
  current:
    fn::invoke:
      function: aws:getRegion
      arguments: {}

§Import

Using pulumi import, import IPAMs using the IPAM pool id. For example:

$ pulumi import aws:ec2/vpcIpamPool:VpcIpamPool example ipam-pool-0958f95207d978e1e

Structs§

Functions§

  • Registers a new resource with the given unique name and arguments