# \#ec2

**URL:** https://community.labelstud.io/tag/ec2/23.md

[Latest](https://community.labelstud.io/latest.md) · [Categories](https://community.labelstud.io/categories.md) · [Tags](https://community.labelstud.io/tags.md)

---

## [How to validate the Label Studio connection to a PostgreSQL database when set up on AWS EC2 using Docker Compose?](https://community.labelstud.io/t/how-to-validate-the-label-studio-connection-to-a-postgresql-database-when-set-up-on-aws-ec2-using-docker-compose/180)

<div class="topic-metadata">

**Author:** [@sajarin](https://community.labelstud.io/u/sajarin)\
**Replies:** 0\
**Last updated:** [May 13, 2024, 6:35pm UTC](https://community.labelstud.io/t/how-to-validate-the-label-studio-connection-to-a-postgresql-database-when-set-up-on-aws-ec2-using-docker-compose/180 "2024-05-13T18:35:25Z")

</div>

Answer: Checking the Database Connection: Check the Logs: During the Docker Compose service startup, observe the logs for any PostgreSQL database connection errors. Absence of errors and successful creation of projects…

---

## [Securing Label Studio Access on EC2: Invite-Only Registration](https://community.labelstud.io/t/securing-label-studio-access-on-ec2-invite-only-registration/166)

<div class="topic-metadata">

**Author:** [@sajarin](https://community.labelstud.io/u/sajarin)\
**Replies:** 0\
**Last updated:** [May 10, 2024, 5:59pm UTC](https://community.labelstud.io/t/securing-label-studio-access-on-ec2-invite-only-registration/166 "2024-05-10T17:59:13Z")

</div>

Question: I’ve hosted Label Studio on an EC2 machine with a public IP, and I’m looking for advice on how to restrict access so that only approved users can sign up and use the interface. As of now, the link allows for u…
