IPAMScope
The IPAMScope resource lets you manage AWS EC2 IPAMScopes for organizing your IP address management in a scalable and efficient manner.
Minimal Example
Section titled “Minimal Example”Create a basic IPAMScope with required properties and a description.
import AWS from "alchemy/aws/control";
const basicIpamScope = await AWS.EC2.IPAMScope("basicIpamScope", { IpamId: "ipam-12345678", Description: "Basic IPAM Scope for managing IP addresses"});
Advanced Configuration
Section titled “Advanced Configuration”Configure an IPAMScope with tags for better organization and management.
const advancedIpamScope = await AWS.EC2.IPAMScope("advancedIpamScope", { IpamId: "ipam-87654321", Description: "Advanced IPAM Scope with tags", Tags: [ { Key: "Environment", Value: "Production" }, { Key: "Project", Value: "WebApp" } ]});
Adoption of Existing Resources
Section titled “Adoption of Existing Resources”Adopt an existing IPAMScope if it already exists instead of failing.
const adoptedIpamScope = await AWS.EC2.IPAMScope("adoptedIpamScope", { IpamId: "ipam-13579246", Description: "This scope might already exist", adopt: true});
Updating an IPAMScope
Section titled “Updating an IPAMScope”Update an existing IPAMScope’s description to reflect changes in your network architecture.
const updatedIpamScope = await AWS.EC2.IPAMScope("updatedIpamScope", { IpamId: "ipam-24681357", Description: "Updated description for IPAM Scope"});