Localstack: RDS instances fail to provision (with terraform)

Created on 20 Feb 2020  路  3Comments  路  Source: localstack/localstack

Using the following terraform:

provider "aws" {
  region                      = "eu-west-1"
  skip_credentials_validation = true
  skip_metadata_api_check     = true
  skip_requesting_account_id  = true
  access_key                  = "nothing"
  secret_key                  = "nothing"

  endpoints {
      rds         = "http://localhost:4594" 
  }
}

resource "aws_db_instance" "my-rds" {
  identifier        = "my-db"
  engine            = "postgres"
  instance_class    = "db.m4.large"
  name              = "my_db"
  allocated_storage = 20
  username          = "dbuser"
  password          = "pass"
}

RDS instances fail to provision on the latest version. This worked in previous versions of localstack
The last known good container had image ID 85a39c3cecc3 which I last pulled approximately 3 weeks ago.

Here are the logs from both localstack and terraform:

localstack_1  | 2020-02-20 16:14:43,822:API:  * Running on http://0.0.0.0:4547/ (Press CTRL+C to quit)
localstack_1  | Waiting for all LocalStack services to be ready
localstack_1  | Ready.
localstack_1  | 2020-02-20 16:14:52,679:API: 127.0.0.1 - - [20/Feb/2020 16:14:52] "POST / HTTP/1.1" 200 -
localstack_1  | 2020-02-20 16:14:52,679:API: 127.0.0.1 - - [20/Feb/2020 16:14:52] "POST / HTTP/1.1" 200 -
localstack_1  | 2020-02-20 16:14:52,679:API: 127.0.0.1 - - [20/Feb/2020 16:14:52] "POST / HTTP/1.1" 200 -
localstack_1  | 2020-02-20T16:14:52:INFO:localstack_ext.services.rds.rds_listener: Starting RDS server on port 4510 - database "my_db", user "dbuser"
localstack_1  | 2020-02-20 16:14:58,264:API: 127.0.0.1 - - [20/Feb/2020 16:14:58] "POST / HTTP/1.1" 200 -
localstack_1  | 2020-02-20 16:14:58,264:API: 127.0.0.1 - - [20/Feb/2020 16:14:58] "POST / HTTP/1.1" 200 -
localstack_1  | 2020-02-20 16:14:58,264:API: 127.0.0.1 - - [20/Feb/2020 16:14:58] "POST / HTTP/1.1" 200 -
localstack_1  | 2020-02-20T16:14:58:INFO:localstack_ext.services.rds.rds_listener: Starting RDS server on port 4510 - database "my_db", user "dbuser"
localstack_1  | 2020-02-20 16:14:58,443:API: 127.0.0.1 - - [20/Feb/2020 16:14:58] "POST / HTTP/1.1" 200 -
localstack_1  | 2020-02-20 16:14:58,443:API: 127.0.0.1 - - [20/Feb/2020 16:14:58] "POST / HTTP/1.1" 200 -
localstack_1  | 2020-02-20 16:14:58,443:API: 127.0.0.1 - - [20/Feb/2020 16:14:58] "POST / HTTP/1.1" 200 -
localstack_1  | 2020-02-20T16:14:58:INFO:localstack_ext.services.rds.rds_listener: Starting RDS server on port 4510 - database "my_db", user "dbuser"
$ terraform apply -lock=false -auto-approve 
aws_db_instance.my-rds: Creating...
aws_db_instance.my-rds: Still creating... [10s elapsed]
aws_db_instance.my-rds: Still creating... [20s elapsed]
PRO priority-high

Most helpful comment

Thanks for reporting @JoeReid - can you please give it a try with the latest version and confirm that this is fixed? Thanks

All 3 comments

After some additional triage, think this issue is similar to #1912 where the value None was used for the boolean field MultiAZ

However this time the field is LicenseModel

Thanks for reporting @JoeReid - can you please give it a try with the latest version and confirm that this is fixed? Thanks

@whummer This seems fixed, many thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

holotrek picture holotrek  路  3Comments

realies picture realies  路  3Comments

orr-levinger picture orr-levinger  路  3Comments

sabrehagen picture sabrehagen  路  3Comments

lpegoraro picture lpegoraro  路  3Comments