Skip to content

Commit 809eb87

Browse files
committed
Merge branch 'CLOUDP-334161-service-accounts-dev' into CLOUDP-345764_credentials_hierarchy
* CLOUDP-334161-service-accounts-dev: chore: Remove all attributes in assume_role except role_arn (#3745) chore: Fix SA dev branch merge (#3744) chore: Fix cleanup GHA after SA changes (#3742) chore: Fixes backport release issues (#3734) chore: Support generation of singleton resources with no delete operation (#3736) # Conflicts: # internal/config/client.go # internal/config/transport_test.go # internal/provider/provider_sdk2.go # internal/service/organization/resource_organization.go # internal/service/organization/resource_organization_test.go # internal/testutil/acc/factory.go
2 parents eeb1d5f + 24a610e commit 809eb87

File tree

93 files changed

+706
-201
lines changed

Some content is hidden

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

93 files changed

+706
-201
lines changed

.github/templates/run-script-and-commit/action.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ inputs:
2828
description: "Path to the repository."
2929
default: ""
3030
required: false
31-
31+
branch:
32+
description: "Branch to checkout."
33+
default: ""
34+
required: false
3235
runs:
3336
using: "composite"
3437
steps:
@@ -37,6 +40,7 @@ runs:
3740
with:
3841
fetch-depth: 0
3942
token: ${{ inputs.apix_bot_pat }}
43+
ref: ${{ inputs.branch }}
4044

4145
- name: Set up Go
4246
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5

.github/workflows/acceptance-tests-runner.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,10 @@ env:
196196
TF_ACC: 1
197197
TF_LOG: ${{ vars.LOG_LEVEL }}
198198
ACCTEST_TIMEOUT: ${{ vars.ACCTEST_TIMEOUT }}
199-
# Only Migration tests are run when a specific previous provider version is set
200-
# If the name (regex) of the test is set, only that test is run
201-
ACCTEST_REGEX_RUN: ${{ inputs.test_name || inputs.provider_version == '' && '^Test(Acc|Mig)' || '^TestMig' }}
199+
# If the name (regex) of the test is set, only that test is run.
200+
# Don't run migration tests if using Service Accounts because previous provider versions don't support SA yet.
201+
# Only Migration tests are run when a specific previous provider version is set.
202+
ACCTEST_REGEX_RUN: ${{ inputs.test_name || inputs.use_sa && '^TestAcc' || inputs.provider_version == '' && '^Test(Acc|Mig)' || '^TestMig' }}
202203
MONGODB_ATLAS_BASE_URL: ${{ inputs.mongodb_atlas_base_url }}
203204
MONGODB_REALM_BASE_URL: ${{ inputs.mongodb_realm_base_url }}
204205
MONGODB_ATLAS_ORG_ID: ${{ inputs.mongodb_atlas_org_id }}
@@ -548,6 +549,7 @@ jobs:
548549
MONGODB_ATLAS_CLIENT_ID: ${{ secrets.mongodb_atlas_client_id }}
549550
MONGODB_ATLAS_CLIENT_SECRET: ${{ secrets.mongodb_atlas_client_secret }}
550551
MONGODB_ATLAS_LAST_VERSION: ${{ needs.get-provider-version.outputs.provider_version }}
552+
ACCTEST_REGEX_RUN: '^TestAcc' # Don't run migration tests because previous provider versions don't support SA.
551553
ACCTEST_PACKAGES: |
552554
./internal/service/alertconfiguration
553555
./internal/service/databaseuser

.github/workflows/release-v1.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ jobs:
6969
remote: https://svc-apix-bot:${{ secrets.APIX_BOT_PAT }}@github.com/${{ github.repository }}
7070
gpg_private_key: ${{ secrets.APIX_BOT_GPG_PRIVATE_KEY }}
7171
passphrase: ${{ secrets.APIX_BOT_PASSPHRASE }}
72+
branch: master-v1
7273

7374
update-changelog-header:
7475
needs:
@@ -93,6 +94,7 @@ jobs:
9394
remote: https://svc-apix-bot:${{ secrets.APIX_BOT_PAT }}@github.com/${{ github.repository }}
9495
gpg_private_key: ${{ secrets.APIX_BOT_GPG_PRIVATE_KEY }}
9596
passphrase: ${{ secrets.APIX_BOT_PASSPHRASE }}
97+
branch: master-v1
9698

9799
create-tag:
98100
runs-on: ubuntu-latest
@@ -241,3 +243,4 @@ jobs:
241243
remote: https://svc-apix-bot:${{ secrets.APIX_BOT_PAT }}@github.com/${{ github.repository }}
242244
gpg_private_key: ${{ secrets.APIX_BOT_GPG_PRIVATE_KEY }}
243245
passphrase: ${{ secrets.APIX_BOT_PASSPHRASE }}
246+
branch: master-v1

CHANGELOG.md

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

3+
BUG FIXES:
4+
5+
* resource/mongodbatlas_advanced_cluster: Allows upgrade from tenant and flex cluster to dedicated NVMe with backup enabled ([#3725](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/3725))
6+
37
## 1.41.1 (October 01, 2025)
48

59
BUG FIXES:
610

7-
* resource/mongodbatlas_advanced_cluster: Allows upgrade from tenant and flex cluster to dedicated NVMe with backup enabled ([#3725](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/3725))
11+
* provider: Fixes STS region resolution when using cross-region authentication ([#3718](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/3718))
812

913
## 2.0.1 (October 01, 2025)
1014

Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,16 @@ test: fmtcheck ## Run unit tests
4343
@$(eval export MONGODB_ATLAS_ORG_ID?=111111111111111111111111)
4444
@$(eval export MONGODB_ATLAS_PROJECT_ID?=111111111111111111111111)
4545
@$(eval export MONGODB_ATLAS_CLUSTER_NAME?=mocked-cluster)
46+
@$(eval export MONGODB_ATLAS_PUBLIC_KEY=dummy)
47+
@$(eval export MONGODB_ATLAS_PRIVATE_KEY=dummy)
48+
@$(eval export MONGODB_ATLAS_CLIENT_ID=)
49+
@$(eval export MONGODB_ATLAS_CLIENT_SECRET=)
50+
@$(eval export MONGODB_ATLAS_ACCESS_TOKEN=)
4651
go test ./... -timeout=120s -parallel=$(PARALLEL_GO_TEST) -race
4752

4853
.PHONY: testmact
4954
testmact: ## Run MacT tests (mocked acc tests)
50-
@$(eval ACCTEST_REGEX_RUN?=^TestAccMockable)
55+
@$(eval export ACCTEST_REGEX_RUN?=^TestAccMockable)
5156
@$(eval export HTTP_MOCKER_REPLAY?=true)
5257
@$(eval export HTTP_MOCKER_CAPTURE?=false)
5358
@$(eval export MONGODB_ATLAS_ORG_ID?=111111111111111111111111)
@@ -72,7 +77,7 @@ testmact-capture: ## Capture HTTP traffic for MacT tests
7277

7378
.PHONY: testacc
7479
testacc: fmtcheck ## Run acc & mig tests (acceptance & migration tests)
75-
@$(eval ACCTEST_REGEX_RUN?=^TestAcc)
80+
@$(eval export ACCTEST_REGEX_RUN?=^TestAcc)
7681
TF_ACC=1 go test $(ACCTEST_PACKAGES) -run '$(ACCTEST_REGEX_RUN)' -v -parallel $(PARALLEL_GO_TEST) $(TESTARGS) -timeout $(ACCTEST_TIMEOUT) -ldflags="$(LINKER_FLAGS)"
7782

7883
.PHONY: testaccgov

compliance/v1.41.1/ssdlc-compliance-1.41.1.md

Lines changed: 0 additions & 30 deletions
This file was deleted.

docs/data-sources/alert_configurations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ output "alert_output" {
3434
```
3535

3636
Refer to the following for a full example on using this data_source as a tool to import all resources:
37-
* [atlas-alert-configurations](https://github.com/mongodb/terraform-provider-mongodbatlas/tree/v1.41.1/examples/atlas-alert-configurations)
37+
* [atlas-alert-configurations](https://github.com/mongodb/terraform-provider-mongodbatlas/tree/v2.0.1/examples/atlas-alert-configurations)
3838

3939
## Argument Reference
4040

docs/data-sources/privatelink_endpoint.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ data "mongodbatlas_privatelink_endpoint" "test" {
2828
```
2929

3030
### Available complete examples
31-
- [Setup private connection to a MongoDB Atlas Cluster with AWS VPC](https://github.com/mongodb/terraform-provider-mongodbatlas/tree/v1.41.1/examples/mongodbatlas_privatelink_endpoint/aws/cluster)
31+
- [Setup private connection to a MongoDB Atlas Cluster with AWS VPC](https://github.com/mongodb/terraform-provider-mongodbatlas/tree/v2.0.1/examples/mongodbatlas_privatelink_endpoint/aws/cluster)
3232

3333
## Argument Reference
3434

docs/data-sources/privatelink_endpoint_service.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ data "mongodbatlas_privatelink_endpoint_service" "test" {
7878
```
7979

8080
### Available complete examples
81-
- [Setup private connection to a MongoDB Atlas Cluster with AWS VPC](https://github.com/mongodb/terraform-provider-mongodbatlas/tree/v1.41.1/examples/mongodbatlas_privatelink_endpoint/aws/cluster)
81+
- [Setup private connection to a MongoDB Atlas Cluster with AWS VPC](https://github.com/mongodb/terraform-provider-mongodbatlas/tree/v2.0.1/examples/mongodbatlas_privatelink_endpoint/aws/cluster)
8282

8383
## Argument Reference
8484

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ We ship binaries but do not prioritize fixes for the following operating system
296296
## Examples from MongoDB and the Community
297297

298298
<!-- NOTE: the below examples link is updated during the release process, when doing changes in the following sentence verify scripts/update-examples-reference-in-docs.sh is not impacted-->
299-
We have [example configurations](https://github.com/mongodb/terraform-provider-mongodbatlas/tree/v1.41.1/examples)
299+
We have [example configurations](https://github.com/mongodb/terraform-provider-mongodbatlas/tree/v2.0.1/examples)
300300
in our GitHub repo that will help both beginner and more advanced users.
301301

302302
Have a good example you've created and want to share?

0 commit comments

Comments
 (0)