ECS: Add function to get task hostname
Add a function to get ECS task hostname so we can artifact environment_url.txt
. This URL will later be used by the DAST job.
Tested in https://gitlab.com/ali-gitlab/golang-app/-/pipelines/563896695.
Related to gitlab#228908 (closed).
Edited by Alishan Ladhani