MongoDB Atlas v3.33.0 published on Thursday, Jun 12, 2025 by Pulumi
mongodbatlas.getStreamAccountDetails
Explore with Pulumi AI
# 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 dictionary
The following arguments are supported:
- Cloud
Provider string - One of
aws
orazure
. - Project
Id 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.
- Region
Name string
- Cloud
Provider string - One of
aws
orazure
. - Project
Id 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.
- Region
Name string
- cloud
Provider String - One of
aws
orazure
. - project
Id 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.
- region
Name String
- cloud
Provider string - One of
aws
orazure
. - project
Id 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.
- region
Name string
- cloud_
provider str - One of
aws
orazure
. - 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
- cloud
Provider String - One of
aws
orazure
. - project
Id 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.
- region
Name String
getStreamAccountDetails Result
The following output properties are available:
- Aws
Account stringId - Azure
Subscription stringId - Cidr
Block string - Cloud
Provider string - One of
aws
orazure
. - Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id 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.
- Region
Name string - Virtual
Network stringName - Vpc
Id string
- Aws
Account stringId - Azure
Subscription stringId - Cidr
Block string - Cloud
Provider string - One of
aws
orazure
. - Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id 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.
- Region
Name string - Virtual
Network stringName - Vpc
Id string
- aws
Account StringId - azure
Subscription StringId - cidr
Block String - cloud
Provider String - One of
aws
orazure
. - id String
- The provider-assigned unique ID for this managed resource.
- project
Id 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.
- region
Name String - virtual
Network StringName - vpc
Id String
- aws
Account stringId - azure
Subscription stringId - cidr
Block string - cloud
Provider string - One of
aws
orazure
. - id string
- The provider-assigned unique ID for this managed resource.
- project
Id 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.
- region
Name string - virtual
Network stringName - vpc
Id string
- aws_
account_ strid - azure_
subscription_ strid - cidr_
block str - cloud_
provider str - One of
aws
orazure
. - 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
- aws
Account StringId - azure
Subscription StringId - cidr
Block String - cloud
Provider String - One of
aws
orazure
. - id String
- The provider-assigned unique ID for this managed resource.
- project
Id 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.
- region
Name String - virtual
Network StringName - vpc
Id String
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlas
Terraform Provider.