1. Packages
  2. AWS
  3. API Docs
  4. ec2
  5. SecondaryNetwork
AWS v7.20.0 published on Thursday, Feb 19, 2026 by Pulumi
aws logo
AWS v7.20.0 published on Thursday, Feb 19, 2026 by Pulumi

    Provides an EC2 Secondary Network resource for RDMA networking.

    Secondary networks are specialized network resources that enable high-performance RDMA (Remote Direct Memory Access) networking for compute-intensive workloads. They provide dedicated network infrastructure with low latency and high bandwidth capabilities.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.ec2.SecondaryNetwork("example", {
        ipv4CidrBlock: "10.0.0.0/16",
        networkType: "rdma",
        tags: {
            Name: "example-secondary-network",
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.ec2.SecondaryNetwork("example",
        ipv4_cidr_block="10.0.0.0/16",
        network_type="rdma",
        tags={
            "Name": "example-secondary-network",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/ec2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ec2.NewSecondaryNetwork(ctx, "example", &ec2.SecondaryNetworkArgs{
    			Ipv4CidrBlock: pulumi.String("10.0.0.0/16"),
    			NetworkType:   pulumi.String("rdma"),
    			Tags: pulumi.StringMap{
    				"Name": pulumi.String("example-secondary-network"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.Ec2.SecondaryNetwork("example", new()
        {
            Ipv4CidrBlock = "10.0.0.0/16",
            NetworkType = "rdma",
            Tags = 
            {
                { "Name", "example-secondary-network" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.ec2.SecondaryNetwork;
    import com.pulumi.aws.ec2.SecondaryNetworkArgs;
    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) {
            var example = new SecondaryNetwork("example", SecondaryNetworkArgs.builder()
                .ipv4CidrBlock("10.0.0.0/16")
                .networkType("rdma")
                .tags(Map.of("Name", "example-secondary-network"))
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:ec2:SecondaryNetwork
        properties:
          ipv4CidrBlock: 10.0.0.0/16
          networkType: rdma
          tags:
            Name: example-secondary-network
    

    Create SecondaryNetwork Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SecondaryNetwork(name: string, args: SecondaryNetworkArgs, opts?: CustomResourceOptions);
    @overload
    def SecondaryNetwork(resource_name: str,
                         args: SecondaryNetworkArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def SecondaryNetwork(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         ipv4_cidr_block: Optional[str] = None,
                         network_type: Optional[str] = None,
                         region: Optional[str] = None,
                         tags: Optional[Mapping[str, str]] = None,
                         timeouts: Optional[SecondaryNetworkTimeoutsArgs] = None)
    func NewSecondaryNetwork(ctx *Context, name string, args SecondaryNetworkArgs, opts ...ResourceOption) (*SecondaryNetwork, error)
    public SecondaryNetwork(string name, SecondaryNetworkArgs args, CustomResourceOptions? opts = null)
    public SecondaryNetwork(String name, SecondaryNetworkArgs args)
    public SecondaryNetwork(String name, SecondaryNetworkArgs args, CustomResourceOptions options)
    
    type: aws:ec2:SecondaryNetwork
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SecondaryNetworkArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SecondaryNetworkArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SecondaryNetworkArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SecondaryNetworkArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SecondaryNetworkArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var secondaryNetworkResource = new Aws.Ec2.SecondaryNetwork("secondaryNetworkResource", new()
    {
        Ipv4CidrBlock = "string",
        NetworkType = "string",
        Region = "string",
        Tags = 
        {
            { "string", "string" },
        },
        Timeouts = new Aws.Ec2.Inputs.SecondaryNetworkTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := ec2.NewSecondaryNetwork(ctx, "secondaryNetworkResource", &ec2.SecondaryNetworkArgs{
    	Ipv4CidrBlock: pulumi.String("string"),
    	NetworkType:   pulumi.String("string"),
    	Region:        pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Timeouts: &ec2.SecondaryNetworkTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var secondaryNetworkResource = new SecondaryNetwork("secondaryNetworkResource", SecondaryNetworkArgs.builder()
        .ipv4CidrBlock("string")
        .networkType("string")
        .region("string")
        .tags(Map.of("string", "string"))
        .timeouts(SecondaryNetworkTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    secondary_network_resource = aws.ec2.SecondaryNetwork("secondaryNetworkResource",
        ipv4_cidr_block="string",
        network_type="string",
        region="string",
        tags={
            "string": "string",
        },
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const secondaryNetworkResource = new aws.ec2.SecondaryNetwork("secondaryNetworkResource", {
        ipv4CidrBlock: "string",
        networkType: "string",
        region: "string",
        tags: {
            string: "string",
        },
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: aws:ec2:SecondaryNetwork
    properties:
        ipv4CidrBlock: string
        networkType: string
        region: string
        tags:
            string: string
        timeouts:
            create: string
            delete: string
            update: string
    

    SecondaryNetwork Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The SecondaryNetwork resource accepts the following input properties:

    Ipv4CidrBlock string
    IPv4 CIDR block for the secondary network. The CIDR block size must be between /12 and /28.
    NetworkType string
    Type of secondary network. Currently only rdma is supported.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags Dictionary<string, string>
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    Timeouts SecondaryNetworkTimeouts
    Ipv4CidrBlock string
    IPv4 CIDR block for the secondary network. The CIDR block size must be between /12 and /28.
    NetworkType string
    Type of secondary network. Currently only rdma is supported.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags map[string]string
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    Timeouts SecondaryNetworkTimeoutsArgs
    ipv4CidrBlock String
    IPv4 CIDR block for the secondary network. The CIDR block size must be between /12 and /28.
    networkType String
    Type of secondary network. Currently only rdma is supported.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String,String>
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    timeouts SecondaryNetworkTimeouts
    ipv4CidrBlock string
    IPv4 CIDR block for the secondary network. The CIDR block size must be between /12 and /28.
    networkType string
    Type of secondary network. Currently only rdma is supported.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags {[key: string]: string}
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    timeouts SecondaryNetworkTimeouts
    ipv4_cidr_block str
    IPv4 CIDR block for the secondary network. The CIDR block size must be between /12 and /28.
    network_type str
    Type of secondary network. Currently only rdma is supported.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Mapping[str, str]
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    timeouts SecondaryNetworkTimeoutsArgs
    ipv4CidrBlock String
    IPv4 CIDR block for the secondary network. The CIDR block size must be between /12 and /28.
    networkType String
    Type of secondary network. Currently only rdma is supported.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String>
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SecondaryNetwork resource produces the following output properties:

    Arn string
    ARN of the secondary network.
    Id string
    The provider-assigned unique ID for this managed resource.
    Ipv4CidrBlockAssociations List<SecondaryNetworkIpv4CidrBlockAssociation>
    A list of IPv4 CIDR block associations for the secondary network.
    OwnerId string
    SecondaryNetworkId string
    ID of the secondary network.
    State string
    State of the IPv4 CIDR block association.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    Arn string
    ARN of the secondary network.
    Id string
    The provider-assigned unique ID for this managed resource.
    Ipv4CidrBlockAssociations []SecondaryNetworkIpv4CidrBlockAssociation
    A list of IPv4 CIDR block associations for the secondary network.
    OwnerId string
    SecondaryNetworkId string
    ID of the secondary network.
    State string
    State of the IPv4 CIDR block association.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    arn String
    ARN of the secondary network.
    id String
    The provider-assigned unique ID for this managed resource.
    ipv4CidrBlockAssociations List<SecondaryNetworkIpv4CidrBlockAssociation>
    A list of IPv4 CIDR block associations for the secondary network.
    ownerId String
    secondaryNetworkId String
    ID of the secondary network.
    state String
    State of the IPv4 CIDR block association.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    arn string
    ARN of the secondary network.
    id string
    The provider-assigned unique ID for this managed resource.
    ipv4CidrBlockAssociations SecondaryNetworkIpv4CidrBlockAssociation[]
    A list of IPv4 CIDR block associations for the secondary network.
    ownerId string
    secondaryNetworkId string
    ID of the secondary network.
    state string
    State of the IPv4 CIDR block association.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    arn str
    ARN of the secondary network.
    id str
    The provider-assigned unique ID for this managed resource.
    ipv4_cidr_block_associations Sequence[SecondaryNetworkIpv4CidrBlockAssociation]
    A list of IPv4 CIDR block associations for the secondary network.
    owner_id str
    secondary_network_id str
    ID of the secondary network.
    state str
    State of the IPv4 CIDR block association.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    arn String
    ARN of the secondary network.
    id String
    The provider-assigned unique ID for this managed resource.
    ipv4CidrBlockAssociations List<Property Map>
    A list of IPv4 CIDR block associations for the secondary network.
    ownerId String
    secondaryNetworkId String
    ID of the secondary network.
    state String
    State of the IPv4 CIDR block association.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Look up Existing SecondaryNetwork Resource

    Get an existing SecondaryNetwork resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: SecondaryNetworkState, opts?: CustomResourceOptions): SecondaryNetwork
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            ipv4_cidr_block: Optional[str] = None,
            ipv4_cidr_block_associations: Optional[Sequence[SecondaryNetworkIpv4CidrBlockAssociationArgs]] = None,
            network_type: Optional[str] = None,
            owner_id: Optional[str] = None,
            region: Optional[str] = None,
            secondary_network_id: Optional[str] = None,
            state: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None,
            timeouts: Optional[SecondaryNetworkTimeoutsArgs] = None) -> SecondaryNetwork
    func GetSecondaryNetwork(ctx *Context, name string, id IDInput, state *SecondaryNetworkState, opts ...ResourceOption) (*SecondaryNetwork, error)
    public static SecondaryNetwork Get(string name, Input<string> id, SecondaryNetworkState? state, CustomResourceOptions? opts = null)
    public static SecondaryNetwork get(String name, Output<String> id, SecondaryNetworkState state, CustomResourceOptions options)
    resources:  _:    type: aws:ec2:SecondaryNetwork    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Arn string
    ARN of the secondary network.
    Ipv4CidrBlock string
    IPv4 CIDR block for the secondary network. The CIDR block size must be between /12 and /28.
    Ipv4CidrBlockAssociations List<SecondaryNetworkIpv4CidrBlockAssociation>
    A list of IPv4 CIDR block associations for the secondary network.
    NetworkType string
    Type of secondary network. Currently only rdma is supported.
    OwnerId string
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    SecondaryNetworkId string
    ID of the secondary network.
    State string
    State of the IPv4 CIDR block association.
    Tags Dictionary<string, string>
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    Timeouts SecondaryNetworkTimeouts
    Arn string
    ARN of the secondary network.
    Ipv4CidrBlock string
    IPv4 CIDR block for the secondary network. The CIDR block size must be between /12 and /28.
    Ipv4CidrBlockAssociations []SecondaryNetworkIpv4CidrBlockAssociationArgs
    A list of IPv4 CIDR block associations for the secondary network.
    NetworkType string
    Type of secondary network. Currently only rdma is supported.
    OwnerId string
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    SecondaryNetworkId string
    ID of the secondary network.
    State string
    State of the IPv4 CIDR block association.
    Tags map[string]string
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    Timeouts SecondaryNetworkTimeoutsArgs
    arn String
    ARN of the secondary network.
    ipv4CidrBlock String
    IPv4 CIDR block for the secondary network. The CIDR block size must be between /12 and /28.
    ipv4CidrBlockAssociations List<SecondaryNetworkIpv4CidrBlockAssociation>
    A list of IPv4 CIDR block associations for the secondary network.
    networkType String
    Type of secondary network. Currently only rdma is supported.
    ownerId String
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    secondaryNetworkId String
    ID of the secondary network.
    state String
    State of the IPv4 CIDR block association.
    tags Map<String,String>
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    timeouts SecondaryNetworkTimeouts
    arn string
    ARN of the secondary network.
    ipv4CidrBlock string
    IPv4 CIDR block for the secondary network. The CIDR block size must be between /12 and /28.
    ipv4CidrBlockAssociations SecondaryNetworkIpv4CidrBlockAssociation[]
    A list of IPv4 CIDR block associations for the secondary network.
    networkType string
    Type of secondary network. Currently only rdma is supported.
    ownerId string
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    secondaryNetworkId string
    ID of the secondary network.
    state string
    State of the IPv4 CIDR block association.
    tags {[key: string]: string}
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    timeouts SecondaryNetworkTimeouts
    arn str
    ARN of the secondary network.
    ipv4_cidr_block str
    IPv4 CIDR block for the secondary network. The CIDR block size must be between /12 and /28.
    ipv4_cidr_block_associations Sequence[SecondaryNetworkIpv4CidrBlockAssociationArgs]
    A list of IPv4 CIDR block associations for the secondary network.
    network_type str
    Type of secondary network. Currently only rdma is supported.
    owner_id str
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    secondary_network_id str
    ID of the secondary network.
    state str
    State of the IPv4 CIDR block association.
    tags Mapping[str, str]
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    timeouts SecondaryNetworkTimeoutsArgs
    arn String
    ARN of the secondary network.
    ipv4CidrBlock String
    IPv4 CIDR block for the secondary network. The CIDR block size must be between /12 and /28.
    ipv4CidrBlockAssociations List<Property Map>
    A list of IPv4 CIDR block associations for the secondary network.
    networkType String
    Type of secondary network. Currently only rdma is supported.
    ownerId String
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    secondaryNetworkId String
    ID of the secondary network.
    state String
    State of the IPv4 CIDR block association.
    tags Map<String>
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    timeouts Property Map

    Supporting Types

    SecondaryNetworkIpv4CidrBlockAssociation, SecondaryNetworkIpv4CidrBlockAssociationArgs

    AssociationId string
    Association ID for the IPv4 CIDR block.
    CidrBlock string
    IPv4 CIDR block.
    State string
    State of the IPv4 CIDR block association.
    AssociationId string
    Association ID for the IPv4 CIDR block.
    CidrBlock string
    IPv4 CIDR block.
    State string
    State of the IPv4 CIDR block association.
    associationId String
    Association ID for the IPv4 CIDR block.
    cidrBlock String
    IPv4 CIDR block.
    state String
    State of the IPv4 CIDR block association.
    associationId string
    Association ID for the IPv4 CIDR block.
    cidrBlock string
    IPv4 CIDR block.
    state string
    State of the IPv4 CIDR block association.
    association_id str
    Association ID for the IPv4 CIDR block.
    cidr_block str
    IPv4 CIDR block.
    state str
    State of the IPv4 CIDR block association.
    associationId String
    Association ID for the IPv4 CIDR block.
    cidrBlock String
    IPv4 CIDR block.
    state String
    State of the IPv4 CIDR block association.

    SecondaryNetworkTimeouts, SecondaryNetworkTimeoutsArgs

    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).

    Import

    Identity Schema

    Required

    • id - (String) ID of the secondary network.

    Optional

    • account_id (String) AWS Account where this resource is managed.
    • region (String) Region where this resource is managed.

    Using pulumi import, import EC2 Secondary Networks using the id. For example:

    $ pulumi import aws:ec2/secondaryNetwork:SecondaryNetwork example sn-0123456789abcdef0
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v7.20.0 published on Thursday, Feb 19, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate