Velvet Star Monitor

Standout celebrity highlights with iconic style.

general

RDS instance does not create in localstack

Writer Sebastian Wright

I am using terraform to create an RDS istance in localstack. I am using a very simple example which is using the a code example from the RDS/terraform docs. This is what it looks like. If i dont include this, the other resources such as SQS/SNS/S3 create fine.

resource "aws_db_instance" "test-rds" { allocated_storage = 5 storage_type = "gp2" engine = "postgres" engine_version = "5.7" instance_class = "db.t2.micro" name = "mydb" username = "foo" password = "foobarbaz" parameter_group_name = "default.mysql5.7"
}

There is no error when creating the RDS instance but it says

innovation_1 | module.db.aws_db_instance.test-rds: Still creating... [11s elapsed] localstack_1 | 2020-02-10T21:05:39:INFO:localstack_ext.services.rds.rds_listener: Starting RDS server on port 4511 - database "mydb", user "foo" localstack_1 | 2020-02-10T21:05:44:INFO:localstack_ext.services.rds.rds_listener: Starting RDS server on port 4511 - database "mydb", user "foo" innovation_1 | module.db.aws_db_instance.test-rds: Still creating... [20s elapsed] localstack_1 | 2020-02-10T21:05:53:INFO:localstack_ext.services.rds.rds_listener: Starting RDS server on port 4511 - database "mydb", user "foo"

Forever. I waited one time for 20 minutes and this message was still printing to the terminal.

In addition I am using the localstack pro version with the following docker-compose file

services: innovation: build: . ports: - "8080:8080" depends_on: - localstack links: - localstack localstack: image: localstack/localstack ports: - "4567-4584:4567-4584" environment: - SERVICES=s3:4572,sns:4575,sqs:4576,rds:4578 - LOCALSTACK_API_KEY=sdfsdf

The terraform provider file looks like this

terraform { backend "local" {}
}
provider "aws" { access_key = "mock_access_key" region = "us-east-1" s3_force_path_style = true secret_key = "mock_secret_key" skip_credentials_validation = true skip_metadata_api_check = true skip_requesting_account_id = true endpoints { apigateway = "" cloudformation = "" cloudwatch = "" dynamodb = "" es = "" firehose = "" iam = "" kinesis = "" lambda = "" route53 = "" redshift = "" s3 = "" secretsmanager = "" ses = "" sns = "" sqs = "" ssm = "" stepfunctions = "" sts = "" rds = "" }
}

Why is this happening? How does one create an RDS instance with terraform in localstack? Thanks.

4 Related questions 15 Creating RDS Instances from Snapshot Using Terraform 1 Creating RDS instances from not the recent snapshot using Terraform 0 Create aws rds instance using terraform? Related questions 15 Creating RDS Instances from Snapshot Using Terraform 1 Creating RDS instances from not the recent snapshot using Terraform 0 Create aws rds instance using terraform? 1 LocalStack Create S3 Bucket locally with terraform doesn't have a name 4 How to create EC2 instance on LocalStack with terraform? 2 RDS not reachable when created with terraform 3 Terraform AWS not accessing localstack 1 Error on creation AWS DB Instance via Terraform 3 DynamoDB table created by Terraform in LocalStack not visible in NoSQL Workbench 1 Creating an ec2 instance in localstack with terraform hangs forever Load 7 more related questions Show fewer related questions Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.