-
Notifications
You must be signed in to change notification settings - Fork 258
Closed
Description
Terraform Version
1.5.2
Affected Resource(s)
- postgresql_server
- postgresql_user_mapping
Terraform Configuration Files
provider "postgresql" {
host = #host
port = #port
database = "warehouse"
username = "postgres"
password = #password
superuser = false
connect_timeout = 15
sslmode = "disable"
expected_version = "14.8"
}
resource "postgresql_server" "warehouse_server" {
server_name = "server"
fdw_name = "postgres_fdw"
server_owner = "server"
options = {
host = #host
dbname = #db
port = #port
}
}
resource "postgresql_user_mapping" "warehouse_server_dashboard" {
server_name = "server"
user_name = "dashboard"
options = {
user = #user
password = #password
}
}
Expected Behavior
Resources imported successfully
Actual Behavior
Resources are unable to be imported with message Error: Cannot import non-existent remote object
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
- Create server and user mapping manually
- Create resources for server and user mapping
- Import both server and user mapping
Important Factoids
New functions needed for importing
lancedikson
Metadata
Metadata
Assignees
Labels
No labels