amazon-ecs

How do you delete an AWS ECS Task Definition?

我的未来我决定 提交于 2020-04-12 07:43:10
问题 Once you've created a task definition in Amazon's EC2 Container Service, how do you delete or remove it? 回答1: It's a known issue. Once you de-register a Task Definition it goes into INACTIVE state and clutters up the ECS Console. 来源: https://stackoverflow.com/questions/35045264/how-do-you-delete-an-aws-ecs-task-definition

Multiple docker containers in one EC2 instance through AWS ECS

ε祈祈猫儿з 提交于 2020-04-07 13:52:24
问题 Is it possible to run multiple docker containers in one EC2 instance through AWS ECS (EC2 Container Service)? 回答1: Yes. AWS's documentation/product details doesn't ever come out and say it explictly, but it talks about launching many containers to a cluster. A cluster can be one instance. When configuring a container, you specify memory and CPU usage. ECS uses that to "schedule" (or "pack") an EC2 with Docker containers. 回答2: Yes, for doing that write the task definition that have definition

Fargate vs Lambda, when to use which?

半世苍凉 提交于 2020-03-13 07:01:07
问题 I'm pretty new to the whole Serverless landscape, and am trying to wrap my head around when to use Fargate vs Lambda. I am aware that Fargate is a serverless subset of ECS, and Lambda is serverless as well but driven by events. But I'd like to be able to explain the two paradigms in simple terms to other folks that are familiar with containers but not that much with AWS and serverless. Currently we have a couple of physical servers in charge of receiving text files, parsing them out, and

Jenkins ecs Command not found

ε祈祈猫儿з 提交于 2020-03-04 15:33:25
问题 I installed third party tool (ecs deploy using pip install ecs-deploy ) .When I try to deploy using command ecs deploy demo-cluster demo-service in command prompt its working fine when I try with jenkins to deploy getting error /tmp/jenkins5062380414579854312.sh: line 13: ecs: command not found Build step 'Execute shell' marked build as failure Finished: FAILURE 回答1: The Jenkins service runs typically runs under the user jenkins . You have installed the package as the ec2-user . This means

How to launch container with user namespace configuration?

筅森魡賤 提交于 2020-02-25 05:56:58
问题 In the below docker file, base image( jenkins/jenkins ) is providing a user jenkins with UID 1000 and GID 1000 , within container. FROM jenkins/jenkins # Install some base packages # Use non-privileged user provided by base image USER jenkins # with uid 1000 and GID 1000 # Copy plugins and other stuff On the docker host(EC2 instance), we also have similar UID & GID created, $ groupadd -g 1000 jenkins $ useradd -u 1000 -g jenkins jenkins $ mkdir -p /abc/home_folder_for_jenkins $ chown -R

Kafka Streams consumer groups concurrency: consuming from one partition only?

邮差的信 提交于 2020-02-06 11:19:41
问题 I have an AWS infrastructure of 1 Kafka cluster on 3 docker containers, running on ECS, using EFS as storage service (for simplicity). 1 Kafka Streams application cluster, on 3 containers. There is a source topic "events" with 16 partitions, replication 2. A PAPI topology processor "stream-processor" produces output to some other topics and uses 3 state stores. I can see via Kafka Manager that data is consumed, and output is produced to these other output topics. Apparently it works (though

ECS service did not stabilize

坚强是说给别人听的谎言 提交于 2020-02-05 08:26:15
问题 Answer did not have pointers for this problem, because rollback deletes the stack. Below is the CloudFormation template, written to launch Jenkins docker container in ECS container instance(DesiredCount: 1), in default public subnet. Jenkins docker image is publicly available in dockerhub, which is launched in ECS container instance. We used ECS optimised AMI image( ami-05958d7635caa4d04 ) ca-central-1 region, that run docker version 18.06.1 . { "AWSTemplateFormatVersion": "2010-09-09",

ECS::TaskDefinition - What is the maximum value of 'Memory' property?

試著忘記壹切 提交于 2020-02-05 05:48:10
问题 here in this syntax of "ContainerDefinitions":[{Memory:500}] in AWS::ECS::TaskDefinition , Memory property refers to virtual address space(hard limit) of docker container process in root CGROUP. We are launching a jenkins container process on AWS EC2 using cloudformation resource type AWS::ECS::TaskDefinition . AWS EC2 is a 64 bit Linux OS. On 32 bit Linux OS, virtual address space of a process, can go upto 3 GB. On 64 bit Linux OS, virtual adress space of a process, can go upto Terabytes. We

EcsService did not stabilize after hours

孤人 提交于 2020-02-03 16:19:12
问题 I have written a cloudformation JSON file from scratch, but i can't deploy the stack and i don't have any information from AWS about why... It gets stuck at the service CREATE_IN_PROGRESS for 4/5 hours, then it says that the service did not stabilize and rollback. When i check the cluster, it says it is "active" and everything looks fine from the AWS dashboard. I guess the container meet an issue, or maybe something wrong with the health check, but i don't get any information from

How to push docker image to Amazon ECR using io.fabric8 maven plugin with authorization

我是研究僧i 提交于 2020-01-24 18:02:11
问题 I have a plugin to create a image, once created it need to be pushed to amazon ECR Please look into my plugin in the below` <?xml version="1.0" encoding="UTF-8"?> <plugin> <groupId>io.fabric8</groupId> <artifactId>docker-maven-plugin</artifactId> <version>0.24.0</version> <configuration> <dockerHost>https://accountID.dkr.ecr.us-east-1.amazonaws.com</dockerHost> <authConfig> <authToken>authorization Token</authToken> <username>Access Key ID</username> <password>Secret Key Id</password> <