amazon-ecs

CodeDeploy Error: “The revision size is too large. Its maximum size is 51200B.”

瘦欲@ 提交于 2020-01-24 09:32:53
问题 I'm trying to set up a deployment process as follows: Travis-CI.com grabs the codebase (NodeJS), builds and tests it, uploads it to S3 as a zip and then kicks off a CodeDeploy deployment (ECS). Here is my .travis.yml : language: node_js node_js: - '12' before_deploy: - zip -rq latest * - mkdir -p upload - mv latest.zip upload/latest.zip deploy: - provider: s3 bucket: "myBucket" access_key_id: secure: keystuff secret_access_key: secure: keystuff local_dir: upload skip_cleanup: true on: branch:

ECS cluster cannot run tasks in private subnet when using EC2

橙三吉。 提交于 2020-01-16 01:19:10
问题 I have a task definition that configured to use awsvpc network mode. according to this: Only private subnets are supported for the awsvpc network mode. Because tasks do not receive public IP addresses, a NAT gateway is required for outbound internet access, and inbound internet traffic should be routed through a load balancer. I set up a NAT gateway in a public subnet(that has internet gateway) and config route table in the private subnet to send the traffic to NAT gateway. But when I want to

AWS ECS Private and Public Services

拈花ヽ惹草 提交于 2020-01-13 11:02:40
问题 I have a scenario where I have to deploy multiple micro-services on AWS ECS. I want to make services able to communicate with each other via APIs developed in each micro-service. I want to deploy the front-end on AWS ECS as well that can be accessed publicly and can also communicate with other micro-services deployed on AWS ECS. How can I achieve this? Can I use AWS ECS service discovery by having all services in a private subnet to enable communication between each of them? Can I use Elastic

The deployment specifies that the revision is a null file, but the revision provided is a zip file

不想你离开。 提交于 2020-01-13 05:08:29
问题 I am using CodeDeploy integrated into CodePipeline . I am trying to deploy an image from ecr to ecs . The whole infrastructure is built with CloudFormation . The template for the Pipeline deployment group : ApplicationName=cls.application.ApplicationName, DeploymentGroupName='DeploymentGroup', DeploymentConfigName='CodeDeployDefault.ECSAllAtOnce', ServiceRoleArn=GetAtt(cls.role, 'Arn'), AutoRollbackConfiguration={ 'enabled': True, 'events': ['DEPLOYMENT_FAILURE', 'DEPLOYMENT_STOP_ON_ALARM',

The deployment specifies that the revision is a null file, but the revision provided is a zip file

杀马特。学长 韩版系。学妹 提交于 2020-01-13 05:08:08
问题 I am using CodeDeploy integrated into CodePipeline . I am trying to deploy an image from ecr to ecs . The whole infrastructure is built with CloudFormation . The template for the Pipeline deployment group : ApplicationName=cls.application.ApplicationName, DeploymentGroupName='DeploymentGroup', DeploymentConfigName='CodeDeployDefault.ECSAllAtOnce', ServiceRoleArn=GetAtt(cls.role, 'Arn'), AutoRollbackConfiguration={ 'enabled': True, 'events': ['DEPLOYMENT_FAILURE', 'DEPLOYMENT_STOP_ON_ALARM',

Is there a way to set a default html page when a ECS service health-check fails and it has to be brought back up?

别等时光非礼了梦想. 提交于 2020-01-11 14:08:51
问题 Is there a way to set a default HTML page when an ECS service health check fails and it has to be brought back up? If one of our services goes down (for e.g our react web client service) then we'd like a web page to be displayed by default while it is cycling Thanks, Adam 来源: https://stackoverflow.com/questions/59560098/is-there-a-way-to-set-a-default-html-page-when-a-ecs-service-health-check-fails

Is there a way to set a default html page when a ECS service health-check fails and it has to be brought back up?

ⅰ亾dé卋堺 提交于 2020-01-11 14:07:26
问题 Is there a way to set a default HTML page when an ECS service health check fails and it has to be brought back up? If one of our services goes down (for e.g our react web client service) then we'd like a web page to be displayed by default while it is cycling Thanks, Adam 来源: https://stackoverflow.com/questions/59560098/is-there-a-way-to-set-a-default-html-page-when-a-ecs-service-health-check-fails

Unable to use ec2 cloudwatch logs on windows 2016

僤鯓⒐⒋嵵緔 提交于 2020-01-07 03:17:06
问题 I added a \Program Files\Amazon\SSM\Plugins\awsCloudWatch\AWS.EC2.Windows.Cloudwatch.json file as explained to my user-data startup and restarted the ssm service as explained in the documentation for windows 2016. There are no errors in the ssm agent log. However, I do not see AWS.Cloudwatch.exe running, and no logs make it to cloudwatch. I am really interested in just the application and system event logs and the \programdata\amazon\ecs\log directory. If I get that working, I will add the

Spring Cloud Netflix | Eureka not registering when deployed on ECS

北战南征 提交于 2020-01-06 08:47:10
问题 I am trying to deploy Spring Netflix Eureka and related microservice application using ECS and Cloudformation. Eureka is not able to register the related microservices because the docker images are not able to link on hostname. Please suggest what should be the best solution to handle this. 回答1: You should use EC2 instance's host ip instead of docker container host's. In your microservices (if those are spring boot applications), put this code: @Bean @Profile("docker") public

ECS multiple tasks of same service behaviour for scheduler

旧街凉风 提交于 2020-01-06 07:58:12
问题 I have spring boot application. Multiple Fargate tasks of same service is running. Now I have scheduler performed in service. So is scheduler will be performed twice as 2 tasks are running? How it behaves? 回答1: Yes. If the tasks are the same, and you expect each task to execute some work on a schedule, both will run the scheduled work. 来源: https://stackoverflow.com/questions/54333616/ecs-multiple-tasks-of-same-service-behaviour-for-scheduler