Questions tagged [aws-cloudmap]

30 questions
11
votes
3 answers

How can you launch ECS Fargate containers having a public DNS?

I've built an AWS CodePipeline to build and deploy containers into Fargate managed EC2 instances. Ref AWS CodePipeline One of the services is a web server and I'm attempting to access it from the public which is possible via a public assigned IP…
6
votes
1 answer

How to reach an ECS Service without a load balancer?

I have a Docker container running on AWS ECS. I don't want a load balancer because the container is meant to handle websocket connections. https://aws.amazon.com/getting-started/tutorials/deploy-docker-containers/ shows reaching the container using…
Jordan
  • 3,813
  • 4
  • 24
  • 33
4
votes
1 answer

AWS ECS Service Connect versus Service Discovery

AWS Cloud Map allows you to set up some namespace for your VPC, and then assign names within that namespace to individual services. The names can either be A) privately discoverable only by API calls, B) discoverable via API calls or via DNS…
4
votes
1 answer

How does automatic target registering happen in EC2 Target Groups for ECS Tasks?

I have an ECS Cluster with an ECS Service (Fargate) that specifies a Service Discovery Endpoint. I also have a Cloud Map Service setup with a domain and service name that matches the Service Discovery details entered for the ECS Service. Finally,…
3
votes
0 answers

How to configure AWS ECS Service Discovery for external access?

I have a setup of 2 services: A and B. There is a requirement that: Service B should be able to access service A Users inside the corporate VPN can access service B I have provisioned the setup using Terraform ECS service discovery, where I…
2
votes
2 answers

Public DNS namespace for service discovery is not accessible on the internet

I have a container running on ECS as a Fargate service. It has a service discovery with a public DNS namespace "frontend.example.com". I can access the container when I call the public IP, but not using the public DNS namespace.. I also tried…
1
vote
1 answer

How to map port from API Gateway to AWS Cloud Map?

I am using HTTP API type in AWS API Gateway. How to map port from AWS API Gateway to AWS Cloud Map? Is this available in some AWS API Gateway setting?
Jack
  • 125
  • 1
  • 1
  • 10
1
vote
1 answer

Error creating ECS Service with DNS SRV records using Terraform

I need to create DNS entries for each running container/task in AWS ECS so I think SRV records would work. However Terraform (1.2.4 with provider hashicorp/aws v4.22.0) errors with: │ Error: failed creating ECS service (ecs-service-xxx):…
1
vote
0 answers

AWS ECS does not start new tasks

AWS ECS cluster services do not start new tasks. Already checked: ECS EC2 instances are registered, active, full CPU and memory available, ECS agent is connected. there are no events in ECS service "Events" tab, nothing about registering, starting,…
Eugene
  • 307
  • 1
  • 3
  • 10
1
vote
1 answer

Cloudformation ECS / fargate - Run two containers in one task

I'm trying to run two containers in one task. The two containers must be resolvable using their DNS. What I did ; I defined the two containers in the same task definition : MyTwoContainerTaskDefinition: Type: 'AWS::ECS::TaskDefinition' …
1
vote
0 answers

Communication between tasks in ECS with App Mesh and Cloudmap

My ECS task (that connected to App Mesh with Cloudmap) cannot reach other ECS task (that connected to App Mesh with Cloudmap as well). dig +short products.services.local return nothing. curl -v products.services.local:4000/graphql returns Could not…
Benny67b
  • 509
  • 1
  • 6
  • 18
1
vote
0 answers

How do you use App Mesh with awsvpc and still have a lot of tasks

I am trying to create an internal service that is not reachable from outside the vpc. I am using cloudmap as the service discovery tool and the best option I've found so far is by using App Mesh with it. (Also, I am using ECS for my containers) The…
1
vote
2 answers

How to register RDS instance with CloudMap

I know this is possible through the AWS CLI and Console as I have done it like this but I would now need to do it in Terraform. I would like to execute the equivalent of the CLI command as aws servicediscovery register-instance. Pointing to any…
1
vote
1 answer

HAProxy with Cloudmap with Fargate

Looking to migrate to using AWS Fargate to host a number of containers to be load balanced via HAProxy, it seems an elegant method to then use a combination of AWS Cloudmap for service discovery and then HAProxy DNS (server-template) syntax to…
Matt James
  • 182
  • 1
  • 1
  • 9
1
vote
1 answer

Order of Ip's returned for API Based service discovery to AWS Cloud Map

We are currently doing a service discovery from our java application using "API Based service discovery to AWS Cloud Map". We are using the "DiscoverInstances" call. As we have multiple containers with the same properties, the call returns multiple…
1
2