Skip to content

Commit c46d587

Browse files
Merge remote-tracking branch 'origin/master' into CLOUDP-320243-dev-2.0.0
2 parents 5e5d02b + 1179b58 commit c46d587

File tree

353 files changed

+1807
-869
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

353 files changed

+1807
-869
lines changed

.changelog/3636.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
```release-note:enhancement
2+
resource/mongodbatlas_encryption_at_rest: Supports role_id in google_cloud_kms_config
3+
```
4+
5+
```release-note:enhancement
6+
data-source/mongodbatlas_encryption_at_rest: Supports role_id in google_cloud_kms_config
7+
```

.changelog/3637.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
```release-note:enhancement
2+
resource/mongodbatlas_cloud_provider_access_setup: Adds support for GCP as a Cloud Provider.
3+
```
4+
5+
```release-note:enhancement
6+
data-source/mongodbatlas_cloud_provider_access_setup: Adds support for GCP as a Cloud Provider.
7+
```

.changelog/3639.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
resource/mongodbatlas_cloud_provider_access_authorization: Supports GCP cloud provider
3+
```

.changelog/3644.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
resource/mongodbatlas_cloud_provider_access_setup: Adds long running operation support for GCP
3+
```

.changelog/3646.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
resource/mongodbatlas_cloud_provider_access_authorization: Changes to `project_id` or `role_id` will now result in the destruction and recreation of the authorization resource
3+
```

.github/workflows/code-health.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
- name: golangci-lint
5656
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9
5757
with:
58-
version: v2.3.1 # Also update GOLANGCI_VERSION variable in GNUmakefile when updating this version
58+
version: v2.4.0 # Also update GOLANGCI_VERSION variable in GNUmakefile when updating this version
5959
- name: actionlint
6060
run: |
6161
make tools

.github/workflows/pull-request-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
permissions:
1818
pull-requests: write # Needed by sticky-pull-request-comment
1919
steps:
20-
- uses: amannn/action-semantic-pull-request@7f33ba792281b034f64e96f4c0b5496782dd3b37
20+
- uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50
2121
id: lint_pr_title
2222
env:
2323
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
## (Unreleased)
22

3+
ENHANCEMENTS:
4+
5+
* data-source/mongodbatlas_cloud_provider_access_setup: Adds support for GCP as a Cloud Provider. ([#3637](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/3637))
6+
* data-source/mongodbatlas_encryption_at_rest: Supports role_id in google_cloud_kms_config ([#3636](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/3636))
7+
* resource/mongodbatlas_cloud_provider_access_authorization: Changes to `project_id` or `role_id` will now result in the destruction and recreation of the authorization resource ([#3646](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/3646))
8+
* resource/mongodbatlas_cloud_provider_access_authorization: Supports GCP cloud provider ([#3639](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/3639))
9+
* resource/mongodbatlas_cloud_provider_access_setup: Adds long running operation support for GCP ([#3644](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/3644))
10+
* resource/mongodbatlas_cloud_provider_access_setup: Adds support for GCP as a Cloud Provider. ([#3637](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/3637))
11+
* resource/mongodbatlas_encryption_at_rest: Supports role_id in google_cloud_kms_config ([#3636](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/3636))
12+
313
## 1.40.0 (August 21, 2025)
414

515
ENHANCEMENTS:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ GITTAG=$(shell git describe --always --tags)
1616
VERSION=$(GITTAG:v%=%)
1717
LINKER_FLAGS=-s -w -X 'github.com/mongodb/terraform-provider-mongodbatlas/version.ProviderVersion=${VERSION}'
1818

19-
GOLANGCI_VERSION=v2.3.1 # Also update golangci-lint GH action in code-health.yml when updating this version
19+
GOLANGCI_VERSION=v2.4.0 # Also update golangci-lint GH action in code-health.yml when updating this version
2020

2121
export PATH := $(shell go env GOPATH)/bin:$(PATH)
2222
export SHELL := env PATH=$(PATH) /bin/bash

docs/data-sources/cloud_provider_access_setup.md

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ subcategory: "Cloud Provider Access"
44

55
# Data Source: mongodbatlas_cloud_provider_access_setup
66

7-
`mongodbatlas_cloud_provider_access_setup` allows you to get a single role for a provider access role setup, currently only AWS and Azure are supported.
7+
`mongodbatlas_cloud_provider_access_setup` allows you to get a single role for a provider access role setup. Supported providers: AWS, AZURE and GCP.
88

99
-> **NOTE:** Groups and projects are synonymous terms. You may find `groupId` in the official documentation.
1010

@@ -40,27 +40,43 @@ data "mongodbatlas_cloud_provider_access_setup" "single_setup" {
4040
role_id = mongodbatlas_cloud_provider_access_setup.test_role.role_id
4141
}
4242
```
43+
44+
## Example Usage with GCP
45+
46+
```terraform
47+
resource "mongodbatlas_cloud_provider_access_setup" "test_role" {
48+
project_id = "64259ee860c43338194b0f8e"
49+
provider_name = "GCP"
50+
}
51+
52+
data "mongodbatlas_cloud_provider_access_setup" "single_setup" {
53+
project_id = mongodbatlas_cloud_provider_access_setup.test_role.project_id
54+
provider_name = mongodbatlas_cloud_provider_access_setup.test_role.provider_name
55+
role_id = mongodbatlas_cloud_provider_access_setup.test_role.role_id
56+
}
57+
```
58+
4359
## Argument Reference
4460

4561
* `project_id` - (Required) The unique ID for the project to get all Cloud Provider Access
46-
* `provider_name` - (Required) cloud provider name, currently only AWS is supported
47-
* `role_id` - (Required) unique role id among all the aws roles provided by mongodb atlas
62+
* `provider_name` - (Required) cloud provider name. Supported values: `AWS`, `AZURE`, and `GCP`.
63+
* `role_id` - (Required) unique role id among all the roles provided by MongoDB Atlas.
4864

4965
## Attributes Reference
5066

5167
In addition to all arguments above, the following attributes are exported:
5268

5369
* `id` - Autogenerated Unique ID for this data source.
54-
* `aws` - aws related role information
55-
* `atlas_assumed_role_external_id` - Unique external ID Atlas uses when assuming the IAM role in your AWS account.
56-
* `atlas_aws_account_arn` - ARN associated with the Atlas AWS account used to assume IAM roles in your AWS account.
5770
* `aws_config` - aws related role information
5871
* `atlas_assumed_role_external_id` - Unique external ID Atlas uses when assuming the IAM role in your AWS account.
5972
* `atlas_aws_account_arn` - ARN associated with the Atlas AWS account used to assume IAM roles in your AWS account.
6073
* `azure_config` - azure related configurations
6174
* `atlas_azure_app_id` - Azure Active Directory Application ID of Atlas.
6275
* `service_principal_id`- UUID string that identifies the Azure Service Principal.
6376
* `tenant_id` - UUID String that identifies the Azure Active Directory Tenant ID.
77+
* `gcp_config` - gcp related configurations
78+
* `status` - The status of the GCP cloud provider access setup. See [MongoDB Atlas API](https://www.mongodb.com/docs/api/doc/atlas-admin-api-v2/operation/operation-getgroupcloudprovideraccess#operation-getgroupcloudprovideraccess-200-body-application-vnd-atlas-2023-01-01-json-gcp-object-status).
79+
* `service_account_for_atlas` - The GCP service account email that Atlas uses.
6480
* `created_date` - Date on which this role was created.
6581
* `last_updated_date` - Date and time when this Azure Service Principal was last updated. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
6682

0 commit comments

Comments
 (0)