Skip to content

Commit

Permalink
chore: added update metodas so we can run it with terraform
Browse files Browse the repository at this point in the history
  • Loading branch information
ricleal-fugue committed Jan 14, 2023
1 parent e11ba90 commit b97b85b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,5 @@ tf.zip

# do not upload secrets
.env
tmp/

7 changes: 2 additions & 5 deletions cmd/debug/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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=....
```
```
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
func resourceMySQLConfigurationSet() *pluginsdk.Resource {
return &pluginsdk.Resource{
Create: resourceMySQLConfigurationSetCreate,
Update: resourceMySQLConfigurationSetCreate,
Read: resourceMySQLConfigurationSetRead,
Delete: resourceMySQLConfigurationSetDelete,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b97b85b

Please sign in to comment.