Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecate: marking cloud_provider_access resource and data source as deprecated #1355

Merged
merged 2 commits into from
Jul 31, 2023
Merged
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 @@ -16,7 +16,8 @@ const (

func dataSourceMongoDBAtlasCloudProviderAccessList() *schema.Resource {
return &schema.Resource{
ReadContext: dataSourceMongoDBAtlasCloudProviderAccessRead,
ReadContext: dataSourceMongoDBAtlasCloudProviderAccessRead,
DeprecationMessage: fmt.Sprintf(DeprecationMessage, "v1.14.0", "mongodbatlas_cloud_provider_access_setup"),
Schema: map[string]*schema.Schema{
"project_id": {
Type: schema.TypeString,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func resourceMongoDBAtlasCloudProviderAccess() *schema.Resource {
Importer: &schema.ResourceImporter{
StateContext: resourceMongoDBAtlasCloudProviderAccessImportState,
},
DeprecationMessage: fmt.Sprintf(DeprecationMessage, "v1.14.0", "mongodbatlas_cloud_provider_access_setup and mongodbatlas_cloud_provider_access_authorization"),
Schema: map[string]*schema.Schema{
"project_id": {
Type: schema.TypeString,
Expand Down
2 changes: 2 additions & 0 deletions website/docs/d/cloud_provider_access.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ description: |-
Allows you to get the list of cloud provider access roles
---

**WARNING:** The data source `mongodbatlas_cloud_provider_access` is deprecated and will be removed in version v1.14.0, use the data source `mongodbatlas_cloud_provider_access_setup` instead.
AgustinBettati marked this conversation as resolved.
Show resolved Hide resolved

# Data Source: mongodbatlas_cloud_provider_access

`mongodbatlas_cloud_provider_access` allows you to get the list of cloud provider access roles, currently only AWS is supported.
Expand Down
3 changes: 3 additions & 0 deletions website/docs/r/cloud_provider_access.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ description: |-
The Terraform MongoDB Atlas Provider offers two either-or/mutually exclusive paths to perform an authorization for a cloud provider role -

* A Single Resource path: using the `mongodbatlas_cloud_provider_access` that at provision time sets up all the required configuration for a given provider, then with a subsequent update it can perform the authorize of the role. Note this path requires two `terraform apply` commands, once for setup and once for auth.
**WARNING:** The resource `mongodbatlas_cloud_provider_access` is deprecated and will be removed in version v1.14.0, use the Two Resource path instead.

* A Two Resource path: consisting of `mongodbatlas_cloud_provider_access_setup` and `mongodbatlas_cloud_provider_access_authorization`. The first resource, `mongodbatlas_cloud_provider_access_setup`, only generates
the initial configuration (create, delete operations). The second resource, `mongodbatlas_cloud_provider_access_authorization`, helps to perform the authorization using the role_id of the first resource. This path is helpful in a multi-provider Terraform file, and allows for a single and decoupled apply. See example of this Two Resource path option with AWS Cloud [here](https://github.com/mongodb/terraform-provider-mongodbatlas/tree/master/examples/atlas-cloud-provider-access/aws).
Expand All @@ -19,6 +20,8 @@ the initial configuration (create, delete operations). The second resource, `mon

## mongodbatlas_cloud_provider_access

**WARNING:** The resource `mongodbatlas_cloud_provider_access` is deprecated and will be removed in version v1.14.0, use the Two Resource path instead.

`mongodbatlas_cloud_provider_access` Allows you to register and authorize AWS IAM roles in Atlas. This is the resource to use for the single resource path described above.

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