amazon-ecs-agent | Amazon Elastic Container Service Agent | AWS library

 by   aws Go Version: v1.71.2 License: Apache-2.0

kandi X-RAY | amazon-ecs-agent Summary

kandi X-RAY | amazon-ecs-agent Summary

amazon-ecs-agent is a Go library typically used in Cloud, AWS, Docker applications. amazon-ecs-agent has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

The Amazon ECS Container Agent is a component of Amazon Elastic Container Service (Amazon ECS) and is responsible for managing containers on behalf of Amazon ECS.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              amazon-ecs-agent has a medium active ecosystem.
              It has 1985 star(s) with 587 fork(s). There are 160 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 3 open issues and 1007 have been closed. On average issues are closed in 95 days. There are 10 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of amazon-ecs-agent is v1.71.2

            kandi-Quality Quality

              amazon-ecs-agent has no bugs reported.

            kandi-Security Security

              amazon-ecs-agent has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              amazon-ecs-agent is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              amazon-ecs-agent releases are available to install and integrate.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of amazon-ecs-agent
            Get all kandi verified functions for this library.

            amazon-ecs-agent Key Features

            No Key Features are available at this moment for amazon-ecs-agent.

            amazon-ecs-agent Examples and Code Snippets

            No Code Snippets are available at this moment for amazon-ecs-agent.

            Community Discussions

            QUESTION

            Unable to connect to RDS from Elastic Beanstalk Docker
            Asked 2020-Nov-02 at 11:22

            My spring boot app deployed in Elastic Beanstalks docker is unable to connect to external RDS. It always stuck at "com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting..." during app startup.

            Dockerfile (I added the db connection details in ENTRYPOINT for troubleshooting purpose)

            ...

            ANSWER

            Answered 2020-Nov-02 at 11:22

            Based on the comments.

            The issue was caused by not sufficient memory allocated to the container.

            The solution was to increase the memory.

            Source https://stackoverflow.com/questions/64630714

            QUESTION

            Can't access running EC2 Dockerized image from outside
            Asked 2020-Aug-31 at 11:25
            The problem

            I can't access a running docker image from outside of the EC2 instance.

            What I've tried
            • I created a cluster in ECS, a service with a related task definition and an Application Load Balancer.
            • When the task gets executed I can see the logs from the Docker image in the task:
            • I also see the related EC2 instance running. When I ssh into the instance I can see the docker image running, as expected:
            ...

            ANSWER

            Answered 2020-Aug-31 at 11:25

            Do you config your Security Group of your EC2 or the NACL of the VPC where the EC2 is launched?

            I see that you are expose port 5001 in your task so in the SG, you should open that port

            Source https://stackoverflow.com/questions/63669507

            QUESTION

            Running ECS task in a cluster within a private subnet remains in provisioning status
            Asked 2020-Aug-29 at 16:25

            We want to build an ECS cluster with the following characteristics:

            1. It must run inside a VPC, then, we need the awsvpc mode
            2. It must use GPU instances, so we can't use Fargate
            3. It must provision dynamically the instances, therefore, we need a capacity provider
            4. It will run tasks (batch jobs) that are going to be triggered directly through the AWS ECS API. For this reason, we don't need a service, only a task definition.
            5. These tasks must have access to S3 (internet), so according to AWS documentation the instances must be placed inside a private subnet (a reference to docs).

            We've already read this post in stackoverflow where it says that we need to set up a private subnet with a route table that points to a NAT Gateway configured in a public subnet, and this public subnet should point to an internet gateway. We already have this configuration. We also have an S3 vpc endpoint configured in the route table.

            Bellow, you can see some relevant configurations of the cluster in terraform (for the shake of simplicity I only put the relevant parts):

            ...

            ANSWER

            Answered 2020-Aug-29 at 16:25

            Finally!! Solved the mystery!

            The problem wasn't in the cluster configuration. When calling through the ECS API to run_task you need to specify the subnet the task should run into.

            Our code was setting in this field the value of one of the public subnets. For that reason, when we changed the container instances to the availability zone corresponding to this public subnet the task was placed.

            Changing this call from the code the task is placed correctly and it has access to the internet.

            Source https://stackoverflow.com/questions/63621979

            QUESTION

            How to configure logentries in AWS ECS Task definition
            Asked 2020-May-04 at 14:46

            I'm trying to configure logentries for a Task Definition on AWS ECS As you can see here "logentries" is available for container instances.

            However I can not find any documentation or example about how to configure it. I've seen examples of other drivers: https://docs.aws.amazon.com/AmazonECS/latest/userguide/example_task_definitions.html

            So I've tried to set the needed parameters defined in this documentation in the aws console:

            However when I try to run a task with this configuration I get:

            service my-service was unable to place a task because no container instance met all of its requirements. The closest matching container-instance is missing an attribute required by your task. For more information, see the Troubleshooting section.

            Any ideas?

            ...

            ANSWER

            Answered 2020-May-04 at 14:46

            In the case of splunk logging in ECS (with EC2 instances as hosts with the ECS optimized image, and not Fargate), you had to explicitly boot the instance with splunk logging enabled, by setting ENV variable ECS_AVAILABLE_LOGGING_DRIVERS at boot time (you can use userdata for this). There is a similar option for logentries.

            See https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html

            Your error message is not about the configuration of logentries being incorrect, rather that logentries is unavailable altogether in the environment.

            Source https://stackoverflow.com/questions/61594807

            QUESTION

            ECS Execution Role causes log driver failure during container startup?
            Asked 2020-Jan-29 at 15:16

            When using a custom IAM Role as an ECS Task Definition'scustom execution role, our resulting Service wil fail to startup on our ECS instance due to an inability to initialize the CloudWatch logging driver. Specifically, we see the following errors from ECS agent in CloudWatch:

            ...

            ANSWER

            Answered 2019-Oct-25 at 05:30

            if you have failure in this case, check 2 options.

            1. ECS execution role policy's permission. it should contains logs:CreateLogStream and logs:PutLogEvents. like :

            Source https://stackoverflow.com/questions/58549635

            QUESTION

            Deploy NodeJS Express API to AWS
            Asked 2019-Jun-02 at 14:20

            I used CodeFresh to build my Docker Image and push to AWS ECR.

            I check my ECR, I can see the pushed there successfully.

            I SSH into my EC2, I don't see any content there.

            Update ...

            ANSWER

            Answered 2018-Jun-23 at 17:43

            First thing

            By doing ls does not mean it will show the docker image.

            If the docker images pull successfully then check it using below command.

            Source https://stackoverflow.com/questions/51003340

            QUESTION

            Unable to properly register service in Eureka on AWS ECS with dynamic ports on
            Asked 2019-Jan-07 at 09:14

            I've recently inherited a micro-service system that runs on the spring-boot and netflix stack on AWS ECS, I'm quite new to spring-boot and the netflix side of things. I'm trying to move this over from using statically defined ports to using dynamic ports so that we can better use existing machines, but I'm having trouble getting the microservices to register themselves in Eureka.

            The services are still starting up fine, when they are getting marked as offline in Spring Boot Admin. When I click on the service name in Spring Boot Admin I see the following links on the top right

            ...

            ANSWER

            Answered 2018-Oct-19 at 09:00

            So I have managed to get this working, in the end I needed to set 6 parameters they are:

            Source https://stackoverflow.com/questions/52825174

            QUESTION

            Useless Amazon ECS Error Message when creating tasks
            Asked 2018-Dec-30 at 00:13

            Using the ecs agent container on an Ubuntu instance, I am able to register the agent with my cluster.

            I also have a service created in that cluster and task definitions as well. When I try to add a task to the cluster I get the useless error message:

            ...

            ANSWER

            Answered 2017-Jul-18 at 18:00

            From the troubleshooting guide:

            ATTRIBUTE (container instance ID)

            Your task definition contains a parameter that requires a specific container instance attribute that is not available on your container instances. For more information on which attributes are required for specific task definition parameters and agent configuration variables, see Task Definition Parameters and Amazon ECS Container Agent Configuration.

            You can find the attributes required for your task definition by looking at the requiredAttributes field. You can find the attributes that are present for your container instances in the result of the DescribeContainerInstances API call.

            Source https://stackoverflow.com/questions/45173637

            QUESTION

            Setup logentries for aws ecs
            Asked 2018-Aug-29 at 07:46

            I'am trying to make my aws elastic cluster service send logs to logentries. But I can't find any good documentation on how to do it.

            When i create task definition I have the option to choose logentries as image below shows:

            But where do I find this token? And do I have to do anything else?

            All i can find on the topic is this: https://github.com/aws/amazon-ecs-agent/issues/1059

            ...

            ANSWER

            Answered 2018-Aug-29 at 07:46

            I sent them an email an got a answer:

            hi,

            A token can be generated by logging in > Clicking Add Data > Quick Add

            Fill out log name details > create new token > you will be presented with a token. This can be pasted into the setup.

            Depending on your setup if you also follow the add data flow you will see a docker option. I would also look at the following:

            https://insightops.help.rapid7.com/docs/docker-1

            btw, i think they are called rapid7 insightops now :)

            Source https://stackoverflow.com/questions/52040329

            QUESTION

            ECS network host mode and links = CannotCreateContainerError: Container already exists
            Asked 2018-Jan-29 at 19:45

            I'm using AWS ECS to deploy my group of docker containers and in bridge network mode all works perfectly but with a slow performance...

            I've read that this problem resolves with a host network mode but if i use this, it causes an error on containers deploy (some of them), "CannotCreateContainerError: Container already exists".

            Looking for the error, i've see that is caused by links in containers (https://github.com/aws/amazon-ecs-agent/issues/185) but i need it,

            Any ideas of this?

            Thanks a lot!

            ...

            ANSWER

            Answered 2017-Jun-20 at 09:11

            Solved!

            Like in that issue comments, networkmode host don't allow links between containers, so if you remove them it works.

            So now we have a new problem, how comunicate between containers? easy, point to localhost or 127.0.0.1 and his own port (obviously you can't deploy two containers with the same port).

            Source https://stackoverflow.com/questions/44645360

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install amazon-ecs-agent

            You can download it from GitHub.

            Support

            Contributions and feedback are welcome! Proposals and pull requests will be considered and responded to. For more information, see the CONTRIBUTING.md file.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular AWS Libraries

            localstack

            by localstack

            og-aws

            by open-guides

            aws-cli

            by aws

            awesome-aws

            by donnemartin

            amplify-js

            by aws-amplify

            Try Top Libraries by aws

            aws-cli

            by awsPython

            aws-cdk

            by awsTypeScript

            chalice

            by awsPython

            amazon-sagemaker-examples

            by awsJupyter Notebook