-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: remove if exist from example. since default terraform behavior …
…is to fail when the resource already exists. instead i updated the import section to include an example using idempotent snowsql clauses.
- Loading branch information
1 parent
d75cc45
commit 7a51931
Showing
3 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
resource "snowsql_exec" "role" { | ||
create { | ||
statements = "CREATE ROLE my_role" | ||
statements = "CREATE ROLE IF NOT EXISTS my_role" | ||
} | ||
|
||
delete { | ||
statements = "DROP ROLE my_role" | ||
statements = "DROP ROLE IF EXISTS my_role" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters