Can anybody please guide me how to easily deploy code from github to aws using aws cpde deploy ? I gave tried my best to deploy my code and it is not working as it gives error every time it launch deploy revision.
You mentioned deployment is failing. So I'm assuming github automatically kicking off the deployment part is working. Now for the deployment failure, do you see the instance being deployed marked failed? Can you also look into the instance and see if the codedeploy agent is running fine and paste the log here if possible?
-Surya
Related
I am trying to create bitbucket pipeline for performing an EC2 deployment using AWS CodeDeploy but it is showing warning at the time of creation which is:
Expected a section but found sequence.
What is this warning about even if I am doing exactly the same way given in documentation.
Below is screenshot:
Someone let me know how can I correct it.
I have setup the NestJs application for AWS Lambda deployment using serverless framework as suggested in the Link
When I do sls offline start it works fine.
But when I do sls deploy -v, it stuck. Refer screen shot below:
serverless.yml looks like:
Any suggestions?
I'm not sure if this helps but I was stuck at the exact same place and in my case it was because the region I had put eu-north-1 was not supported by the Serverless Dashboard. I saw the error message when I manually compiled the typescript and then deployed, without using serverless-plugin-typescript.
Im using codebuild, codepipeline and code deploy on AWS. I want code deploy to deploy a built java jar to an ec2 which is part of an ASG. Pulling the code from github and building goes fine but once code pipeline gets to the deploy phase it pauses for about 5 minutes then fails and gives this message.
The overall deployment failed because too many individual instances
failed deployment, too few healthy instances are available for
deployment, or some instances in your deployment group are
experiencing problems.
I have followed these docs perfectly several times over but still get the error.
Integrating code deploy with auto scaling groups
Create/configure ec2 auto scaling group
Deploy the application
Its as if the deploy stage in code pipeline just doesnt pick up the artifact because no events happen and there is no terminal output durig the deploy phase. It just hangs and then fails 5 minutes later. When i click on the link for the old experience Aws routes you to an old version of code deploy and there I can see an error code
Error code: HEALTH_CONSTRAINTS
But otherwise I dont see any other information. Ive looked at this link too. explanation for health concerns ... But still is no help because I have tried those things and still the problem persists. Any help would be greatly appreciated as I have been at this for a couple days now.
I added tags and it started working. In my case despite them being optional, they were necessary to deploy the application.
Right now I am manually deploying WAR files onto wildfly server(which is hosted on an ec2 instance) but I want to automate this and get rid of the manual deployments.
I build the application using jenkins (from another EC2 instance) and after that i want to deploy to the wildfly server and since i am also planning to user codepipeline, can anyone please tell me how to deploy an applcation on wildfly server using AWS CodeDeploy?
I am new to codedeploy so not that familiar with its usage.
Thank you,
Ajit
Hi #Ajith Code Deploy is the perfect tool for deploying applications in AWS. But it has some limitations, for example to give a source repository for the Code Build/ Code Deploy you can only choose these 3 as the code repository.
AWS Code Commit
AWS S3 Bucket
Guthub
You cant provide your own custom repository or Bitbucket. Please go through the below Examples for deploying applications using Code Deploy. I can't explain all the steps because it have a lot of steps. here they are explaining app deployment using tomcat, replace this with your wildfly scripts.
Deploy Applications From S3 using Code Deploy.
I'm using CircleCI with AWS CodeDeploy to automate the deployment of my app on EC2 from a Github repository.. The problem is that the build is always getting retried with this message given:
"Looks like we had a bug in our infrastructure, or that of our providers (generally GitHub or AWS). We should have automatically retried this build. We've been alerted of the issue and are almost certainly looking into it, please contact us if you're interested in the cause or if the problem persists."
The last step the build stops after is called: "Bootstrap AWS CodeDeploy"
I don't know whether the problem is from the circle.yml file or the appspec.yml file!
Any Help??
Are you able to see a deployment created on your AWS CodeDeploy console? If a deployment is created, then it means the build process succeeded, but the deployment failed. If deployment is failed, you can try to see the root cause for further investigation. Otherwise the failure should be something related to CircleCI.
Thanks,
Binbin