aws-code-deploy

How to auto deploying git repositories with submodules on AWS?

99封情书 提交于 2021-02-17 16:37:35
问题 I have a submodule in my git repository and my directory structure is like, app -- folder1 -- folder2 -- submodule @5855 I have deployed my code on AWS by using autodeploy service. Now, on server I have code in the parent-directory but submodule directories are empty. Q1) How can I get data in submodules. My repository on server is not git repository. Do I need to convert it firstly into git repo and then run submodule commands to get it ? Q2) How can I automate the submodule deployment as

How to auto deploying git repositories with submodules on AWS?

為{幸葍}努か 提交于 2021-02-17 16:36:16
问题 I have a submodule in my git repository and my directory structure is like, app -- folder1 -- folder2 -- submodule @5855 I have deployed my code on AWS by using autodeploy service. Now, on server I have code in the parent-directory but submodule directories are empty. Q1) How can I get data in submodules. My repository on server is not git repository. Do I need to convert it firstly into git repo and then run submodule commands to get it ? Q2) How can I automate the submodule deployment as

How to auto deploying git repositories with submodules on AWS?

ぐ巨炮叔叔 提交于 2021-02-17 16:35:15
问题 I have a submodule in my git repository and my directory structure is like, app -- folder1 -- folder2 -- submodule @5855 I have deployed my code on AWS by using autodeploy service. Now, on server I have code in the parent-directory but submodule directories are empty. Q1) How can I get data in submodules. My repository on server is not git repository. Do I need to convert it firstly into git repo and then run submodule commands to get it ? Q2) How can I automate the submodule deployment as

AWS CodePipeline with ECS Blue/Green deployment fails with internal error

牧云@^-^@ 提交于 2021-02-11 14:05:11
问题 I have a CodePipeline set up where changes to code builds and pushes an image to ECR. I am looking to automate updating ECS with the new image as it is built. I have configured the ECS Blue/Green action but when it runs it fails almost immediately with a message about an "Internal Error". There is no failed deployment created in CodeDeploy. I have configured CodePipeline with two inputs: the source code used to build the image a zip in S3 containing the appspec.yaml and the taskdef.json When

How to create a codepipeline to build jar file from java code stored at github and deploy it to lambda function?

[亡魂溺海] 提交于 2021-02-10 14:11:14
问题 I want to build a codepipeline that will get the code(java) from github build a jar file and deploy it to aws lamda(or store the jar in a specific S3 bucket). I only want to use tools provided by AWS platform only. If I am using only Codebuild I am able to build jar from the github code and store it to S3(https://docs.aws.amazon.com/codebuild/latest/userguide/getting-started.html) and I am using a deployer lamda function to deploy the code to my service lamda. Whenever there is any change in

How to create a codepipeline to build jar file from java code stored at github and deploy it to lambda function?

强颜欢笑 提交于 2021-02-10 14:06:29
问题 I want to build a codepipeline that will get the code(java) from github build a jar file and deploy it to aws lamda(or store the jar in a specific S3 bucket). I only want to use tools provided by AWS platform only. If I am using only Codebuild I am able to build jar from the github code and store it to S3(https://docs.aws.amazon.com/codebuild/latest/userguide/getting-started.html) and I am using a deployer lamda function to deploy the code to my service lamda. Whenever there is any change in

AWS CodeDeploy Command Not Found

拜拜、爱过 提交于 2021-02-07 14:35:41
问题 When trying to deploy a Node.js application I'm getting an error npm: command not found in my post_install.sh AfterInstall script. What's super strange is in my BeforeInstall script I run npm install -g pm2 and it works perfectly fine without any errors. Both are being run as the ubuntu user. Why would this command work in one CodeDeploy script and fail in another? 回答1: Looks like I was able to solve this by adding the following to my script files. export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR

AWS ECS Blue/Green CodePipeline: Exception while trying to read the image artifact

爷,独闯天下 提交于 2021-01-28 11:50:55
问题 I wanted to create a CodePipeline which builds a container image from CodeCommit source and afterwards deploys the new image in Blue/Green fashion to my ECS service (EC2 launchtype). The source stage is CodeCommit, which already includes appspec.json as well as taskdef.json The build stage is building the new container & pushing it to ECR successfully, the file imagedefinition.json is the BuildArtifact created at this step, containing the container and the recently created image with its tag

Aws Code pipeline is failing at Deployment stage by timing out

僤鯓⒐⒋嵵緔 提交于 2020-12-27 06:04:26
问题 I am trying to work my way to have a ci/cd for the Api part of the application. I have 3 steps: 1: Source (git hub version2) 2: Build (currently has no commands) 3: Deploy(provider is code deploy(application)) Here is the screenshot of the events in code deploy. . While creating the Deployment Group. I chose the option of downloading the code deploy provider from the option(though it was necessary). While setting up the code pipeline chose Felt that was appropriate. This code pipeline has put

The deployment to Lightsail instances failed because no instances were found for your deployment group

て烟熏妆下的殇ゞ 提交于 2020-12-12 06:16:33
问题 Following from Marci's answer, I went on and tried to deploy from GitHub using the steps he mentions (adapting the region) but I'm getting The deployment failed because no instances were found for your deployment group. Check your deployment group settings to make sure the tags for your Amazon EC2 instances or Auto Scaling groups correctly identify the instances you want to deploy to, and then try again. According to Gabriel in 2017 Lightsail is intended for smaller projects and doesn't