Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 1.64 KB

Configure.md

File metadata and controls

37 lines (24 loc) · 1.64 KB

Configuring Database and Cloud

Configuring Database

To create a database on render and creating a environment file, follow the given steps

  1. Visit the website and create an account or sign in.
  2. Next, choose a new service as PostgreSQL to create a new database service.
  3. Give an appropriate name to the database and the instance name.
  4. Select Free option in the Instance type and hit Create Database button at the bottom.

A new empty PostgreSQL database service will then be created. You can view all the services on your Render Dashboard.

Note
The PostgreSQL database service will remain free on render only upto 3 months.

Configuring Cloud

To create cloud locally using LocalStack, follow the steps given below

  1. Install Docker on your machine and run the docker engine.
  2. Pull and run LocalStack in Docker: docker run --rm -it -p 4566:4566 -p 4510-4559:4510-4559 localstack/localstack

docker run

  1. Install AWS on your machine
  2. Run: aws configure
  3. Setup the required credentials
  4. Once LocalStack is running, you can create an S3 bucket with the AWS CLI: aws --endpoint-url=http://localhost:4566 s3 mb s3://my-pii-bucket

docker run

  1. Now, you can upload your files to bucket using: aws --endpoint-url=http://localhost:4566 s3 cp /path/to/your/file.txt s3://my-pii-bucket/

docker run

Note
Please ensure the filename does not have any spaces. In case of spaces in file name, enclose the entire path in double quotes.