published on Thursday, Sep 17, 2026 by Pulumi
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:
- Mcp
Config stringId - Unique identifier of the MCP configuration.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - Secret
Expires intAfter Hours - 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 stringId - Unique identifier of the MCP configuration.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - Secret
Expires intAfter Hours - 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_ stringid - Unique identifier of the MCP configuration.
- project_
id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - secret_
expires_ numberafter_ hours - 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 StringId - Unique identifier of the MCP configuration.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - secret
Expires IntegerAfter Hours - 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 stringId - Unique identifier of the MCP configuration.
- project
Id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - secret
Expires numberAfter Hours - 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_ strid - Unique identifier of the MCP configuration.
- project_
id str - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - secret_
expires_ intafter_ hours - 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 StringId - Unique identifier of the MCP configuration.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - secret
Expires NumberAfter Hours - 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:
- 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 stringAt - The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- Masked
Secret stringValue - 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.
- 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 stringAt - The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- Masked
Secret stringValue - 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.
- 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_ stringat - The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- masked_
secret_ stringvalue - 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.
- 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 StringAt - The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- masked
Secret StringValue - 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.
- 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 stringAt - The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- masked
Secret stringValue - 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.
- 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_ strat - The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- masked_
secret_ strvalue - 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.
- 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 StringAt - The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- masked
Secret StringValue - 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.
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) -> ProjectMcpConfigSecretfunc 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.
- 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 stringAt - The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- Masked
Secret stringValue - The masked Service Account secret.
- Mcp
Config stringId - Unique identifier of the MCP configuration.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - Secret string
- The secret for the Service Account. It will be returned only the first time after creation.
- Secret
Expires intAfter Hours - 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.
- 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 stringAt - The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- Masked
Secret stringValue - The masked Service Account secret.
- Mcp
Config stringId - Unique identifier of the MCP configuration.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - Secret string
- The secret for the Service Account. It will be returned only the first time after creation.
- Secret
Expires intAfter Hours - 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.
- 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_ stringat - The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- masked_
secret_ stringvalue - The masked Service Account secret.
- mcp_
config_ stringid - Unique identifier of the MCP configuration.
- project_
id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - secret string
- The secret for the Service Account. It will be returned only the first time after creation.
- secret_
expires_ numberafter_ hours - 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.
- 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 StringAt - The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- masked
Secret StringValue - The masked Service Account secret.
- mcp
Config StringId - Unique identifier of the MCP configuration.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - secret String
- The secret for the Service Account. It will be returned only the first time after creation.
- secret
Expires IntegerAfter Hours - 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.
- 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 stringAt - The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- masked
Secret stringValue - The masked Service Account secret.
- mcp
Config stringId - Unique identifier of the MCP configuration.
- project
Id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - secret string
- The secret for the Service Account. It will be returned only the first time after creation.
- secret
Expires numberAfter Hours - 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.
- 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_ strat - The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- masked_
secret_ strvalue - The masked Service Account secret.
- mcp_
config_ strid - Unique identifier of the MCP configuration.
- project_
id str - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - secret str
- The secret for the Service Account. It will be returned only the first time after creation.
- secret_
expires_ intafter_ hours - 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.
- 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 StringAt - The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- masked
Secret StringValue - The masked Service Account secret.
- mcp
Config StringId - Unique identifier of the MCP configuration.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - secret String
- The secret for the Service Account. It will be returned only the first time after creation.
- secret
Expires NumberAfter Hours - 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.
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
mongodbatlasTerraform Provider.
published on Thursday, Sep 17, 2026 by Pulumi