- Create a security group
- Creating and configuring ECS Clusters
- Creating and defining task definitions
- Running our task definition
1. Create an EC2 Security Group
So first thing first, let’s go over into security groups and create our security group. We’ll need this security group while creating our cluster.


2. Creating an ECS cluster





3. Creating and running task definitions
Go over to ECS, and click the task definitions.



3476 for HTTP port
3478 for RPC port

serve
⇒ for starting the Permify.--database-engine=postgres
⇒ for defining the db we use.--database-uri=postgres://<user_name>:password@<db_endpoint>:<db_port>/<db_name>
⇒ for connecting your database with URI.--database-pool-max=20
⇒ the depth for running in graph.
4. Running our task definition



ECS Instance - EC2ContainerService-<cluster_name>
in the running instances.

:3476
to access our http endpoint. So it should be like this;
<public_IPv4_DNS>:3476
and if you add healthz at the end like this;
<public_IPv4_DNS>:3476/healthz
you should get Serving status :)
