ecs-service | CLI tool for deploying services | AWS library

 by   ukayani JavaScript Version: 0.2.7 License: MIT

kandi X-RAY | ecs-service Summary

kandi X-RAY | ecs-service Summary

ecs-service is a JavaScript library typically used in Cloud, AWS, Docker applications. ecs-service has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can install using 'npm i ecs-service' or download it from GitHub, npm.

This tool aims to simplify the deployment of docker-based services on Amazon's ECS platform.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              ecs-service has a low active ecosystem.
              It has 12 star(s) with 4 fork(s). There are 4 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 6 open issues and 2 have been closed. On average issues are closed in 1 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of ecs-service is 0.2.7

            kandi-Quality Quality

              ecs-service has no bugs reported.

            kandi-Security Security

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

            kandi-License License

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

            kandi-Reuse Reuse

              ecs-service releases are not available. You will need to build from source code and install.
              Deployable package is available in npm.
              Installation instructions, 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 ecs-service
            Get all kandi verified functions for this library.

            ecs-service Key Features

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

            ecs-service Examples and Code Snippets

            AWS CDK cross-stack references and deployment order
            JavaScriptdot img1Lines of Code : 3dot img1License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            cdk deploy --exclusively ecs-service
            cdk deploy
            

            Community Discussions

            QUESTION

            Application Load Balancer's DNS is timing out eventhough the Target group is in healthy state
            Asked 2021-Apr-25 at 11:07

            I changed the status code for the health check from 200 to 302. After which the Target group turned to a healthy state. I wasn't able to get the healthy state with the 200 code. But when I try to access the DNS of the ALB. It times out and haven't been able to figure out why?

            The ecs drupal instances logs provide these outputs "GET / HTTP/1.1" 302 573 "-" "ELB-HealthChecker/2.0" drupal

            Any help would be much appreciated

            ...

            ANSWER

            Answered 2021-Apr-25 at 11:07

            Based on the comments.

            The template is fine. The ALB does not work because it is placed in private subnets along with ECS service. Assuming that private subnets are correctly setup to work with NAT gateway and access the internet, the following should be made:

            • Place ALB in public subnets - it must be there, as otherwise it will no be accessible from the internet.

            Also double check all the route tables for NAT, public subnets, internet gateway.

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

            QUESTION

            Moving ECS containerDefinition command to locals - Terraform
            Asked 2021-Mar-28 at 01:57

            I am working with Terraform to deploy an ECS Service with some containers. Code is so long so I was trying to move all logic to locals.tf.

            Right now, my code at container definition is like this:

            ...

            ANSWER

            Answered 2021-Mar-27 at 22:28

            QUESTION

            ECS Service: can't pull docker image from ECR registry without assign public ip to service tasks
            Asked 2021-Mar-04 at 20:47

            I have the following cloudformation stack which defines an ECS Service:

            ...

            ANSWER

            Answered 2021-Mar-04 at 20:47

            "the IAM role allows pulling from ECR"

            The IAM role just gives it permission, it doesn't provide a network connection.

            "the subnets can access the internet through an internet gateway"

            I think you'll find that the Internet Gateway only provides Internet Access to resources with a public IP assigned to them.

            ECR is a service that exists outside your VPC, so you need one of the following for the network connection to ECR to be established:

            1. Public IP.

            2. NAT Gateway, with a route to the NAT Gateway in the subnet.

            3. ECR Interface VPC Endpoint, with a route to the endpoint in the subnet.

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

            QUESTION

            Cloudformation service stuck without log
            Asked 2021-Feb-09 at 22:35

            I have a minimal stack for creating a simple service with a listener. The listener gets created first and succeeds. The service gets initiated next but gets stuck on "CREATE_IN_PROGRESS". Now I have seen this issue on SO but that has a clear reason for it failing. In my occasion the Cloudtrail logs simple show the initiation and 10 minutes later (custom timeout) the delete but nothing in between. The Cloudformation dashboard events also just show initiation and delete thereafter.

            The service does not get created during this time either. This I visually checked by going over to the services and having other services there but not my own.

            I have trimmed down the cloudformation template to the bare (i.e. only listener and service with reference to existing resources) but it still gets stuck.

            Apart from the usual cloudtrail and cloudformation logs, what could I do to identify the problem?

            [EDIT] Here is the template I use. The parameters are based on my current setup.

            ...

            ANSWER

            Answered 2021-Feb-09 at 22:35

            Based on the comments.

            The issue is with the StaService ECS service. To get more information of possible reason why it fails, one can go to:

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

            QUESTION

            AWS CDK cross-stack references and deployment order
            Asked 2020-Nov-07 at 00:54

            What's the way to overcome the circular dependency problem in AWS CDK: Let's imagine I have a stack for ECS cluster and a stack for ECS Service (several of them):

            ...

            ANSWER

            Answered 2020-Sep-02 at 09:41

            I understood your issue like that: Create another cluster, migrate TaskDefinition with Service from old to the new cluster.

            The thing is, that your old task is still is running as the error is telling you (SGs are still in use). Additionally, could it be the case that you are trying to re-use the security groups from the old cluster?

            If not so, then you need to instantiate a new EcsServiceStack, but with the new cluster argument. Or if you don't care about a "manual blue/green deployment", then you can destroy the old EcsServiceStack. Then rerun the CDK commands with the modification of the code should run.

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

            QUESTION

            How to run an AWS ECS task inside a service of AWS ECS cluster and not ouside the service from Circle CI's "aws-ecs/run-task"
            Asked 2020-Nov-01 at 07:58

            I am using Circle CI to build and push the image to AWS ECR, then use this image to deploy a container(with FARGATE as instance) in a service inside a cluster in AWS ECS. The problem is, the tasks are being run outside of this service, but in the same cluster.

            Here's task sitting along the task that was started automatically by AWS: The one that has group called service:adp-ecs-service is the one running inside service and the one with group adp-ecs-service is the one that is running outside of service. The one that has group called service:adp-ecs-service will be restarted automatically with the image in ECR tagged 'latest_ci', if i stop it, but other one won't start. And this service can only have one service at a time.

            By looking at group in this image, I tried to specify the name of the service in group tag in 'config.yml' file in multiple ways, but to no avail. Here's all I have tried(you can see these in my commits here):

            1. 'service:adp-ecs-service'
            2. service:adp-ecs-service Both of them(with and without quotes) genereted following error:
            ...

            ANSWER

            Answered 2020-Nov-01 at 04:33

            Simply put aws-ecs/run-task is not what you want. You need to deploy the new task definition to the service, not run it.

            You are looking for aws-ecs/deploy-service-update and update-task-definition if you haven't already.

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

            QUESTION

            Terraform fails first time for ECS and Load Balancer
            Asked 2020-Oct-01 at 04:05

            I am using Terraform to deploy my ECS cluster with Load Balancer. My Terraform code is as follows:

            ...

            ANSWER

            Answered 2020-Oct-01 at 04:05

            This usually means that you need to explicitly define a depends_on relation with your ALB. Subsequently, you can try the following:

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

            QUESTION

            Why ECS pipeline needed Task Definition while Service already have the task definition assigned in AWS?
            Asked 2020-Sep-13 at 21:54

            on bitbucket, the config is required to use both 'service' and 'task definition', I think this is redundant because the service already assigned with task definition, or we have an explanation?

            ...

            ANSWER

            Answered 2020-Sep-13 at 21:54

            The task definition in ECS service you are showing is probably the initial deployment. When you do subsequent deployments you update the task definition with new image version, or extra parameters. You can't update ECS task without providing task definition.

            The task definition is thus required. It's same if you use CodeDeploy to deploy to ECS - task definition must be provided:

            -AppSpec 'resources' section for Amazon ECS deployments

            TaskDefinition – Required. This is the task definition for the Amazon ECS service to deploy.

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

            QUESTION

            Unable to create Ec2 instance with autoscaling and register them to ECS cluster
            Asked 2020-Aug-03 at 03:48

            Hi I am trying to create a cluster with service and task. I have a python app in Ecr that connects to redis container. The issue is I am unable to create ec2 instance with autoscaling. Myservice in Cluster and Autoscaling doesn't builds.

            Cluster:

            ...

            ANSWER

            Answered 2020-Aug-03 at 03:48

            Since you haven't provided any error messages, the initial look at Autoscaling template shows several issues.

            LoadBalancerNames

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

            QUESTION

            Request Timeout ( HTTP 408) : loadbalancer backed by ecs-fargate with nginx image
            Asked 2020-Jul-30 at 10:49

            I am trying to create following infrastructure using terraform. LoadBalancer -> ECS-Service -> Fargate (nginx images, count=2)

            After applying terraform plan, I can see that a target groups shows two healthy targets. But when i try to access loadbalancer dns name from browser, I am getting request-timeout. Ping is also not working for lb dns name.

            Loadbalancer is an non-internal application loadbalancer with security-group allowing all traffic on 80 port to all IPv4.

            Need help.

            ...

            ANSWER

            Answered 2020-Jul-30 at 10:49

            Did you configure LB in the public subnet? seems like it's in a private subnet, and did you tried to access the application from aws network to verify the LB working inside AWS VPC network?

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install ecs-service

            You must export the AWS region you are deploying your service to, or supply it via the -r parameter. The tool will use the standard credential chain used by other aws cli tools. If you wish to supply credentials manually see Options.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

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

            Find more libraries
            Install
          • npm

            npm i ecs-service

          • CLONE
          • HTTPS

            https://github.com/ukayani/ecs-service.git

          • CLI

            gh repo clone ukayani/ecs-service

          • sshUrl

            git@github.com:ukayani/ecs-service.git

          • 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 ukayani

            restify-router

            by ukayaniJavaScript

            kms-env

            by ukayaniJavaScript

            auth0-deploy

            by ukayaniJavaScript

            slush-lambda

            by ukayaniJavaScript