Skip to content

Commit

Permalink
deprecate: marking cloud_provider_access resource and data source as …
Browse files Browse the repository at this point in the history
…deprecated
  • Loading branch information
AgustinBettati committed Jul 28, 2023
1 parent 23f9757 commit e110bac
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
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"),
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"),
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.

# 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

0 comments on commit e110bac

Please sign in to comment.