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

[PLAT-73750] Add TF for GCP PSC workspace. #2090

Merged
merged 4 commits into from
Mar 13, 2023

Conversation

jessiedu-db
Copy link
Contributor

@jessiedu-db jessiedu-db commented Mar 8, 2023

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Mar 8, 2023

Codecov Report

Merging #2090 (88e9f27) into master (9ca86a2) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2090   +/-   ##
=======================================
  Coverage   89.68%   89.68%           
=======================================
  Files         136      136           
  Lines       11105    11107    +2     
=======================================
+ Hits         9959     9961    +2     
  Misses        741      741           
  Partials      405      405           
Impacted Files Coverage Δ
mws/resource_mws_workspaces.go 87.83% <100.00%> (+0.04%) ⬆️

@@ -300,26 +300,29 @@ output "databricks_token" {
}
```

In order to create a [Databricks Workspace that leverages GCP Private Service Connect](https://docs.gcp.databricks.com/administration-guide/cloud-configurations/gcp/private-service-connect.html) please ensure that you have read and understood the [Enable Private Service Connect](https://docs.gcp.databricks.com/administration-guide/cloud-configurations/gcp/private-service-connect.html) documentation and then customise the example above with the relevant examples from [mws_vpc_endpoint](mws_vpc_endpoint.md), [mws_private_access_settings](mws_private_access_settings.md) and [mws_networks](mws_networks.md).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doc block should be added to "Creating a Databricks on GCP workspace" section instead of "Creating a Databricks on GCP workspace with Databricks-Managed VPC" section.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, thanks!

go.mod Outdated Show resolved Hide resolved
go.sum Outdated Show resolved Hide resolved
@@ -122,6 +122,9 @@ func (w *Workspace) MarshalJSON() ([]byte, error) {
if w.NetworkID != "" {
workspaceCreationRequest["network_id"] = w.NetworkID
}
if w.PrivateAccessSettingsID != "" {
workspaceCreationRequest["private_access_settings_id"] = w.PrivateAccessSettingsID
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this for both AWS & GCP or for gcp only?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This field is for both AWS & GCP.

mws/resource_mws_workspaces_test.go Show resolved Hide resolved
@jessiedu-db jessiedu-db force-pushed the PLAT-73750-3 branch 2 times, most recently from 51e5eda to 595e699 Compare March 10, 2023 22:01
Copy link
Contributor Author

@jessiedu-db jessiedu-db left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dummy.

go.mod Outdated Show resolved Hide resolved
go.sum Outdated Show resolved Hide resolved
@@ -122,6 +122,9 @@ func (w *Workspace) MarshalJSON() ([]byte, error) {
if w.NetworkID != "" {
workspaceCreationRequest["network_id"] = w.NetworkID
}
if w.PrivateAccessSettingsID != "" {
workspaceCreationRequest["private_access_settings_id"] = w.PrivateAccessSettingsID
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This field is for both AWS & GCP.

@nfx nfx merged commit d950dcc into databricks:master Mar 13, 2023
@nfx nfx mentioned this pull request Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants