-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Dataplex data asset #16106
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
base: main
Are you sure you want to change the base?
Dataplex data asset #16106
Conversation
…odules into dataplex-data-products
|
Hello! I am a robot. Tests will require approval from a repository maintainer to run. Googlers: For automatic test runs see go/terraform-auto-test-runs. @rileykarson, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look. You can help make sure that review is quick by doing a self-review and by running impacted tests locally. |
|
@rileykarson This PR has been waiting for review for 3 weekdays. Please take a look! Use the label |
|
@GoogleCloudPlatform/terraform-team @rileykarson This PR has been waiting for review for 1 week. Please take a look! Use the label |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
Multiple resources addedThis PR adds multiple new resources: |
Tests analyticsTotal tests: 77 Click here to see the affected service packages
Action takenFound 4 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
🟢 Tests passed during RECORDING mode: 🟢 No issues found for passed tests after REPLAYING rerun. 🟢 All tests passed! |
| data_product_id = "{{index $.Vars "data_product_id"}}" | ||
| display_name = "terraform data product" | ||
|
|
||
| owner_emails = ["[email protected]"] |
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.
| owner_emails = ["terraform-test@google.com"] | |
| owner_emails = ["gterraformtestuser@gmail.com"] |
| # UTF-8 verification | ||
| description = "Updated with emojis 🚀 and brackets {test}" | ||
|
|
||
| owner_emails = ["[email protected]"] |
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.
| owner_emails = ["terraform-test@google.com"] | |
| owner_emails = ["gterraformtestuser@gmail.com"] |
| # - '{{data_product_id}}' | ||
| import_format: | ||
| - 'projects/{{project}}/locations/{{location}}/dataProducts/{{data_product_id}}' | ||
| - '{{data_product_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.
| - '{{data_product_id}}' |
location always needs to be provided, I think?
| api_name: 'name' | ||
| custom_flatten: 'templates/terraform/custom_flatten/name_from_self_link.tmpl' |
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.
| api_name: 'name' | |
| custom_flatten: 'templates/terraform/custom_flatten/name_from_self_link.tmpl' |
These can be removed due to url_param_only: true
| id_format: 'projects/{{project}}/locations/{{location}}/dataProducts/{{data_product_id}}/dataAssets/{{data_asset_id}}' | ||
| import_format: | ||
| - 'projects/{{project}}/locations/{{location}}/dataProducts/{{data_product_id}}/dataAssets/{{data_asset_id}}' | ||
| - '{{data_product_id}}/{{data_asset_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.
| - '{{data_product_id}}/{{data_asset_id}}' |
Same reasons as below
| api_name: 'name' | ||
| custom_flatten: 'templates/terraform/custom_flatten/name_from_self_link.tmpl' |
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.
| api_name: 'name' | |
| custom_flatten: 'templates/terraform/custom_flatten/name_from_self_link.tmpl' |
Same reasons as below
|
|
||
| --- | ||
| name: 'DataAsset' | ||
| description: | |
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.
Could you add references links here as well?
| data_asset_id = "{{index $.Vars "data_asset_id"}}" | ||
| resource = "//bigquery.googleapis.com/projects/${google_bigquery_dataset.example.project}/datasets/${google_bigquery_dataset.example.dataset_id}" | ||
|
|
||
| # NOTE: access_group_configs is omitted to bypass backend group validation |
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.
Could you elaborate on why this is needed? Internally would be fine.
This PR introduces support for the google_dataplex_data_asset resource in the google-beta provider.
This implementation allows for the declarative management of data assets within a Data Product, enabling publishers to curate and share cloud resources like BigQuery datasets.
Key features
Note
Stacked PR: This PR is built on top of the changes in the dataplex-data-products branch and is dependent on those changes being merged first.