From 6a9e866a56d6255492ef19dce7ad5cc206ed1daa Mon Sep 17 00:00:00 2001 From: Ricardo Ferraz Leal Date: Wed, 30 Nov 2022 14:59:00 -0500 Subject: [PATCH] chore: added update metodas so we can run it with terraform --- .gitignore | 2 ++ cmd/debug/readme.md | 7 ++----- .../services/mysql/mysql_configuration_set_resource.go | 1 + .../postgres/postgresql_configuration_set_resource.go | 1 + 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 78dcda932f313..3680661571d21 100644 --- a/.gitignore +++ b/.gitignore @@ -50,3 +50,5 @@ tf.zip # do not upload secrets .env +tmp/ + diff --git a/cmd/debug/readme.md b/cmd/debug/readme.md index 2e268296cb296..943688ef6b9be 100644 --- a/cmd/debug/readme.md +++ b/cmd/debug/readme.md @@ -38,8 +38,7 @@ Attach vs code to the debug session. # Terminal 2 -export the CLI config with: - +create a file `terraformrc` with the following content: ``` provider_installation { dev_overrides { @@ -48,10 +47,8 @@ provider_installation { } ``` -TODO: this is not still working!!!! - ```sh export TF_CLI_CONFIG_FILE=/Users/ricardol/git/terraform-provider-azurerm/tmp/ex1/terraformrc export TF_REATTACH_PROVIDERS=.... -``` \ No newline at end of file +``` diff --git a/internal/services/mysql/mysql_configuration_set_resource.go b/internal/services/mysql/mysql_configuration_set_resource.go index 282a791f4e60f..29f240b58b65a 100644 --- a/internal/services/mysql/mysql_configuration_set_resource.go +++ b/internal/services/mysql/mysql_configuration_set_resource.go @@ -21,6 +21,7 @@ import ( func resourceMySQLConfigurationSet() *pluginsdk.Resource { return &pluginsdk.Resource{ Create: resourceMySQLConfigurationSetCreate, + Update: resourceMySQLConfigurationSetCreate, Read: resourceMySQLConfigurationSetRead, Delete: resourceMySQLConfigurationSetDelete, diff --git a/internal/services/postgres/postgresql_configuration_set_resource.go b/internal/services/postgres/postgresql_configuration_set_resource.go index e9aecfd777ee9..1f9f22e1184ad 100644 --- a/internal/services/postgres/postgresql_configuration_set_resource.go +++ b/internal/services/postgres/postgresql_configuration_set_resource.go @@ -21,6 +21,7 @@ import ( func resourcePostgreSQLConfigurationSet() *pluginsdk.Resource { return &pluginsdk.Resource{ Create: resourcePostgreSQLConfigurationSetCreateUpdate, + Update: resourcePostgreSQLConfigurationSetCreateUpdate, Read: resourcePostgreSQLConfigurationSetRead, Delete: resourcePostgreSQLConfigurationSetDelete, Importer: pluginsdk.ImporterValidatingResourceId(func(id string) error {