aws-code-deploy

AWS Code Deploy EC2/On-premises yml file error on from s3 to windows server

女生的网名这么多〃 提交于 2020-06-28 08:42:16
问题 i am struggling since 2 days, but i can not find proper answer, and also in google there are no refrence that i can solve error. what i have did i have created deployment in aws code deploy, have attach role with awscodeeployrole, created zip from application created Appspec.yml file as below version: 0.0 os: windows files: - source: AdvertApiPublish.zip destination: C:\inetpub\wwwroot i uploaded zip file including appspec file, and do deployment i got following error The deployment failed

AWS CodeDeploy ymal file error

时光毁灭记忆、已成空白 提交于 2020-06-28 06:00:25
问题 I am deploying an application using AWS code deploy to Windows environment. I use an apspec.yml yaml file. When I deploy the application I get following error The deployment failed because an invalid version value () was entered in the application specification file. Make sure your AppSpec file specifies "0.0" as the version, and then try again. It seems like there is a problem with encoding or line ending. All the materials in the internet are for linux but not for windows. I use visual

How to write appspec.yml for Ruby on Rails on AWS CodeDeploy

送分小仙女□ 提交于 2020-06-24 10:25:55
问题 I'm trying to migrate my Rails app from Heroku to AWS. I got my AWS CodePipeline working up until the last bit, writing the appspec.yml for CodeDeploy. This requires me to write Ubuntu commands to stop my application, possibly do some migration stuff, and then start the application again. This is not my strong suit so I am struggling a bit with this part. I thought I'd start with executing "rails server" as "AfterInstall" action. But then I openend up a whole box of new problems, i.e. there

AWS EC2 UserData Script Doesn't Fire on t3 instances

此生再无相见时 提交于 2020-04-18 03:47:29
问题 I have a pretty simple userdata script that installs the CodeDeploy agent on ubuntu and then emits a signal to CloudFormation indicating the instance is healthy. My stack is deployed using CloudFormation, which sets up an ASG, LaunchTemplate, TargetGroup, etc. The target instance type is Ubuntu 18.04 (ami-07ebfd5b3428b6f4d AMI) on t3.small instances. I previously had the same problem on a different AMI, but upgrading to ami-07ebfd5b3428b6f4d seemed to fix it temporarily...it worked for

AWS CodePipeline “An AppSpec file is required, but could not be found in the revision”

风流意气都作罢 提交于 2020-04-16 05:40:40
问题 I'm trying to set up a deployment pipeline using CodeCommit, ECR and ECS. My pipeline passes the source and build steps fine. I can deploy manually via CodeDeploy if I upload my appspec.yaml file to an s3 bucket. Deploys triggered by a change to my CodeCommit repository always fail with the error: An AppSpec file is required, but could not be found in the revision When I look at the details of the failed deployment, I can pull up the revision location, which shows this: I see in the

CodePipeline ECS Blue/Green Deployment cross account fails with PermissionError

十年热恋 提交于 2020-03-05 06:21:07
问题 I'm trying to set up CodePipeline with an ECS blue/green deployment where the deployment is in a different AWS account. I've been using the two guides for ECS Blue/Green and CodePipeline cross-account deployments. CodePipeline lives in Account A along with its KMS Key, S3 artifact bucket and ECR repository. The ECS cluster lives in Account B with the CodeDeploy setup. The ECR, KMS key and S3 buckets have cross-account permissions (these give a different error when wrong). The cluster starts

Amazon EFS: Changing Wordpress upload directory to outside root

旧街凉风 提交于 2020-01-25 07:24:07
问题 I have multiple AWS EC2 instances which are updated from a Git repository via CodeDeploy. However, since keeping the wp-content/uploads folder in Git is messy and hard to maintain, I'm instead trying to move all uploads to a directory which I have mounted as an EFS filesystem. That way I should be able to share the uploads between multiple EC2 instances. However, now I'm running into a new problem; there's no way for me to set the WP uploads folder to be outside of the WP root. WordPress is

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: