amazon-ecs

ECS Fargate task not applying role

 ̄綄美尐妖づ 提交于 2020-07-09 08:28:41
问题 I have an ECS Fargate task running that has a role attached to it. This role has the S3FullAccess policy (and AssumeRole trusted partnership with ECS service). However when trying to put an object into a bucket, I get Access Denied errors. I have tried booting an EC2 instance and attaching the same role and can put to the bucket without issue. To me it seems like the role is not being attached to the task. Is there an important step I'm missing? I can't SSH into the instance as it's Fargate.

ecs-cli compose service up with a load balancer

≯℡__Kan透↙ 提交于 2020-07-05 11:36:13
问题 I am trying to use ecs-cli compose to manage my services and tasks on Amazon ECS. I'm unable to find a way using the service up command to create a new service with an application load balancer (even when that load balancer already exists). This seems possible with service create , but the API is different from the service up API, and I'm not sure how to specify params in the same way with create . And it would generally be preferable to use just the up command for consistency. The

How should I setup Traefik on ECS?

寵の児 提交于 2020-06-25 10:28:10
问题 In Short I've managed to run Traefik locally and on AWS ECS but now I'm wondering how should I setup some sort of load balancing to make my two services with random IPs available to the public. My current setup on ECS [Internet] | [Load balancer on port 443 + ALB Security group on 443] | [Target group on port 443 + Security group from *any* port] | [cluster] | [service1 container ports "0:5000"] While this works, I'd now like to add another container, eg. service2 also with random ports eg 0

AWS Elastic Beanstalk Docker Does not support Multi-Stage Build

六月ゝ 毕业季﹏ 提交于 2020-06-21 09:47:08
问题 I am struggling to get my build deploying to AWS on Docker. I have no idea where the solution lays as this is my first time with Docker. I have got it all working fine locally, but when I deploy I get the following error in Elastic Beanstalk: 2020/04/30 05:35:02.330900 [ERROR] An error occurred during execution of command [app-deploy] - [Docker Specific Build Application]. Stop running the command. Error: failed to pull docker image: Command /bin/sh -c docker pull node:13.3.0 AS compile-image

Dockerizing Drupal 8 on AWS ECS Error: Task failed ELB health checks in Target group for Drupal

不羁岁月 提交于 2020-06-17 09:15:47
问题 I am trying to Dockerize my Drupal 8. Below DockerFile I have. FROM drupal:8.8 RUN apt-get update && apt-get install -y \ curl \ git \ mysql-client \ vim \ wget RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \ php composer-setup.php && \ mv composer.phar /usr/local/bin/composer && \ php -r "unlink('composer-setup.php');" RUN wget -O drush.phar https://github.com/drush-ops/drush-launcher/releases/download/0.4.2/drush.phar && \ chmod +x drush.phar && \ mv drush

AWS ECS service Tasks getting replaced with (reason Request timed out)

时光总嘲笑我的痴心妄想 提交于 2020-06-12 07:41:08
问题 We are running ECS as container orchestration layer for more than 2 years. But there is one problem which we are not able to figure out the reason for, In few of our (node.js) services we have started observing errors in ECS events as service example-service (instance i-016b0a460d9974567) (port 1047) is unhealthy in target-group example-service due to (reason Request timed out) This causes our dependent service to start experiencing 504 gateway timeout which impacts them in big way. Upgraded

Not able to make AWS ECS services communicate over service discovery

不打扰是莪最后的温柔 提交于 2020-06-08 05:23:47
问题 I am trying to make 2 services communicate over service discovery endpoint in AWS ECS service. Example: Service1: runs the Task Definition to run nginx and phpfpm Service2: runs the Task Definition to run redis Now, I need to make service1 container communicate to service2 container As per the documentations and resource found on internet. This is what I have done and not able to achieve the need. We need to turn on service discovery ( Done ) Set proper service name and namespace which will

Not able to make AWS ECS services communicate over service discovery

痞子三分冷 提交于 2020-06-08 05:23:08
问题 I am trying to make 2 services communicate over service discovery endpoint in AWS ECS service. Example: Service1: runs the Task Definition to run nginx and phpfpm Service2: runs the Task Definition to run redis Now, I need to make service1 container communicate to service2 container As per the documentations and resource found on internet. This is what I have done and not able to achieve the need. We need to turn on service discovery ( Done ) Set proper service name and namespace which will

Running CloudWatch Agent in my Docker image on AWS ECS fails

℡╲_俬逩灬. 提交于 2020-05-31 05:42:28
问题 Understand for this question that I'm relatively new to Docker and AWS. The goal is to create a single AWS ECS instance that runs Apache and PHP with a basic Laravel application. I want to run a CloudWatch agent to send all logs to CloudWatch (access and error logs for Apache, error log for PHP and the Laravel logs). I know this probably isn't 'best practice' (tips are welcome), but my philosophy for now is 'first make it work, then make it pretty' :-) My Dockerfile: FROM amazonlinux:latest #

Running CloudWatch Agent in my Docker image on AWS ECS fails

核能气质少年 提交于 2020-05-31 05:42:10
问题 Understand for this question that I'm relatively new to Docker and AWS. The goal is to create a single AWS ECS instance that runs Apache and PHP with a basic Laravel application. I want to run a CloudWatch agent to send all logs to CloudWatch (access and error logs for Apache, error log for PHP and the Laravel logs). I know this probably isn't 'best practice' (tips are welcome), but my philosophy for now is 'first make it work, then make it pretty' :-) My Dockerfile: FROM amazonlinux:latest #