Questions tagged [aws-code-deploy-appspec]

36 questions
1
vote
1 answer

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

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…
1
vote
1 answer

appspec.yml is unable to run the script

I am unable to run the script mentioned in appspec.yml file for my node.js project. Have provided the execute permission to the runas user too. Also, changing the runas to ec2-user is not helping since the script is running with root user only.…
Pratztr
  • 57
  • 9
0
votes
1 answer

how can i solve this aws codedeploy error

Hi guys when I am trying to deploy a simple java app through code deploy iam getting this error The CodeDeploy agent did not find an AppSpec file within the unpacked revision directory at revision-relative path \"appspec.yml\" the zip file in s3 has…
0
votes
0 answers

Shell script and destination source for appspec.yml file for Codedeploy

I am fairly new to this. I am trying to put into practice ETL. I have a flask application with requirement.txt file in the root directory. I am trying to build a appspec.yml file in order to deploy the code on ec2/on-premise using Codedeploy. My…
Adi
  • 1
  • 1
0
votes
0 answers

How do i skip a code-pipeline event on second build?

I have an auto scaling group which associate with my code-pipeline so when there's a changes from my git project and it will auto deploy. So now I want my code-pipeline to skip event on Beforeinstall and Afterinstall for existing instance/second…
0
votes
0 answers

AWS codedeploy doesn't get all the files from its s3 bucket

i'm using codepipeline and my codebuild is working correctly, i can see the output of it is an s3 bucket with the 3 files/folders i've specified in buildspec.yml (appspec.yml, the "publish" folder of the .net api, and the "deploy-scripts" folder +…
0
votes
0 answers

How to deploy 2 CodeCommit repositories using CodeDeploy and CodePipeline with the same appspec.yml?

I have 3 CodeCommit repositories: Repo 1: App A files Repo 2: App B files Repo 3: Some config files for apps A and B + appspec.yml I would like to create 2 CodePipelines deploying my apps on an EC2. The first one taking Repo1 and Repo3 and then the…
0
votes
0 answers

AWS CodeDeploy No space left on device With PNPM Project

Recently, I start NestJS project with PNPM. every steps are very okay but when I deploy project to EC2 I got this AWS CodeDeploy Error as you can see my EC2 storage got full. this problem happened every CodeDeploy install event hook... this is a…
0
votes
1 answer

CodeDeploy running outdated appspec, scripts file

I configured appspec.yml as below: ` version: 0.0 os: linux files: - source: /war/stg/ROOT.war destination: /opt/iplass01/tomcat/webapps/ file_exists_behavior: OVERWRITE hooks: ApplicationStop: - location: scripts/stop_tomcat_server …
0
votes
2 answers

Deploy fails with AppSpec formatting error from CLI, same file works in console

I'm kicking off a CodeDeploy deployment with the following command: aws deploy create-deployment --cli-input-json file://create-deployment.json My create-deployment.json file looks like this: { "applicationName": "myapp", …
0
votes
1 answer

creating a GNU screen during deployment by AWS codeDeploy

I am trying to create a Linux screen during the deployment using AWS codeDeploy. The purpose is to run the application inside a screen. I want codeDeploy being able to create a screen in detached mode and start the application inside it. I tried…
0
votes
1 answer

CodeDeploy not properly copying code from GitHub

I have CodeDeploy pull code from my GitHub repo. In the deployment Commit ID (for GitHub) I have specified the Commit ID that I want to deploy. My repo has the following structure: my-service/ README.md .gitignore scripts/ …
hotmeatballsoup
  • 385
  • 6
  • 58
  • 136
0
votes
0 answers

Can I prevent specific directory files from being locked by the dotnet.exe process on IIS Windows server?

I am using CodeDeplpy to deploy several IIS applications on a Windows 2019 server. During the deployment of one of my .Net Core 3.1 applications I noticed this error: Permission denied @ unlink_internal -…
Georgi Koemdzhiev
  • 11,421
  • 18
  • 62
  • 126
0
votes
0 answers

AWS CodeDeploy to EC2 not updating modified date for files

My deployment is putting the files on the server but all of the files have a modified time of 0 so Apache isn't hosting the updated files. I added an AfterInstall script that is supposed to touch every file in the directory but it's not working for…
0
votes
1 answer

Deciphering AWS CodeDeploy's config and appspec pathing

I have an appspec.yml file sitting in the root of a revision (artifact) I am deploying from CodeCommit: version: 0.0 os: linux files: - source: / destination: /home/ec2-user/app/aws file_exists_behavior: OVERWRITE hooks: ApplicationStart: …