feat: Service Account CloudFormation Resource#1525
Merged
rakhul-mongo merged 10 commits intomasterfrom Jan 29, 2026
Merged
Conversation
aa8bf31 to
fcb474a
Compare
4305df7 to
4f6bac5
Compare
4f6bac5 to
11f2176
Compare
oarbusi
approved these changes
Jan 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes
Added new resource Service Account:
Resource Configuration:
The Service Account resource enables you to create and manage service accounts at the organization level in MongoDB Atlas. Service accounts provide programmatic access to Atlas resources and are essential for automation, CI/CD pipelines, infrastructure as code, and service-to-service authentication.
Required Properties:
OrgId: Organization identifier (24-hexadecimal characters)Name: Human-readable name for the service accountDescription: Description of the service account's purposeRoles: Array of organization-level roles (minimum 1 role required)SecretExpiresAfterHours: Expiration time for the secret in hours (minimum: 1)Optional Properties:
Profile: AWS Secrets Manager profile for Atlas credentials (default: "default")Read-Only Properties:
ClientId: Unique client identifier for the service account (generated on create)CreatedAt: Timestamp when the service account was created (ISO 8601 format)Secrets: Array of secrets associated with the service accountId: Unique identifier of the secretCreatedAt: When the secret was createdExpiresAt: When the secret expiresLastUsedAt: When the secret was last used (if applicable)MaskedSecretValue: Masked representation of the secret (e.g., "****abc123")Secret: Write-only - Only returned on create, never in read/update/list operationsCreate-Only Properties:
OrgId,Profile,SecretExpiresAfterHours: Cannot be changed after creationConfiguration Examples:
Service Account:
cfn testing:
stack testing:
Atlas - After Creation
Jira ticket: CLOUDP-369799
Please include a summary of the fix/feature/change, including any relevant motivation and context.
Link to any related issue(s):
Type of change:
expected)
Manual QA performed:
Required Checklist:
make fmtand formatted my codeworks in Atlas
Further comments