OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

How to get Elastic Container Repository URI from Cloud Formation?

  • Thread starter Thread starter oblio
  • Start date Start date
O

oblio

Guest
I'm trying to create an Elastic Container Service (ECS) setup from Cloud Formation.

However I don't want the ECS repository to have the ugly autogenerated URI:

111111111.dkr.ecr.us-east-1.amazonaws.com/docker-repo.company.com

but instead I want it to have a nice and shiny

docker-repo.company.com

The repository itself does not allow setting the URI or even a CNAME. So I'm trying to setup a S3 bucket to redirect to the repo. However unless I'm missing something, Cloud Formation doesn't support this since using !Ref or !GetAtt there's nothing I can query in the AWS::ECR::Repository object that will give me the repository URI.

Am I missing something? Thanks!
<p>I'm trying to create an Elastic Container Service (ECS) setup from Cloud Formation. </p>

<p>However I don't want the ECS repository to have the ugly autogenerated URI:</p>

<p><strong>111111111.dkr.ecr.us-east-1.amazonaws.com/docker-repo.company.com</strong></p>

<p>but instead I want it to have a nice and shiny </p>

<p><strong>docker-repo.company.com</strong></p>

<p>The repository itself does not allow setting the URI or <a href="https://forums.aws.amazon.com/thread.jspa?threadID=223934" rel="noreferrer">even a CNAME</a>. So I'm trying to setup a S3 bucket to redirect to the repo. However unless I'm missing something, Cloud Formation doesn't support this since using !Ref or !GetAtt there's nothing I can query in the AWS::ECR::Repository object that will give me the repository URI.</p>

<p>Am I missing something? Thanks!</p>
Continue reading...
 
Top