aws-code-deploy

Is it possible to use AWS CodePipeline with Lightsail?

旧时模样 提交于 2020-01-14 08:36:09
问题 I'm working all the day and couldn't find the answer. So I'm asking you guys: is it possible to use AWS Pipeline with AWS Lightsail? My objective is to store the code inside CodeCommit and use CodeBuild, CodeDeploy, CodePipeline and S3 to create a Continuous Deployment inside a Lightsail instance. Those are the steps I think I have to follow to accomplish the task: [x] setup a Lightsail instance [x] create an IAM user and set permissions [x] transfer my repository to CodeCommit [x] create an

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',

CodePipeline: CodeDeploy reports “BundleType must be either YAML or JSON”

此生再无相见时 提交于 2020-01-12 09:31:24
问题 buildspec.yml: version: 0.2 phases: build: commands: - echo Build started on `date` - echo Compiling the Python code... - python HelloWorld_tst.py post_build: commands: - echo Build completed on `date` artifacts: files: - HelloWorld.py - appspec.yml discard-paths: yes appspec.yml version: 0.0 Resources: - autovisionfunction: Type: AWS::Lambda::Function Properties: Name: "autovisionfunction" Alias: "staging" CurrentVersion: "1" TargetVersion: "2" Seems while in CodePipeline can't find appspec

CodePipeline: CodeDeploy reports “BundleType must be either YAML or JSON”

我是研究僧i 提交于 2020-01-12 09:29:02
问题 buildspec.yml: version: 0.2 phases: build: commands: - echo Build started on `date` - echo Compiling the Python code... - python HelloWorld_tst.py post_build: commands: - echo Build completed on `date` artifacts: files: - HelloWorld.py - appspec.yml discard-paths: yes appspec.yml version: 0.0 Resources: - autovisionfunction: Type: AWS::Lambda::Function Properties: Name: "autovisionfunction" Alias: "staging" CurrentVersion: "1" TargetVersion: "2" Seems while in CodePipeline can't find appspec

Environment variables using AWS CodeDeploy

耗尽温柔 提交于 2020-01-01 03:58:08
问题 I have a web application that utilizes environment variables for some of its configuration (DB credentials, API keys, etc). I'm currently using Elastic Beanstalk for deployment and can easily set these from within AWS, which is great because I don't have this sensitive data in my code base. However, I'm looking into switching from Elastic Beanstalk so I can leverage a bit more flexibility with my web instances, and naturally I'm looking into deploying (from my Codeship CI setup) using

CodeDeploy: The specified load balancer does not exist

雨燕双飞 提交于 2019-12-25 00:17:56
问题 I'm trying to associate an ELB (NLB actually) with a CodeDeploymentGroup, using the prescribed format of ElbInfoList. This is in CloudFormation. CodeDeploy won't have it. During deploy, it says, > *The specified load balancer does not exist. for activityId="5" of activityType={Name: > ExecuteCentralizedCommandOnInstanceActivity.runCentralizedCommand,Version: > 1.00}* My deployment group looks like so: "CodeDeploymentGroup" : { "Type" : "AWS::CodeDeploy::DeploymentGroup", … "Properties" : {…

Ec2TagFilters in deployment group for ComputePlatform: Lambda

无人久伴 提交于 2019-12-24 00:56:05
问题 I'm trying to work my way through a Cloud Formation stack creation. The stack includes an AWS::CodeDeploy::Application using CodePlatform: Lambda . It also has an AWS::CodeDeploy::DeploymentGroup . If I run create-stack without the deployment group present, everything seems to work. I can then go into the web UI, and add the deployment group by hand. But if I describe the deployment group in the template, and run create-stack , the create of the deployment group fails, and the stack gets

NPM issue deploying a nodejs instance using AWS codedeploy

巧了我就是萌 提交于 2019-12-22 04:16:43
问题 I am currently trying to automate deployment of a nodejs application to an EC2 instance via Github and AWS Codedeploy. I have followed the instructions from here as closely as possible, but I have hit a snag with my AfterInstall hook event. Here is my yml file: version: 0.0 os: linux files: - source: /backend destination: /home/ec2-user/signal permissions: - object: / pattern: "**" owner: ec2-user group: ec2-user hooks: ApplicationStop: - location: backend/app/deploy/stop.sh timeout: 10 runas

AWS CodeDeploy AfterInstall script is being run from code-deploy agent dir

寵の児 提交于 2019-12-22 02:06:17
问题 I'm trying to run AfterInstall script in AWS code deploy, but it is being run from the /opt/codedeploy-agent/ dir instead of my app directory. This is how appspec.yml file looks like: version: 0.0 os: linux files: - source: / destination: /tmp/epub hooks: AfterInstall: - location: server/install-packages.sh runas: root As you can see it's a basic example. Now, the bash script looks like this: #!/bin/bash npm install I just want to npm install and that's it. Unfortunately I'm getting the error