I am trying to create an environment variable to be used in the application by acquiring the endpoint of ELB, RDS made using terraform.
Currently I am trying to get an endpoint with aws cli as follows, but is there a simpler way?
aws rds describe-db-instances --db-instance-identifier xxxx | jq '.DBInstances[].Endpoint.Address'
aws elb describe-tags --load-balancer-name xxxx | jq '.TagDescriptions[].LoadBalancerName'
For example, how to obtain the endpoint of the AWS stack created on terraform