get Vpc Iam Pool
Deprecated
aws.ec2/getvpciampool.getVpcIamPool has been deprecated in favor of aws.ec2/getvpcipampool.getVpcIpamPool
aws.ec2.VpcIpamPool
provides details about an IPAM pool. This resource can prove useful when an ipam pool was created in another root module and you need the pool's id as an input variable. For example, pools can be shared via RAM and used to create vpcs with CIDRs from that pool.
Example Usage
The following example shows an account that has only 1 pool, perhaps shared via RAM, and using that pool id to create a VPC with a CIDR derived from AWS IPAM.
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.Ec2Functions;
import com.pulumi.aws.ec2.inputs.GetVpcIpamPoolArgs;
import com.pulumi.aws.ec2.Vpc;
import com.pulumi.aws.ec2.VpcArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var testVpcIpamPool = Ec2Functions.getVpcIpamPool(GetVpcIpamPoolArgs.builder()
.filters(
GetVpcIpamPoolFilterArgs.builder()
.name("description")
.values("*test*")
.build(),
GetVpcIpamPoolFilterArgs.builder()
.name("address-family")
.values("ipv4")
.build())
.build());
var testVpc = new Vpc("testVpc", VpcArgs.builder()
.ipv4IpamPoolId(testVpcIpamPool.applyValue(getVpcIpamPoolResult -> getVpcIpamPoolResult.id()))
.ipv4NetmaskLength(28)
.build());
}
}
Return
A collection of values returned by getVpcIamPool.
Parameters
A collection of arguments for invoking getVpcIamPool.
Deprecated
aws.ec2/getvpciampool.getVpcIamPool has been deprecated in favor of aws.ec2/getvpcipampool.getVpcIpamPool
Return
A collection of values returned by getVpcIamPool.
See also
Parameters
Tags that are required to create resources in using this pool.
Custom filter block as described below.
ID of the IPAM pool.
ID of the IPAM pool you would like information on.
Map of tags to assigned to the resource.
Deprecated
aws.ec2/getvpciampool.getVpcIamPool has been deprecated in favor of aws.ec2/getvpcipampool.getVpcIpamPool
Return
A collection of values returned by getVpcIamPool.
See also
Parameters
Builder for com.pulumi.aws.ec2.kotlin.inputs.GetVpcIamPoolPlainArgs.