Skip to content

Commit

Permalink
Merge pull request #100 from pacesetterplus/master
Browse files Browse the repository at this point in the history
Add redshift_schema import statement to README
  • Loading branch information
winglot authored Jan 16, 2023
2 parents fc3d77e + 354831c commit 32cd1c8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/resources/schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,4 +272,12 @@ Optional:

- **schema** (String) The name of the datashare schema. The default schema is 'public'.

## Import

Import is supported using the following syntax:

```shell
# Import schema with oid: SELECT oid FROM pg_catalog.pg_namespace WHERE nspname = 'myschema';

terraform import redshift_schema.myschema 234
```
3 changes: 3 additions & 0 deletions examples/resources/redshift_schema/import.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Import schema with oid: SELECT oid FROM pg_catalog.pg_namespace WHERE nspname = 'myschema';

terraform import redshift_schema.myschema 234

0 comments on commit 32cd1c8

Please sign in to comment.