1. Registry
  2. Packages
  3. Mongodbatlas Provider
  4. API Docs
  5. ProjectMcpConfigSecret
Viewing docs for MongoDB Atlas v4.16.0
published on Thursday, Sep 17, 2026 by Pulumi
mongodbatlas logo mongodbatlas logo
Viewing docs for MongoDB Atlas v4.16.0
published on Thursday, Sep 17, 2026 by Pulumi

    mongodbatlas.ProjectMcpConfigSecret provides a Project MCP Config Secret resource. The resource lets you create and delete ingress secrets for a mongodbatlas.ProjectMcpConfig configuration.

    IMPORTANT: Managing MCP Config Secrets with Terraform exposes sensitive organizational secrets in Terraform’s state. We suggest following Terraform’s best practices.

    NOTE: This resource does not support updates. To rotate a secret, create a new secret resource and delete the old one once no longer needed. Up to two secrets can be active at once.

    Example Usage

    S

    import * as pulumi from "@pulumi/pulumi";
    import * as mongodbatlas from "@pulumi/mongodbatlas";
    
    const _this = new mongodbatlas.ProjectMcpConfig("this", {
        projectId: projectId,
        mcpConfigName: "example-mcp-config",
        roles: ["GROUP_READ_ONLY"],
    });
    const thisProjectMcpConfigSecret = new mongodbatlas.ProjectMcpConfigSecret("this", {
        projectId: projectId,
        mcpConfigId: _this.mcpConfigId,
        secretExpiresAfterHours: 720,
    });
    export const secretId = thisProjectMcpConfigSecret.secretId;
    export const secret = thisProjectMcpConfigSecret.secret;
    
    import pulumi
    import pulumi_mongodbatlas as mongodbatlas
    
    this = mongodbatlas.ProjectMcpConfig("this",
        project_id=project_id,
        mcp_config_name="example-mcp-config",
        roles=["GROUP_READ_ONLY"])
    this_project_mcp_config_secret = mongodbatlas.ProjectMcpConfigSecret("this",
        project_id=project_id,
        mcp_config_id=this.mcp_config_id,
        secret_expires_after_hours=720)
    pulumi.export("secretId", this_project_mcp_config_secret.secret_id)
    pulumi.export("secret", this_project_mcp_config_secret.secret)
    
    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 {
    		this, err := mongodbatlas.NewProjectMcpConfig(ctx, "this", &mongodbatlas.ProjectMcpConfigArgs{
    			ProjectId:     pulumi.Any(projectId),
    			McpConfigName: pulumi.String("example-mcp-config"),
    			Roles: pulumi.StringArray{
    				pulumi.String("GROUP_READ_ONLY"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		thisProjectMcpConfigSecret, err := mongodbatlas.NewProjectMcpConfigSecret(ctx, "this", &mongodbatlas.ProjectMcpConfigSecretArgs{
    			ProjectId:               pulumi.Any(projectId),
    			McpConfigId:             this.McpConfigId,
    			SecretExpiresAfterHours: pulumi.Int(720),
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("secretId", thisProjectMcpConfigSecret.SecretId)
    		ctx.Export("secret", thisProjectMcpConfigSecret.Secret)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Mongodbatlas = Pulumi.Mongodbatlas;
    
    return await Deployment.RunAsync(() => 
    {
        var @this = new Mongodbatlas.ProjectMcpConfig("this", new()
        {
            ProjectId = projectId,
            McpConfigName = "example-mcp-config",
            Roles = new[]
            {
                "GROUP_READ_ONLY",
            },
        });
    
        var thisProjectMcpConfigSecret = new Mongodbatlas.ProjectMcpConfigSecret("this", new()
        {
            ProjectId = projectId,
            McpConfigId = @this.McpConfigId,
            SecretExpiresAfterHours = 720,
        });
    
        return new Dictionary<string, object?>
        {
            ["secretId"] = thisProjectMcpConfigSecret.SecretId,
            ["secret"] = thisProjectMcpConfigSecret.Secret,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.mongodbatlas.ProjectMcpConfig;
    import com.pulumi.mongodbatlas.ProjectMcpConfigArgs;
    import com.pulumi.mongodbatlas.ProjectMcpConfigSecret;
    import com.pulumi.mongodbatlas.ProjectMcpConfigSecretArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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) {
            var this_ = new ProjectMcpConfig("this", ProjectMcpConfigArgs.builder()
                .projectId(projectId)
                .mcpConfigName("example-mcp-config")
                .roles("GROUP_READ_ONLY")
                .build());
    
            var thisProjectMcpConfigSecret = new ProjectMcpConfigSecret("thisProjectMcpConfigSecret", ProjectMcpConfigSecretArgs.builder()
                .projectId(projectId)
                .mcpConfigId(this_.mcpConfigId())
                .secretExpiresAfterHours(720)
                .build());
    
            ctx.export("secretId", thisProjectMcpConfigSecret.secretId());
            ctx.export("secret", thisProjectMcpConfigSecret.secret());
        }
    }
    
    resources:
      this:
        type: mongodbatlas:ProjectMcpConfig
        properties:
          projectId: ${projectId}
          mcpConfigName: example-mcp-config
          roles:
            - GROUP_READ_ONLY
      thisProjectMcpConfigSecret:
        type: mongodbatlas:ProjectMcpConfigSecret
        name: this
        properties:
          projectId: ${projectId}
          mcpConfigId: ${this.mcpConfigId}
          secretExpiresAfterHours: 720 # 30 days
    outputs:
      secretId: ${thisProjectMcpConfigSecret.secretId}
      secret: ${thisProjectMcpConfigSecret.secret}
    
    pulumi {
      required_providers {
        mongodbatlas = {
          source = "pulumi/mongodbatlas"
        }
      }
    }
    
    resource "mongodbatlas_projectmcpconfig" "this" {
      project_id      = projectId
      mcp_config_name = "example-mcp-config"
      roles           = ["GROUP_READ_ONLY"]
    }
    resource "mongodbatlas_projectmcpconfigsecret" "this" {
      project_id                 = projectId
      mcp_config_id              = mongodbatlas_projectmcpconfig.this.mcp_config_id
      secret_expires_after_hours = 720 # 30 days
    }
    output "secretId" {
      value = mongodbatlas_projectmcpconfigsecret.this.secret_id
    }
    output "secret" {
      value = mongodbatlas_projectmcpconfigsecret.this.secret
    }
    

    Create ProjectMcpConfigSecret Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ProjectMcpConfigSecret(name: string, args: ProjectMcpConfigSecretArgs, opts?: CustomResourceOptions);
    @overload
    def ProjectMcpConfigSecret(resource_name: str,
                               args: ProjectMcpConfigSecretArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def ProjectMcpConfigSecret(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               mcp_config_id: Optional[str] = None,
                               project_id: Optional[str] = None,
                               secret_expires_after_hours: Optional[int] = None)
    func NewProjectMcpConfigSecret(ctx *Context, name string, args ProjectMcpConfigSecretArgs, opts ...ResourceOption) (*ProjectMcpConfigSecret, error)
    public ProjectMcpConfigSecret(string name, ProjectMcpConfigSecretArgs args, CustomResourceOptions? opts = null)
    public ProjectMcpConfigSecret(String name, ProjectMcpConfigSecretArgs args)
    public ProjectMcpConfigSecret(String name, ProjectMcpConfigSecretArgs args, CustomResourceOptions options)
    
    type: mongodbatlas:ProjectMcpConfigSecret
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "mongodbatlas_project_mcp_config_secret" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ProjectMcpConfigSecretArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ProjectMcpConfigSecretArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ProjectMcpConfigSecretArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ProjectMcpConfigSecretArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ProjectMcpConfigSecretArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var projectMcpConfigSecretResource = new Mongodbatlas.ProjectMcpConfigSecret("projectMcpConfigSecretResource", new()
    {
        McpConfigId = "string",
        ProjectId = "string",
        SecretExpiresAfterHours = 0,
    });
    
    example, err := mongodbatlas.NewProjectMcpConfigSecret(ctx, "projectMcpConfigSecretResource", &mongodbatlas.ProjectMcpConfigSecretArgs{
    	McpConfigId:             pulumi.String("string"),
    	ProjectId:               pulumi.String("string"),
    	SecretExpiresAfterHours: pulumi.Int(0),
    })
    
    resource "mongodbatlas_project_mcp_config_secret" "projectMcpConfigSecretResource" {
      lifecycle {
        create_before_destroy = true
      }
      mcp_config_id              = "string"
      project_id                 = "string"
      secret_expires_after_hours = 0
    }
    
    var projectMcpConfigSecretResource = new ProjectMcpConfigSecret("projectMcpConfigSecretResource", ProjectMcpConfigSecretArgs.builder()
        .mcpConfigId("string")
        .projectId("string")
        .secretExpiresAfterHours(0)
        .build());
    
    project_mcp_config_secret_resource = mongodbatlas.ProjectMcpConfigSecret("projectMcpConfigSecretResource",
        mcp_config_id="string",
        project_id="string",
        secret_expires_after_hours=0)
    
    const projectMcpConfigSecretResource = new mongodbatlas.ProjectMcpConfigSecret("projectMcpConfigSecretResource", {
        mcpConfigId: "string",
        projectId: "string",
        secretExpiresAfterHours: 0,
    });
    
    type: mongodbatlas:ProjectMcpConfigSecret
    properties:
        mcpConfigId: string
        projectId: string
        secretExpiresAfterHours: 0
    

    ProjectMcpConfigSecret Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ProjectMcpConfigSecret resource accepts the following input properties:

    McpConfigId string
    Unique identifier of the MCP configuration.
    ProjectId string
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    SecretExpiresAfterHours int
    The expiration time of the new ingress Service Account secret, provided in hours. This attribute is required when creating the secret and cannot be updated later.
    McpConfigId string
    Unique identifier of the MCP configuration.
    ProjectId string
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    SecretExpiresAfterHours int
    The expiration time of the new ingress Service Account secret, provided in hours. This attribute is required when creating the secret and cannot be updated later.
    mcp_config_id string
    Unique identifier of the MCP configuration.
    project_id string
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    secret_expires_after_hours number
    The expiration time of the new ingress Service Account secret, provided in hours. This attribute is required when creating the secret and cannot be updated later.
    mcpConfigId String
    Unique identifier of the MCP configuration.
    projectId String
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    secretExpiresAfterHours Integer
    The expiration time of the new ingress Service Account secret, provided in hours. This attribute is required when creating the secret and cannot be updated later.
    mcpConfigId string
    Unique identifier of the MCP configuration.
    projectId string
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    secretExpiresAfterHours number
    The expiration time of the new ingress Service Account secret, provided in hours. This attribute is required when creating the secret and cannot be updated later.
    mcp_config_id str
    Unique identifier of the MCP configuration.
    project_id str
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    secret_expires_after_hours int
    The expiration time of the new ingress Service Account secret, provided in hours. This attribute is required when creating the secret and cannot be updated later.
    mcpConfigId String
    Unique identifier of the MCP configuration.
    projectId String
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    secretExpiresAfterHours Number
    The expiration time of the new ingress Service Account secret, provided in hours. This attribute is required when creating the secret and cannot be updated later.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ProjectMcpConfigSecret resource produces the following output properties:

    CreatedAt string
    The date that the secret was created on. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    ExpiresAt string
    The date for the expiration of the secret. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUsedAt string
    The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    MaskedSecretValue string
    The masked Service Account secret.
    Secret string
    The secret for the Service Account. It will be returned only the first time after creation.
    SecretId string
    Unique 24-hexadecimal digit string that identifies the secret.
    CreatedAt string
    The date that the secret was created on. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    ExpiresAt string
    The date for the expiration of the secret. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUsedAt string
    The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    MaskedSecretValue string
    The masked Service Account secret.
    Secret string
    The secret for the Service Account. It will be returned only the first time after creation.
    SecretId string
    Unique 24-hexadecimal digit string that identifies the secret.
    created_at string
    The date that the secret was created on. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    expires_at string
    The date for the expiration of the secret. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    id string
    The provider-assigned unique ID for this managed resource.
    last_used_at string
    The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    masked_secret_value string
    The masked Service Account secret.
    secret string
    The secret for the Service Account. It will be returned only the first time after creation.
    secret_id string
    Unique 24-hexadecimal digit string that identifies the secret.
    createdAt String
    The date that the secret was created on. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    expiresAt String
    The date for the expiration of the secret. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    id String
    The provider-assigned unique ID for this managed resource.
    lastUsedAt String
    The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    maskedSecretValue String
    The masked Service Account secret.
    secret String
    The secret for the Service Account. It will be returned only the first time after creation.
    secretId String
    Unique 24-hexadecimal digit string that identifies the secret.
    createdAt string
    The date that the secret was created on. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    expiresAt string
    The date for the expiration of the secret. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    id string
    The provider-assigned unique ID for this managed resource.
    lastUsedAt string
    The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    maskedSecretValue string
    The masked Service Account secret.
    secret string
    The secret for the Service Account. It will be returned only the first time after creation.
    secretId string
    Unique 24-hexadecimal digit string that identifies the secret.
    created_at str
    The date that the secret was created on. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    expires_at str
    The date for the expiration of the secret. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    id str
    The provider-assigned unique ID for this managed resource.
    last_used_at str
    The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    masked_secret_value str
    The masked Service Account secret.
    secret str
    The secret for the Service Account. It will be returned only the first time after creation.
    secret_id str
    Unique 24-hexadecimal digit string that identifies the secret.
    createdAt String
    The date that the secret was created on. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    expiresAt String
    The date for the expiration of the secret. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    id String
    The provider-assigned unique ID for this managed resource.
    lastUsedAt String
    The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    maskedSecretValue String
    The masked Service Account secret.
    secret String
    The secret for the Service Account. It will be returned only the first time after creation.
    secretId String
    Unique 24-hexadecimal digit string that identifies the secret.

    Look up Existing ProjectMcpConfigSecret Resource

    Get an existing ProjectMcpConfigSecret resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ProjectMcpConfigSecretState, opts?: CustomResourceOptions): ProjectMcpConfigSecret
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            expires_at: Optional[str] = None,
            last_used_at: Optional[str] = None,
            masked_secret_value: Optional[str] = None,
            mcp_config_id: Optional[str] = None,
            project_id: Optional[str] = None,
            secret: Optional[str] = None,
            secret_expires_after_hours: Optional[int] = None,
            secret_id: Optional[str] = None) -> ProjectMcpConfigSecret
    func GetProjectMcpConfigSecret(ctx *Context, name string, id IDInput, state *ProjectMcpConfigSecretState, opts ...ResourceOption) (*ProjectMcpConfigSecret, error)
    public static ProjectMcpConfigSecret Get(string name, Input<string> id, ProjectMcpConfigSecretState? state, CustomResourceOptions? opts = null)
    public static ProjectMcpConfigSecret get(String name, Output<String> id, ProjectMcpConfigSecretState state, CustomResourceOptions options)
    resources:  _:    type: mongodbatlas:ProjectMcpConfigSecret    get:      id: ${id}
    import {
      to = mongodbatlas_project_mcp_config_secret.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CreatedAt string
    The date that the secret was created on. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    ExpiresAt string
    The date for the expiration of the secret. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    LastUsedAt string
    The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    MaskedSecretValue string
    The masked Service Account secret.
    McpConfigId string
    Unique identifier of the MCP configuration.
    ProjectId string
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    Secret string
    The secret for the Service Account. It will be returned only the first time after creation.
    SecretExpiresAfterHours int
    The expiration time of the new ingress Service Account secret, provided in hours. This attribute is required when creating the secret and cannot be updated later.
    SecretId string
    Unique 24-hexadecimal digit string that identifies the secret.
    CreatedAt string
    The date that the secret was created on. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    ExpiresAt string
    The date for the expiration of the secret. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    LastUsedAt string
    The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    MaskedSecretValue string
    The masked Service Account secret.
    McpConfigId string
    Unique identifier of the MCP configuration.
    ProjectId string
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    Secret string
    The secret for the Service Account. It will be returned only the first time after creation.
    SecretExpiresAfterHours int
    The expiration time of the new ingress Service Account secret, provided in hours. This attribute is required when creating the secret and cannot be updated later.
    SecretId string
    Unique 24-hexadecimal digit string that identifies the secret.
    created_at string
    The date that the secret was created on. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    expires_at string
    The date for the expiration of the secret. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    last_used_at string
    The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    masked_secret_value string
    The masked Service Account secret.
    mcp_config_id string
    Unique identifier of the MCP configuration.
    project_id string
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    secret string
    The secret for the Service Account. It will be returned only the first time after creation.
    secret_expires_after_hours number
    The expiration time of the new ingress Service Account secret, provided in hours. This attribute is required when creating the secret and cannot be updated later.
    secret_id string
    Unique 24-hexadecimal digit string that identifies the secret.
    createdAt String
    The date that the secret was created on. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    expiresAt String
    The date for the expiration of the secret. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    lastUsedAt String
    The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    maskedSecretValue String
    The masked Service Account secret.
    mcpConfigId String
    Unique identifier of the MCP configuration.
    projectId String
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    secret String
    The secret for the Service Account. It will be returned only the first time after creation.
    secretExpiresAfterHours Integer
    The expiration time of the new ingress Service Account secret, provided in hours. This attribute is required when creating the secret and cannot be updated later.
    secretId String
    Unique 24-hexadecimal digit string that identifies the secret.
    createdAt string
    The date that the secret was created on. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    expiresAt string
    The date for the expiration of the secret. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    lastUsedAt string
    The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    maskedSecretValue string
    The masked Service Account secret.
    mcpConfigId string
    Unique identifier of the MCP configuration.
    projectId string
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    secret string
    The secret for the Service Account. It will be returned only the first time after creation.
    secretExpiresAfterHours number
    The expiration time of the new ingress Service Account secret, provided in hours. This attribute is required when creating the secret and cannot be updated later.
    secretId string
    Unique 24-hexadecimal digit string that identifies the secret.
    created_at str
    The date that the secret was created on. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    expires_at str
    The date for the expiration of the secret. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    last_used_at str
    The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    masked_secret_value str
    The masked Service Account secret.
    mcp_config_id str
    Unique identifier of the MCP configuration.
    project_id str
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    secret str
    The secret for the Service Account. It will be returned only the first time after creation.
    secret_expires_after_hours int
    The expiration time of the new ingress Service Account secret, provided in hours. This attribute is required when creating the secret and cannot be updated later.
    secret_id str
    Unique 24-hexadecimal digit string that identifies the secret.
    createdAt String
    The date that the secret was created on. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    expiresAt String
    The date for the expiration of the secret. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    lastUsedAt String
    The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    maskedSecretValue String
    The masked Service Account secret.
    mcpConfigId String
    Unique identifier of the MCP configuration.
    projectId String
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    secret String
    The secret for the Service Account. It will be returned only the first time after creation.
    secretExpiresAfterHours Number
    The expiration time of the new ingress Service Account secret, provided in hours. This attribute is required when creating the secret and cannot be updated later.
    secretId String
    Unique 24-hexadecimal digit string that identifies the secret.

    Import

    Import the MCP Config Secret resource by using the Project ID, MCP Config ID, and Secret ID in the format PROJECT_ID/MCP_CONFIG_ID/SECRET_ID, e.g.

    $ pulumi import mongodbatlas:index/projectMcpConfigSecret:ProjectMcpConfigSecret test 6117ac2fe2a3d04ed27a987v/8423867e-394c-4f1e-9d81-32d323a1dd81/6a79adb34c91a97469c7fd1d
    

    For more information, see Create One Secret for One Project MCP Configuration in the MongoDB Atlas API documentation.

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    MongoDB Atlas pulumi/pulumi-mongodbatlas
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the mongodbatlas Terraform Provider.
    mongodbatlas logo mongodbatlas logo
    Viewing docs for MongoDB Atlas v4.16.0
    published on Thursday, Sep 17, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial