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