-
Notifications
You must be signed in to change notification settings - Fork 1
feat: Converts data sources #24
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
data "mongodbatlas_cluster" "singular" { | ||
# data source content is kep, only data source type is changed - singular | ||
project_id = mongodbatlas_advanced_cluster.example.project_id | ||
name = mongodbatlas_advanced_cluster.example.name | ||
depends_on = [mongodbatlas_privatelink_endpoint_service.example_endpoint] | ||
} | ||
|
||
data "mongodbatlas_clusters" "plural" { | ||
# data source content is kep, only data source type is changed - plural | ||
project_id = mongodbatlas_advanced_cluster.example.project_id | ||
} | ||
|
||
data "mongodbatlas_advanced_cluster" "adv_singular" { | ||
# adv_cluster is not changed - adv_singular | ||
project_id = mongodbatlas_advanced_cluster.example.project_id | ||
name = mongodbatlas_advanced_cluster.example.name | ||
} | ||
|
||
data "mongodbatlas_advanced_cluster" "adv_plural" { | ||
# adv_cluster is not changed - adv_plural | ||
project_id = mongodbatlas_advanced_cluster.example.project_id | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
data "mongodbatlas_advanced_cluster" "singular" { | ||
# data source content is kep, only data source type is changed - singular | ||
project_id = mongodbatlas_advanced_cluster.example.project_id | ||
name = mongodbatlas_advanced_cluster.example.name | ||
depends_on = [mongodbatlas_privatelink_endpoint_service.example_endpoint] | ||
|
||
# Generated by atlas-cli-plugin-terraform. | ||
# Please confirm that all references to this resource are updated. | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should we include There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes we should because eventually in 2.0 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. correct, added this into the v2 release doc as well There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. great point, added here: 9297c5f |
||
|
||
data "mongodbatlas_advanced_clusters" "plural" { | ||
# data source content is kep, only data source type is changed - plural | ||
project_id = mongodbatlas_advanced_cluster.example.project_id | ||
|
||
# Generated by atlas-cli-plugin-terraform. | ||
# Please confirm that all references to this resource are updated. | ||
} | ||
|
||
data "mongodbatlas_advanced_cluster" "adv_singular" { | ||
# adv_cluster is not changed - adv_singular | ||
project_id = mongodbatlas_advanced_cluster.example.project_id | ||
name = mongodbatlas_advanced_cluster.example.name | ||
} | ||
|
||
data "mongodbatlas_advanced_cluster" "adv_plural" { | ||
# adv_cluster is not changed - adv_plural | ||
project_id = mongodbatlas_advanced_cluster.example.project_id | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: the
resource
variable name confused me here, this would be a block which can be a resource or data source right?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, changed here: b1d2a2b