1. Packages
  2. AWSx (Pulumi Crosswalk for AWS)
  3. API Docs
  4. ec2
  5. getDefaultVpc
AWSx (Pulumi Crosswalk for AWS) v3.0.1 published on Tuesday, Oct 21, 2025 by Pulumi

awsx.ec2.getDefaultVpc

Start a Neo task
Explain and create an awsx.ec2.getDefaultVpc resource
awsx logo
AWSx (Pulumi Crosswalk for AWS) v3.0.1 published on Tuesday, Oct 21, 2025 by Pulumi
    Deprecated: Waiting for https://github.com/pulumi/pulumi/issues/7583. Use the DefaultVpc resource until resolved.

    [NOT YET IMPLEMENTED] Get the Default VPC for a region.

    Using getDefaultVpc

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getDefaultVpc(args: GetDefaultVpcArgs, opts?: InvokeOptions): Promise<GetDefaultVpcResult>
    function getDefaultVpcOutput(args: GetDefaultVpcOutputArgs, opts?: InvokeOptions): Output<GetDefaultVpcResult>
    def get_default_vpc(opts: Optional[InvokeOptions] = None) -> GetDefaultVpcResult
    def get_default_vpc_output(opts: Optional[InvokeOptions] = None) -> Output[GetDefaultVpcResult]
    func GetDefaultVpc(ctx *Context, args *GetDefaultVpcArgs, opts ...InvokeOption) (*GetDefaultVpcResult, error)
    func GetDefaultVpcOutput(ctx *Context, args *GetDefaultVpcOutputArgs, opts ...InvokeOption) GetDefaultVpcResultOutput

    > Note: This function is named GetDefaultVpc in the Go SDK.

    public static class GetDefaultVpc 
    {
        public static Task<GetDefaultVpcResult> InvokeAsync(GetDefaultVpcArgs args, InvokeOptions? opts = null)
        public static Output<GetDefaultVpcResult> Invoke(GetDefaultVpcInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDefaultVpcResult> getDefaultVpc(GetDefaultVpcArgs args, InvokeOptions options)
    public static Output<GetDefaultVpcResult> getDefaultVpc(GetDefaultVpcArgs args, InvokeOptions options)
    
    fn::invoke:
      function: awsx:ec2:getDefaultVpc
      arguments:
        # arguments dictionary

    The following arguments are supported:

    getDefaultVpc Result

    The following output properties are available:

    PrivateSubnetIds List<string>
    PublicSubnetIds List<string>
    VpcId string
    The VPC ID for the default VPC
    PrivateSubnetIds []string
    PublicSubnetIds []string
    VpcId string
    The VPC ID for the default VPC
    privateSubnetIds List<String>
    publicSubnetIds List<String>
    vpcId String
    The VPC ID for the default VPC
    privateSubnetIds string[]
    publicSubnetIds string[]
    vpcId string
    The VPC ID for the default VPC
    private_subnet_ids Sequence[str]
    public_subnet_ids Sequence[str]
    vpc_id str
    The VPC ID for the default VPC
    privateSubnetIds List<String>
    publicSubnetIds List<String>
    vpcId String
    The VPC ID for the default VPC

    Package Details

    Repository
    AWSx (Pulumi Crosswalk for AWS) pulumi/pulumi-awsx
    License
    Apache-2.0
    awsx logo
    AWSx (Pulumi Crosswalk for AWS) v3.0.1 published on Tuesday, Oct 21, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate