To create a database on render and creating a environment file, follow the given steps
- Visit the website and create an account or sign in.
- Next, choose a new service as PostgreSQL to create a new database service.
- Give an appropriate name to the database and the instance name.
- 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.
To create cloud locally using LocalStack, follow the steps given below
- Install Docker on your machine and run the docker engine.
- Pull and run LocalStack in Docker:
docker run --rm -it -p 4566:4566 -p 4510-4559:4510-4559 localstack/localstack
- Install AWS on your machine
- Run:
aws configure
- Setup the required credentials
- 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
- 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/
Note
Please ensure the filename does not have any spaces. In case of spaces in file name, enclose the entire path in double quotes.