Viewing docs for MongoDB Atlas v4.8.0
published on Thursday, Apr 23, 2026 by Pulumi
published on Thursday, Apr 23, 2026 by Pulumi
Viewing docs for MongoDB Atlas v4.8.0
published on Thursday, Apr 23, 2026 by Pulumi
published on Thursday, Apr 23, 2026 by Pulumi
mongodbatlas.getStreamAccountDetails returns the AWS Account ID/Azure Subscription ID, and the AWS VPC ID/Azure Virtual Network Name for the group, cloud provider, and region that you specify.
Example Usage
S
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const accountDetails = mongodbatlas.getStreamAccountDetails({
projectId: projectId,
cloudProvider: "aws",
regionName: "US_EAST_1",
});
export const awsAccountId = accountDetails.then(accountDetails => accountDetails.awsAccountId);
export const cidrBlock = accountDetails.then(accountDetails => accountDetails.cidrBlock);
export const cloudProvider = accountDetails.then(accountDetails => accountDetails.cloudProvider);
export const vpcId = accountDetails.then(accountDetails => accountDetails.vpcId);
import pulumi
import pulumi_mongodbatlas as mongodbatlas
account_details = mongodbatlas.get_stream_account_details(project_id=project_id,
cloud_provider="aws",
region_name="US_EAST_1")
pulumi.export("awsAccountId", account_details.aws_account_id)
pulumi.export("cidrBlock", account_details.cidr_block)
pulumi.export("cloudProvider", account_details.cloud_provider)
pulumi.export("vpcId", account_details.vpc_id)
package main
import (
"github.com/pulumi/pulumi-mongodbatlas/sdk/v4/go/mongodbatlas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
accountDetails, err := mongodbatlas.GetStreamAccountDetails(ctx, &mongodbatlas.GetStreamAccountDetailsArgs{
ProjectId: projectId,
CloudProvider: "aws",
RegionName: "US_EAST_1",
}, nil)
if err != nil {
return err
}
ctx.Export("awsAccountId", accountDetails.AwsAccountId)
ctx.Export("cidrBlock", accountDetails.CidrBlock)
ctx.Export("cloudProvider", accountDetails.CloudProvider)
ctx.Export("vpcId", accountDetails.VpcId)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
return await Deployment.RunAsync(() =>
{
var accountDetails = Mongodbatlas.Index.GetStreamAccountDetails.Invoke(new()
{
ProjectId = projectId,
CloudProvider = "aws",
RegionName = "US_EAST_1",
});
return new Dictionary<string, object?>
{
["awsAccountId"] = accountDetails.Apply(getStreamAccountDetailsResult => getStreamAccountDetailsResult.AwsAccountId),
["cidrBlock"] = accountDetails.Apply(getStreamAccountDetailsResult => getStreamAccountDetailsResult.CidrBlock),
["cloudProvider"] = accountDetails.Apply(getStreamAccountDetailsResult => getStreamAccountDetailsResult.CloudProvider),
["vpcId"] = accountDetails.Apply(getStreamAccountDetailsResult => getStreamAccountDetailsResult.VpcId),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mongodbatlas.MongodbatlasFunctions;
import com.pulumi.mongodbatlas.inputs.GetStreamAccountDetailsArgs;
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 accountDetails = MongodbatlasFunctions.getStreamAccountDetails(GetStreamAccountDetailsArgs.builder()
.projectId(projectId)
.cloudProvider("aws")
.regionName("US_EAST_1")
.build());
ctx.export("awsAccountId", accountDetails.awsAccountId());
ctx.export("cidrBlock", accountDetails.cidrBlock());
ctx.export("cloudProvider", accountDetails.cloudProvider());
ctx.export("vpcId", accountDetails.vpcId());
}
}
variables:
accountDetails:
fn::invoke:
function: mongodbatlas:getStreamAccountDetails
arguments:
projectId: ${projectId}
cloudProvider: aws
regionName: US_EAST_1
outputs:
awsAccountId: ${accountDetails.awsAccountId}
cidrBlock: ${accountDetails.cidrBlock}
cloudProvider: ${accountDetails.cloudProvider}
vpcId: ${accountDetails.vpcId}
Using getStreamAccountDetails
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 getStreamAccountDetails(args: GetStreamAccountDetailsArgs, opts?: InvokeOptions): Promise<GetStreamAccountDetailsResult>
function getStreamAccountDetailsOutput(args: GetStreamAccountDetailsOutputArgs, opts?: InvokeOptions): Output<GetStreamAccountDetailsResult>def get_stream_account_details(cloud_provider: Optional[str] = None,
project_id: Optional[str] = None,
region_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetStreamAccountDetailsResult
def get_stream_account_details_output(cloud_provider: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
region_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetStreamAccountDetailsResult]func GetStreamAccountDetails(ctx *Context, args *GetStreamAccountDetailsArgs, opts ...InvokeOption) (*GetStreamAccountDetailsResult, error)
func GetStreamAccountDetailsOutput(ctx *Context, args *GetStreamAccountDetailsOutputArgs, opts ...InvokeOption) GetStreamAccountDetailsResultOutput> Note: This function is named GetStreamAccountDetails in the Go SDK.
public static class GetStreamAccountDetails
{
public static Task<GetStreamAccountDetailsResult> InvokeAsync(GetStreamAccountDetailsArgs args, InvokeOptions? opts = null)
public static Output<GetStreamAccountDetailsResult> Invoke(GetStreamAccountDetailsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetStreamAccountDetailsResult> getStreamAccountDetails(GetStreamAccountDetailsArgs args, InvokeOptions options)
public static Output<GetStreamAccountDetailsResult> getStreamAccountDetails(GetStreamAccountDetailsArgs args, InvokeOptions options)
fn::invoke:
function: mongodbatlas:index/getStreamAccountDetails:getStreamAccountDetails
arguments:
# arguments dictionaryThe following arguments are supported:
- Cloud
Provider string - One of
awsorazure. - Project
Id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - Region
Name string - The cloud provider specific region name, i.e.
US_EAST_1for cloud provideraws.
- Cloud
Provider string - One of
awsorazure. - Project
Id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - Region
Name string - The cloud provider specific region name, i.e.
US_EAST_1for cloud provideraws.
- cloud
Provider String - One of
awsorazure. - project
Id String - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - region
Name String - The cloud provider specific region name, i.e.
US_EAST_1for cloud provideraws.
- cloud
Provider string - One of
awsorazure. - project
Id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - region
Name string - The cloud provider specific region name, i.e.
US_EAST_1for cloud provideraws.
- cloud_
provider str - One of
awsorazure. - project_
id str - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - region_
name str - The cloud provider specific region name, i.e.
US_EAST_1for cloud provideraws.
- cloud
Provider String - One of
awsorazure. - project
Id String - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - region
Name String - The cloud provider specific region name, i.e.
US_EAST_1for cloud provideraws.
getStreamAccountDetails Result
The following output properties are available:
- Aws
Account stringId - The AWS Account ID.
- Azure
Subscription stringId - The Azure Subscription ID.
- Cidr
Block string - The AWS VPC or Azure Virtual Network CIDR Block.
- Cloud
Provider string - One of
awsorazure. - Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - Region
Name string - The cloud provider specific region name, i.e.
US_EAST_1for cloud provideraws. - Virtual
Network stringName - The name of the Azure Virtual Network.
- Vpc
Id string - The AWS VPC ID.
- Aws
Account stringId - The AWS Account ID.
- Azure
Subscription stringId - The Azure Subscription ID.
- Cidr
Block string - The AWS VPC or Azure Virtual Network CIDR Block.
- Cloud
Provider string - One of
awsorazure. - Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - Region
Name string - The cloud provider specific region name, i.e.
US_EAST_1for cloud provideraws. - Virtual
Network stringName - The name of the Azure Virtual Network.
- Vpc
Id string - The AWS VPC ID.
- aws
Account StringId - The AWS Account ID.
- azure
Subscription StringId - The Azure Subscription ID.
- cidr
Block String - The AWS VPC or Azure Virtual Network CIDR Block.
- cloud
Provider String - One of
awsorazure. - id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - region
Name String - The cloud provider specific region name, i.e.
US_EAST_1for cloud provideraws. - virtual
Network StringName - The name of the Azure Virtual Network.
- vpc
Id String - The AWS VPC ID.
- aws
Account stringId - The AWS Account ID.
- azure
Subscription stringId - The Azure Subscription ID.
- cidr
Block string - The AWS VPC or Azure Virtual Network CIDR Block.
- cloud
Provider string - One of
awsorazure. - id string
- The provider-assigned unique ID for this managed resource.
- project
Id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - region
Name string - The cloud provider specific region name, i.e.
US_EAST_1for cloud provideraws. - virtual
Network stringName - The name of the Azure Virtual Network.
- vpc
Id string - The AWS VPC ID.
- aws_
account_ strid - The AWS Account ID.
- azure_
subscription_ strid - The Azure Subscription ID.
- cidr_
block str - The AWS VPC or Azure Virtual Network CIDR Block.
- cloud_
provider str - One of
awsorazure. - id str
- The provider-assigned unique ID for this managed resource.
- project_
id str - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - region_
name str - The cloud provider specific region name, i.e.
US_EAST_1for cloud provideraws. - virtual_
network_ strname - The name of the Azure Virtual Network.
- vpc_
id str - The AWS VPC ID.
- aws
Account StringId - The AWS Account ID.
- azure
Subscription StringId - The Azure Subscription ID.
- cidr
Block String - The AWS VPC or Azure Virtual Network CIDR Block.
- cloud
Provider String - One of
awsorazure. - id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - region
Name String - The cloud provider specific region name, i.e.
US_EAST_1for cloud provideraws. - virtual
Network StringName - The name of the Azure Virtual Network.
- vpc
Id String - The AWS VPC ID.
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlasTerraform Provider.
Viewing docs for MongoDB Atlas v4.8.0
published on Thursday, Apr 23, 2026 by Pulumi
published on Thursday, Apr 23, 2026 by Pulumi
