From 0c3ed3b85f0107ed8fff1ba3ae72cb1be2d4ac8b Mon Sep 17 00:00:00 2001 From: Yusuf Ogunjobi Date: Mon, 19 Dec 2022 18:34:27 +0000 Subject: [PATCH] Add redshift_schema import statement to README --- docs/resources/schema.md | 8 ++++++++ examples/resources/redshift_schema/import.sh | 3 +++ 2 files changed, 11 insertions(+) create mode 100644 examples/resources/redshift_schema/import.sh diff --git a/docs/resources/schema.md b/docs/resources/schema.md index a71eff1..778ca74 100644 --- a/docs/resources/schema.md +++ b/docs/resources/schema.md @@ -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 +``` diff --git a/examples/resources/redshift_schema/import.sh b/examples/resources/redshift_schema/import.sh new file mode 100644 index 0000000..90f92ef --- /dev/null +++ b/examples/resources/redshift_schema/import.sh @@ -0,0 +1,3 @@ +# Import schema with oid: SELECT oid FROM pg_catalog.pg_namespace WHERE nspname = 'myschema'; + +terraform import redshift_schema.myschema 234