Questions tagged [aws-code-deploy-appspec]
36 questions
2
votes
1 answer
Deploy NodeJS server to AWS CodeDeploy ApplicationStart timeout
Im deploying a Nodejs server using a appspec.yml file with the following content
version: 0.0
os: linux
files:
- source: /
destination: /home/ubuntu/SimpleNodeJSServer
overwrite: true
file_exists_behavior: OVERWRITE
hooks:
AfterInstall:
…

Coni Wright
- 88
- 5
2
votes
1 answer
Why do I get The deployment failed because no instances were found in your green fleet when using AWS CodeDeploy?
This error is coming up when I try to deploy to my staging environment. I have a running ec2 instance and I have it correctly set to code deploy, but I see that in the error I have no replacement instances. Do I need one?
The code-pipeline path is…

HelpTheNoob
- 41
- 1
- 7
2
votes
1 answer
AWS CodeDeploy Appspec.yml files are not being copied to destination
My files are properly copied to an EC2 instance for deployments, but they are not copied to the destination. I've got at appspec.yml file like this:
ubuntu@ip:~$ cat /opt/coded*/deployment-root/*/*/de*/appspec.yml
version: 0.0
os: linux
# I also…

acw
- 807
- 3
- 15
2
votes
1 answer
Lerna on AWS CodeBuild & CodeDeploy Not Installing Local Dependencies
So I have a Typescript project called backend with a depedency like such in its package.json:
"dependencies": {
"@the-couple-game/helpers": "^1.0.0",
}
And helpers (also Typescript) is in another folder with its package.json like such:
{
…

Teddy
- 111
- 6
2
votes
2 answers
CodeDeploy pipeline not finding AppSpec.yml - but is clearly available
I've had this running months ago, so I know it works, but have created a new EC2 instance to deploy my code and stuck at the first hurdle.
My Deployment Details runs as follows:
Application Stop - succeeded
Download Bundle - succeeded
BeforeInstall…

JasonMHirst
- 576
- 5
- 12
- 31
2
votes
2 answers
AWS CodePipline (CI/CD) to update the code of an existing AWS Lambda (not created with CloudFormation or SAM)
I need to build a CI/CD pipeline that updates the code of an existing Lambda Function that was created using the console.
Creating a new one is not an option!
I was successful deploying the code using CloudFormation in the Deploy Stage but, it can…

taiphalili
- 21
- 2
2
votes
1 answer
CodeDeploy hooks running scripts in the agent instalation folder
So, I'm setting up my first application that uses CodeDeploy (EC2 + S3) and I'm having a very hard time to figure out how to run the scripts after instalation.
So I defined an AfterInstall hook in the AppSpec file refering to my bash script file in…

Victor Ferreira
- 6,151
- 13
- 64
- 120
1
vote
1 answer
appspec.yml does not execute scipts
I am building the code pipeline using aws code pipeline and for that I build a appspec.yml file to deploy on server the appspec files portion work correctly and bring the code from source to destination and then It does not execute the Scripts in…

Rehan Akhtar
- 35
- 3
1
vote
0 answers
Deployment life-cycle events AWS code deploy
I have a react application and using AWS CodeDeploy to deploy the changes. Deployment is working fine with ECS but the Install lifecycle event takes too much time. According to the AWS Documentation:
Install – During this deployment lifecycle event,…

Kaushal panchal
- 435
- 2
- 11
1
vote
0 answers
Ruby version mismatch while deploying Rails App with AWS CodeDeploy and CodePipeline Scripts on Ubuntu 20.0 EC2
So my Rails Application is running on Ruby2.5.7 and Rails 5.1.5. I have added appspec.yml which include multiple scripts to setup my app like
Setting up ENV variables
Installing Gems
Migrations
Assets Compile etc.
I have also installed rbenv and…

Gurpreet Singh
- 209
- 1
- 9
1
vote
0 answers
AppSpec file was expected but not found at path "/opt/codedeploy-agent/deployment-root/843bf9-ac/d-0PULFH/deployment-archive/appspec.yml
i am trying to codedeploy into my local ubuntu system, via aws on-premises codedeployment.
the content from my remote repository successfully got downloaded to my local ubuntu as bundle.tar and unzipped all the contents in deployment-archives…

Amey Fadte
- 21
- 4
1
vote
1 answer
AWS | Laravel | ECS(G/B) | CodeDeploy unfinish
I'm using Laravel.
I want to deploy it to ECS (B/G) to see how it works.
In the development environment, Laravel is running.
I was able to launch my Laravel project on EC2 using docker.
I want to use Fargate for the first time and deploy to…

mi1999
- 11
- 1
1
vote
0 answers
What properties are defined on the event passed to an AWS appspec lambda hooks function?
An AWS codedeploy lambda hooks function accepts three parameters:
exports.handler = (event, context, callback) =>…

Troup
- 573
- 5
- 17
1
vote
2 answers
How to codedeploy appspec.yml runas ubuntu user
AWS CodeDeploy is used for a simple WordPress application. Installed AWS codedeploy-agent on ubuntu 20.04 with help of the below script
#!/bin/bash
apt update
apt install ruby -y
gem install bundler
git clone…

bibincatchme
- 333
- 4
- 10
1
vote
1 answer
Amazon EC2 | CodeDeploy [React] - Deployment succeeds but build folder not populated
TL;DR The command npm run build is taking forever to run on the Amazon EC2 [Ubuntu] instance when I tried running it explicitly by making an SSH. Meanwhile, when I try to create a deployment using CodeDeploy, the deployment takes a good 1 hour time…

Rahul Sharma
- 358
- 2
- 10