MongoDB Atlas v3.36.0 published on Friday, Aug 22, 2025 by Pulumi
mongodbatlas.getStreamAccountDetails
# Data Source: mongodbatlas.getStreamAccountDetails
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/v3/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.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:
- CloudProvider string
- One of awsorazure.
- ProjectId string
- Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
- RegionName string
- CloudProvider string
- One of awsorazure.
- ProjectId string
- Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
- RegionName string
- cloudProvider String
- One of awsorazure.
- projectId String
- Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
- regionName String
- cloudProvider string
- One of awsorazure.
- projectId string
- Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
- regionName string
- cloud_provider str
- One of awsorazure.
- project_id str
- Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
- region_name str
- cloudProvider String
- One of awsorazure.
- projectId String
- Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
- regionName String
getStreamAccountDetails Result
The following output properties are available:
- AwsAccount stringId 
- AzureSubscription stringId 
- CidrBlock string
- CloudProvider string
- One of awsorazure.
- Id string
- The provider-assigned unique ID for this managed resource.
- ProjectId string
- Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
- RegionName string
- VirtualNetwork stringName 
- VpcId string
- AwsAccount stringId 
- AzureSubscription stringId 
- CidrBlock string
- CloudProvider string
- One of awsorazure.
- Id string
- The provider-assigned unique ID for this managed resource.
- ProjectId string
- Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
- RegionName string
- VirtualNetwork stringName 
- VpcId string
- awsAccount StringId 
- azureSubscription StringId 
- cidrBlock String
- cloudProvider String
- One of awsorazure.
- id String
- The provider-assigned unique ID for this managed resource.
- projectId String
- Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
- regionName String
- virtualNetwork StringName 
- vpcId String
- awsAccount stringId 
- azureSubscription stringId 
- cidrBlock string
- cloudProvider string
- One of awsorazure.
- id string
- The provider-assigned unique ID for this managed resource.
- projectId string
- Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
- regionName string
- virtualNetwork stringName 
- vpcId string
- aws_account_ strid 
- azure_subscription_ strid 
- cidr_block str
- 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. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
- region_name str
- virtual_network_ strname 
- vpc_id str
- awsAccount StringId 
- azureSubscription StringId 
- cidrBlock String
- cloudProvider String
- One of awsorazure.
- id String
- The provider-assigned unique ID for this managed resource.
- projectId String
- Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access.
- regionName String
- virtualNetwork StringName 
- vpcId String
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the mongodbatlasTerraform Provider.
