Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

getCloudProviderAccess

mongodbatlas.CloudProviderAccess allows you to get the list of cloud provider access roles, currently only AWS is supported.

NOTE: Groups and projects are synonymous terms. You may find groupId in the official documentation.

Example Usage

using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;

class MyStack : Stack
{
    public MyStack()
    {
        var testRole = new Mongodbatlas.CloudProviderAccess("testRole", new Mongodbatlas.CloudProviderAccessArgs
        {
            ProjectId = "<PROJECT-ID>",
            ProviderName = "AWS",
        });
        var all = testRole.ProjectId.Apply(projectId => Mongodbatlas.GetCloudProviderAccess.InvokeAsync(new Mongodbatlas.GetCloudProviderAccessArgs
        {
            ProjectId = projectId,
        }));
    }

}
package main

import (
    "github.com/pulumi/pulumi-mongodbatlas/sdk/go/mongodbatlas"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        testRole, err := mongodbatlas.NewCloudProviderAccess(ctx, "testRole", &mongodbatlas.CloudProviderAccessArgs{
            ProjectId:    pulumi.String("<PROJECT-ID>"),
            ProviderName: pulumi.String("AWS"),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_mongodbatlas as mongodbatlas

test_role = mongodbatlas.CloudProviderAccess("testRole",
    project_id="<PROJECT-ID>",
    provider_name="AWS")
all = test_role.project_id.apply(lambda project_id: mongodbatlas.get_cloud_provider_access(project_id=project_id))
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";

const testRole = new mongodbatlas.CloudProviderAccess("testRole", {
    projectId: "<PROJECT-ID>",
    providerName: "AWS",
});
const all = testRole.projectId.apply(projectId => mongodbatlas.getCloudProviderAccess({
    projectId: projectId,
}));

Using getCloudProviderAccess

function getCloudProviderAccess(args: GetCloudProviderAccessArgs, opts?: InvokeOptions): Promise<GetCloudProviderAccessResult>
def get_cloud_provider_access(project_id: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetCloudProviderAccessResult
func LookupCloudProviderAccess(ctx *Context, args *LookupCloudProviderAccessArgs, opts ...InvokeOption) (*LookupCloudProviderAccessResult, error)

Note: This function is named LookupCloudProviderAccess in the Go SDK.

public static class GetCloudProviderAccess {
    public static Task<GetCloudProviderAccessResult> InvokeAsync(GetCloudProviderAccessArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

ProjectId string

The unique ID for the project to get all Cloud Provider Access

ProjectId string

The unique ID for the project to get all Cloud Provider Access

projectId string

The unique ID for the project to get all Cloud Provider Access

project_id str

The unique ID for the project to get all Cloud Provider Access

getCloudProviderAccess Result

The following output properties are available:

AwsIamRoles List<GetCloudProviderAccessAwsIamRole>

A list where each represents a Cloud Provider Access Role.

Id string

The provider-assigned unique ID for this managed resource.

ProjectId string
AwsIamRoles []GetCloudProviderAccessAwsIamRole

A list where each represents a Cloud Provider Access Role.

Id string

The provider-assigned unique ID for this managed resource.

ProjectId string
awsIamRoles GetCloudProviderAccessAwsIamRole[]

A list where each represents a Cloud Provider Access Role.

id string

The provider-assigned unique ID for this managed resource.

projectId string
aws_iam_roles Sequence[GetCloudProviderAccessAwsIamRole]

A list where each represents a Cloud Provider Access Role.

id str

The provider-assigned unique ID for this managed resource.

project_id str

Supporting Types

GetCloudProviderAccessAwsIamRole

AtlasAssumedRoleExternalId string

Unique external ID Atlas uses when assuming the IAM role in your AWS account.

AtlasAwsAccountArn string

ARN associated with the Atlas AWS account used to assume IAM roles in your AWS account.

AuthorizedDate string

Date on which this role was authorized.

CreatedDate string

Date on which this role was created.

FeatureUsages List<GetCloudProviderAccessAwsIamRoleFeatureUsageArgs>

Atlas features this AWS IAM role is linked to.

IamAssumedRoleArn string

ARN of the IAM Role that Atlas assumes when accessing resources in your AWS account.

ProviderName string

Name of the cloud provider. Currently limited to AWS.

RoleId string

Unique ID of this role.

AtlasAssumedRoleExternalId string

Unique external ID Atlas uses when assuming the IAM role in your AWS account.

AtlasAwsAccountArn string

ARN associated with the Atlas AWS account used to assume IAM roles in your AWS account.

AuthorizedDate string

Date on which this role was authorized.

CreatedDate string

Date on which this role was created.

FeatureUsages []GetCloudProviderAccessAwsIamRoleFeatureUsage

Atlas features this AWS IAM role is linked to.

IamAssumedRoleArn string

ARN of the IAM Role that Atlas assumes when accessing resources in your AWS account.

ProviderName string

Name of the cloud provider. Currently limited to AWS.

RoleId string

Unique ID of this role.

atlasAssumedRoleExternalId string

Unique external ID Atlas uses when assuming the IAM role in your AWS account.

atlasAwsAccountArn string

ARN associated with the Atlas AWS account used to assume IAM roles in your AWS account.

authorizedDate string

Date on which this role was authorized.

createdDate string

Date on which this role was created.

featureUsages GetCloudProviderAccessAwsIamRoleFeatureUsage[]

Atlas features this AWS IAM role is linked to.

iamAssumedRoleArn string

ARN of the IAM Role that Atlas assumes when accessing resources in your AWS account.

providerName string

Name of the cloud provider. Currently limited to AWS.

roleId string

Unique ID of this role.

atlas_assumed_role_external_id str

Unique external ID Atlas uses when assuming the IAM role in your AWS account.

atlas_aws_account_arn str

ARN associated with the Atlas AWS account used to assume IAM roles in your AWS account.

authorized_date str

Date on which this role was authorized.

created_date str

Date on which this role was created.

feature_usages Sequence[GetCloudProviderAccessAwsIamRoleFeatureUsageArgs]

Atlas features this AWS IAM role is linked to.

iam_assumed_role_arn str

ARN of the IAM Role that Atlas assumes when accessing resources in your AWS account.

provider_name str

Name of the cloud provider. Currently limited to AWS.

role_id str

Unique ID of this role.

GetCloudProviderAccessAwsIamRoleFeatureUsage

FeatureId string
FeatureType string
FeatureId string
FeatureType string
featureId string
featureType string

Package Details

Repository
https://github.com/pulumi/pulumi-mongodbatlas
License
Apache-2.0
Notes
This Pulumi package is based on the mongodbatlas Terraform Provider.