Skip to content

Commit 8d7cd63

Browse files
sarcastic-codercyrilgdn
authored andcommitted
Update schema import docs
Update import documentation to expected format as indicated from output error when not including database. When using the existing `terraform import postgresql_schema.schema_foo my_schema` without specifying database the following error is produced. ``` Error: schema ID my_schema has not the expected format 'database.schema': [my_schema] ``` Docs updated to include missing database component of the ID.
1 parent 04979fe commit 8d7cd63

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

website/docs/r/postgresql_schema.html.markdown

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,10 @@ It is possible to import a `postgresql_schema` resource with the following
9898
command:
9999

100100
```
101-
$ terraform import postgresql_schema.schema_foo my_schema
101+
$ terraform import postgresql_schema.schema_foo my_database.my_schema
102102
```
103103

104-
Where `my_schema` is the name of the schema in the PostgreSQL database and
104+
Where `my_database` is the name of the database containing the schema,
105+
`my_schema` is the name of the schema in the PostgreSQL database and
105106
`postgresql_schema.schema_foo` is the name of the resource whose state will be
106107
populated as a result of the command.

0 commit comments

Comments
 (0)