Capistrano make a new ami after deployHow to deploy to a single specific server using CapistranoUsing capistrano to deploy from different git branchesnew Capistrano version 2.6.0 deploy error: `sync' is not implemented by Capistrano::Deploy::SCM::None (rsync with remote cache)Autoscaling on EC2 with Rails & Capistrano DeploymentsCapistrano 3 is not deploying new codedeploying php with capistrano v3Capistrano invoke deploy multiple times?How to create AMI at runtime using AWS Lambda?Capistrano 3: way to handle different deploy flowsCapistrano and Auto-Scaling AWS
Meaning of じゃないんじゃない?
Different budgets within roommate group
Should I report a leak of confidential HR information?
How to organize members in a struct to waste least space on alignment?
Are gliders susceptible to bird strikes?
How did installing this RPM create a file?
What exactly did Ant-Man see that made him say that their plan worked?
How can I deal with extreme temperatures in a hotel room?
Was it really unprofessional of me to leave without asking for a raise first?
What's the rule for a natural 20 on a Perception check?
Is it okay to fade a human face just to create some space to place important content over it?
Why won't the ground take my seed?
Can White Castle? #3
Can a nowhere continuous function have a connected graph?
Adjective for 'made of pus' or 'corrupted by pus' or something of something of pus
Why is Japan trying to have a better relationship with Iran?
Is there reliable evidence that depleted uranium from the 1999 NATO bombing is causing cancer in Serbia?
Could a Weapon of Mass Destruction, targeting only humans, be developed?
How can a valley surrounded by mountains be fertile and rainy?
I hit a pipe with a mower and now it won't turn
How to securely dispose of a smartphone?
Losing queen and then winning the game
Sharing referee/AE report online to point out a grievous error in refereeing
Can the Raspberry Pi 4 better distribute Python scripts to all four cores?
Capistrano make a new ami after deploy
How to deploy to a single specific server using CapistranoUsing capistrano to deploy from different git branchesnew Capistrano version 2.6.0 deploy error: `sync' is not implemented by Capistrano::Deploy::SCM::None (rsync with remote cache)Autoscaling on EC2 with Rails & Capistrano DeploymentsCapistrano 3 is not deploying new codedeploying php with capistrano v3Capistrano invoke deploy multiple times?How to create AMI at runtime using AWS Lambda?Capistrano 3: way to handle different deploy flowsCapistrano and Auto-Scaling AWS
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have a multi-server deploy happening on AWS.
I have a requirement where after deploy I need to create a new AMI and update my autoscaling group to use this new AMI.
What is the best approach to do this using Capistrano.
amazon-web-services capistrano capistrano3
add a comment |
I have a multi-server deploy happening on AWS.
I have a requirement where after deploy I need to create a new AMI and update my autoscaling group to use this new AMI.
What is the best approach to do this using Capistrano.
amazon-web-services capistrano capistrano3
add a comment |
I have a multi-server deploy happening on AWS.
I have a requirement where after deploy I need to create a new AMI and update my autoscaling group to use this new AMI.
What is the best approach to do this using Capistrano.
amazon-web-services capistrano capistrano3
I have a multi-server deploy happening on AWS.
I have a requirement where after deploy I need to create a new AMI and update my autoscaling group to use this new AMI.
What is the best approach to do this using Capistrano.
amazon-web-services capistrano capistrano3
amazon-web-services capistrano capistrano3
edited Mar 25 at 13:15
Qaiser Wali
asked Mar 25 at 12:52
Qaiser WaliQaiser Wali
1863 silver badges20 bronze badges
1863 silver badges20 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Using CodeDeploy directly might be your best bet. However, you can write a Capistrano task using the AWS SDK to do whatever you want (it's just Ruby).
Will CodeDeploy update the AMI and also set up the autoscaling process?
– Qaiser Wali
Mar 25 at 14:48
I'm not very familiar with the specifics of CodeDeploy, I just have a similar setup at my company (done by others). My understanding is that codedeploy has an agent that runs on the EC2 instances and updates them, then newly started instances due to autoscaling know how to set themselves up with new code. If you want to bake the application into the AMI, I have no experience with that. If you want to pursue CodeDeploy, you probably should make a new SO question about that so you get better help. (Alternatively, Docker and ECS are great here, but that's not your question. :)
– will_in_wi
Mar 26 at 15:40
I went the shell script route and using CLI am able to create the AMI after deploy.
– Qaiser Wali
Mar 27 at 16:04
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55338262%2fcapistrano-make-a-new-ami-after-deploy%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Using CodeDeploy directly might be your best bet. However, you can write a Capistrano task using the AWS SDK to do whatever you want (it's just Ruby).
Will CodeDeploy update the AMI and also set up the autoscaling process?
– Qaiser Wali
Mar 25 at 14:48
I'm not very familiar with the specifics of CodeDeploy, I just have a similar setup at my company (done by others). My understanding is that codedeploy has an agent that runs on the EC2 instances and updates them, then newly started instances due to autoscaling know how to set themselves up with new code. If you want to bake the application into the AMI, I have no experience with that. If you want to pursue CodeDeploy, you probably should make a new SO question about that so you get better help. (Alternatively, Docker and ECS are great here, but that's not your question. :)
– will_in_wi
Mar 26 at 15:40
I went the shell script route and using CLI am able to create the AMI after deploy.
– Qaiser Wali
Mar 27 at 16:04
add a comment |
Using CodeDeploy directly might be your best bet. However, you can write a Capistrano task using the AWS SDK to do whatever you want (it's just Ruby).
Will CodeDeploy update the AMI and also set up the autoscaling process?
– Qaiser Wali
Mar 25 at 14:48
I'm not very familiar with the specifics of CodeDeploy, I just have a similar setup at my company (done by others). My understanding is that codedeploy has an agent that runs on the EC2 instances and updates them, then newly started instances due to autoscaling know how to set themselves up with new code. If you want to bake the application into the AMI, I have no experience with that. If you want to pursue CodeDeploy, you probably should make a new SO question about that so you get better help. (Alternatively, Docker and ECS are great here, but that's not your question. :)
– will_in_wi
Mar 26 at 15:40
I went the shell script route and using CLI am able to create the AMI after deploy.
– Qaiser Wali
Mar 27 at 16:04
add a comment |
Using CodeDeploy directly might be your best bet. However, you can write a Capistrano task using the AWS SDK to do whatever you want (it's just Ruby).
Using CodeDeploy directly might be your best bet. However, you can write a Capistrano task using the AWS SDK to do whatever you want (it's just Ruby).
answered Mar 25 at 14:20
will_in_wiwill_in_wi
2,1901 gold badge11 silver badges20 bronze badges
2,1901 gold badge11 silver badges20 bronze badges
Will CodeDeploy update the AMI and also set up the autoscaling process?
– Qaiser Wali
Mar 25 at 14:48
I'm not very familiar with the specifics of CodeDeploy, I just have a similar setup at my company (done by others). My understanding is that codedeploy has an agent that runs on the EC2 instances and updates them, then newly started instances due to autoscaling know how to set themselves up with new code. If you want to bake the application into the AMI, I have no experience with that. If you want to pursue CodeDeploy, you probably should make a new SO question about that so you get better help. (Alternatively, Docker and ECS are great here, but that's not your question. :)
– will_in_wi
Mar 26 at 15:40
I went the shell script route and using CLI am able to create the AMI after deploy.
– Qaiser Wali
Mar 27 at 16:04
add a comment |
Will CodeDeploy update the AMI and also set up the autoscaling process?
– Qaiser Wali
Mar 25 at 14:48
I'm not very familiar with the specifics of CodeDeploy, I just have a similar setup at my company (done by others). My understanding is that codedeploy has an agent that runs on the EC2 instances and updates them, then newly started instances due to autoscaling know how to set themselves up with new code. If you want to bake the application into the AMI, I have no experience with that. If you want to pursue CodeDeploy, you probably should make a new SO question about that so you get better help. (Alternatively, Docker and ECS are great here, but that's not your question. :)
– will_in_wi
Mar 26 at 15:40
I went the shell script route and using CLI am able to create the AMI after deploy.
– Qaiser Wali
Mar 27 at 16:04
Will CodeDeploy update the AMI and also set up the autoscaling process?
– Qaiser Wali
Mar 25 at 14:48
Will CodeDeploy update the AMI and also set up the autoscaling process?
– Qaiser Wali
Mar 25 at 14:48
I'm not very familiar with the specifics of CodeDeploy, I just have a similar setup at my company (done by others). My understanding is that codedeploy has an agent that runs on the EC2 instances and updates them, then newly started instances due to autoscaling know how to set themselves up with new code. If you want to bake the application into the AMI, I have no experience with that. If you want to pursue CodeDeploy, you probably should make a new SO question about that so you get better help. (Alternatively, Docker and ECS are great here, but that's not your question. :)
– will_in_wi
Mar 26 at 15:40
I'm not very familiar with the specifics of CodeDeploy, I just have a similar setup at my company (done by others). My understanding is that codedeploy has an agent that runs on the EC2 instances and updates them, then newly started instances due to autoscaling know how to set themselves up with new code. If you want to bake the application into the AMI, I have no experience with that. If you want to pursue CodeDeploy, you probably should make a new SO question about that so you get better help. (Alternatively, Docker and ECS are great here, but that's not your question. :)
– will_in_wi
Mar 26 at 15:40
I went the shell script route and using CLI am able to create the AMI after deploy.
– Qaiser Wali
Mar 27 at 16:04
I went the shell script route and using CLI am able to create the AMI after deploy.
– Qaiser Wali
Mar 27 at 16:04
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55338262%2fcapistrano-make-a-new-ami-after-deploy%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown