Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"reflect"
"strings"

"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"

"github.com/aws-cloudformation/cloudformation-cli-go-plugin/cfn/handler"
"github.com/aws/aws-sdk-go-v2/aws"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (

"github.com/mongodb/mongodbatlas-cloudformation-resources/alert-configuration/cmd/resource"
"github.com/stretchr/testify/assert"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"
)

func TestConvertToMongoModel_ClearsAtlasReturnedThreshold(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (

"github.com/aws-cloudformation/cloudformation-cli-go-plugin/cfn/handler"
"github.com/aws/aws-sdk-go-v2/service/cloudformation/types"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"

"github.com/mongodb/mongodbatlas-cloudformation-resources/util"
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/constants"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package resource

import (
"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"

"github.com/mongodb/mongodbatlas-cloudformation-resources/util"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"github.com/mongodb/mongodbatlas-cloudformation-resources/backup-compliance-policy/cmd/resource"
"github.com/mongodb/mongodbatlas-cloudformation-resources/util"
"github.com/stretchr/testify/assert"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"
)

func TestPolicyItemConversions(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion cfn-resources/database-user/cmd/resource/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/logger"
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/progressevent"
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/validator"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"
)

var CreateRequiredFields = []string{constants.DatabaseName, constants.ProjectID, constants.Roles, constants.Username}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"math/big"
"strconv"

"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"

"github.com/aws-cloudformation/cloudformation-cli-go-plugin/cfn/handler"
"github.com/aws/aws-sdk-go-v2/aws"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"fmt"
"net/http"

"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"

"github.com/aws-cloudformation/cloudformation-cli-go-plugin/cfn/handler"
"github.com/aws/aws-sdk-go-v2/aws"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (

"github.com/aws-cloudformation/cloudformation-cli-go-plugin/cfn/handler"
"github.com/aws/aws-sdk-go-v2/service/cloudformation/types"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"

"github.com/mongodb/mongodbatlas-cloudformation-resources/util"
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/progressevent"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package resource

import (
"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"

"github.com/mongodb/mongodbatlas-cloudformation-resources/util"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (

"github.com/mongodb/mongodbatlas-cloudformation-resources/federated-settings-identity-provider/cmd/resource"
"github.com/stretchr/testify/assert"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"
)

const (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/constants"
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/progressevent"
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/validator"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"
)

var CreateRequiredFields = []string{constants.FederationSettingsID, constants.OrgID, constants.ExternalGroupName, constants.RoleAssignments}
Expand Down
2 changes: 1 addition & 1 deletion cfn-resources/flex-cluster/cmd/resource/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/validator"

"github.com/aws-cloudformation/cloudformation-cli-go-plugin/cfn/handler"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"
)

const callBackSeconds = 10
Expand Down
2 changes: 1 addition & 1 deletion cfn-resources/flex-cluster/cmd/resource/share.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"github.com/aws-cloudformation/cloudformation-cli-go-plugin/cfn/handler"
"github.com/mongodb/mongodbatlas-cloudformation-resources/util"
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/constants"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"
)

var callbackContext = map[string]any{"callbackFlex": true}
Expand Down
2 changes: 1 addition & 1 deletion cfn-resources/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ require (
github.com/tidwall/pretty v1.2.1
go.mongodb.org/atlas-sdk/v20231115002 v20231115002.1.0
go.mongodb.org/atlas-sdk/v20231115014 v20231115014.0.0
go.mongodb.org/atlas-sdk/v20250312013 v20250312013.2.0
go.mongodb.org/atlas-sdk/v20250312020 v20250312020.1.0
)

require (
Expand Down
4 changes: 2 additions & 2 deletions cfn-resources/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ go.mongodb.org/atlas v0.38.0 h1:zfwymq20GqivGwxPZfypfUDry+WwMGVui97z1d8V4bU=
go.mongodb.org/atlas v0.38.0/go.mod h1:DJYtM+vsEpPEMSkQzJnFHrT0sP7ev6cseZc/GGjJYG8=
go.mongodb.org/atlas-sdk/v20231115002 v20231115002.1.0 h1:x6nnq2pUIP9mN4WLD4/EseBzV88OmSgexxYchPilgno=
go.mongodb.org/atlas-sdk/v20231115002 v20231115002.1.0/go.mod h1:el7cm23kEiiw72HAYimhNweKqp/ubHsNJk+Mk30yJhM=
go.mongodb.org/atlas-sdk/v20250312013 v20250312013.2.0 h1:RclCsea9qDsYn6eeHdguc/uB4MrT5+Xmm+Y1DdMV6SE=
go.mongodb.org/atlas-sdk/v20250312013 v20250312013.2.0/go.mod h1:dua7g/y3zGGBgnvMdXV2BjUVkRI4kJfGnYXMlje0Edc=
go.mongodb.org/atlas-sdk/v20250312020 v20250312020.1.0 h1:Ba+iX5yraZiwXGs6mCyjWxMDbs5bC7kLGYpHu3R8RGM=
go.mongodb.org/atlas-sdk/v20250312020 v20250312020.1.0/go.mod h1:8OGHqMpalr/OTRHA9kjSSg2EKfig5lrNEeNaVYphYYo=
golang.org/x/oauth2 v0.36.0 h1:peZ/1z27fi9hUOFCAZaHyrpWG5lwe0RJEEEeH0ThlIs=
golang.org/x/oauth2 v0.36.0/go.mod h1:YDBUJMTkDnJS+A4BP4eZBjCqtokkg1hODuPjwiGPO7Q=
golang.org/x/text v0.38.0 h1:sXmwo9DwP3OK9EZ7PqAdaooSGozfl/3a6/xJcbzPRhE=
Expand Down
2 changes: 1 addition & 1 deletion cfn-resources/log-integration/cmd/resource/mappings.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

package resource

import "go.mongodb.org/atlas-sdk/v20250312013/admin"
import "go.mongodb.org/atlas-sdk/v20250312020/admin"

func NewLogIntegrationCreateRequest(model *Model) *admin.S3LogIntegrationRequest {
if model == nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"github.com/mongodb/mongodbatlas-cloudformation-resources/util"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"
)

func TestNewLogIntegrationCreateRequest(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/logger"
progress_events "github.com/mongodb/mongodbatlas-cloudformation-resources/util/progressevent"
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/validator"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"
)

var RequiredFields = []string{constants.ProjectID}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"github.com/mongodb/mongodbatlas-cloudformation-resources/util"
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/constants"
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/progressevent"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"
)

func HandleCreate(req *handler.Request, client *util.MongoDBClient, model *Model) handler.ProgressEvent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"github.com/mongodb/mongodbatlas-cloudformation-resources/util"
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/constants"
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/validator"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cfn-resources/organization/cmd/resource/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"net/http"
"time"

"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"

"github.com/aws-cloudformation/cloudformation-cli-go-plugin/cfn/handler"
"github.com/aws/aws-sdk-go-v2/service/cloudformation/types"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"net/http"
"strings"

"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"

"github.com/aws-cloudformation/cloudformation-cli-go-plugin/cfn/handler"
"github.com/aws/aws-sdk-go-v2/aws"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/constants"
progress_events "github.com/mongodb/mongodbatlas-cloudformation-resources/util/progressevent"
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/serviceaccountaccesslist"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"
)

func getCIDROrIP(model *Model) string {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ package resource

import (
"github.com/mongodb/mongodbatlas-cloudformation-resources/util"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"
)

func UpdateModelFromEntry(model *Model, entry *admin.ServiceAccountIPAccessListEntry) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (

"github.com/mongodb/mongodbatlas-cloudformation-resources/project-service-account-access-list-entry/cmd/resource"
"github.com/stretchr/testify/assert"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"
)

func TestUpdateModelFromEntry(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"github.com/mongodb/mongodbatlas-cloudformation-resources/util"
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/constants"
progress_events "github.com/mongodb/mongodbatlas-cloudformation-resources/util/progressevent"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"
)

func handleCreate(client *util.MongoDBClient, model *Model) handler.ProgressEvent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ package resource

import (
"github.com/mongodb/mongodbatlas-cloudformation-resources/util"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"
)

func UpdateModelFromSecret(model *Model, secret *admin.ServiceAccountSecret) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (

"github.com/mongodb/mongodbatlas-cloudformation-resources/project-service-account-secret/cmd/resource"
"github.com/stretchr/testify/assert"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"
)

func TestUpdateModelFromSecret(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"fmt"
"net/http"

"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"

"github.com/aws-cloudformation/cloudformation-cli-go-plugin/cfn/handler"
"github.com/aws/aws-sdk-go-v2/service/cloudformation/types"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"fmt"
"sort"

"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"

"github.com/mongodb/mongodbatlas-cloudformation-resources/util"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"testing"
"time"

"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"

"github.com/mongodb/mongodbatlas-cloudformation-resources/project-service-account/cmd/resource"
"github.com/stretchr/testify/assert"
Expand Down
2 changes: 1 addition & 1 deletion cfn-resources/resource-policy/cmd/resource/mappings.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package resource

import (
"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"

"github.com/mongodb/mongodbatlas-cloudformation-resources/util"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package resource_test
import (
"testing"

"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"

"github.com/mongodb/mongodbatlas-cloudformation-resources/resource-policy/cmd/resource"
"github.com/stretchr/testify/assert"
Expand Down
2 changes: 1 addition & 1 deletion cfn-resources/resource-policy/cmd/resource/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"fmt"
"net/http"

"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"

"github.com/aws-cloudformation/cloudformation-cli-go-plugin/cfn/handler"
"github.com/aws/aws-sdk-go-v2/service/cloudformation/types"
Expand Down
2 changes: 1 addition & 1 deletion cfn-resources/search-deployment/cmd/resource/mappings.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

package resource

import "go.mongodb.org/atlas-sdk/v20250312013/admin"
import "go.mongodb.org/atlas-sdk/v20250312020/admin"

func NewCFNSearchDeployment(prevModel *Model, apiResp *admin.ApiSearchDeploymentResponse) Model {
respSpecs := apiResp.GetSpecs()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (

"github.com/mongodb/mongodbatlas-cloudformation-resources/search-deployment/cmd/resource"
"github.com/stretchr/testify/assert"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"
)

type sdkToCFNModelTestCase struct {
Expand Down
2 changes: 1 addition & 1 deletion cfn-resources/search-deployment/cmd/resource/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"net/http"
"strings"

"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"

"github.com/aws-cloudformation/cloudformation-cli-go-plugin/cfn/handler"
"github.com/aws/aws-sdk-go-v2/service/cloudformation/types"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"github.com/mongodb/mongodbatlas-cloudformation-resources/util"
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/constants"
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/progressevent"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"
)

func HandleStateTransition(connV2 admin.APIClient, currentModel *Model, targetState string) handler.ProgressEvent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/constants"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312013/mockadmin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"
"go.mongodb.org/atlas-sdk/v20250312020/mockadmin"
)

type stateTransitionTestCase struct {
Expand Down
2 changes: 1 addition & 1 deletion cfn-resources/search-index/cmd/resource/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/progressevent"
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/validator"
"github.com/spf13/cast"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"
)

func setup() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/constants"
progress_events "github.com/mongodb/mongodbatlas-cloudformation-resources/util/progressevent"
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/serviceaccountaccesslist"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"
)

func getCIDROrIP(model *Model) string {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ package resource

import (
"github.com/mongodb/mongodbatlas-cloudformation-resources/util"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"
)

func UpdateModelFromEntry(model *Model, entry *admin.ServiceAccountIPAccessListEntry) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (

"github.com/mongodb/mongodbatlas-cloudformation-resources/service-account-access-list-entry/cmd/resource"
"github.com/stretchr/testify/assert"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312020/admin"
)

func TestUpdateModelFromEntry(t *testing.T) {
Expand Down
Loading
Loading