Timeline for Where to start? Scaling PHP applications on AWS
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 28, 2017 at 2:54 | comment | added | Yevgeniy Brikman | @Mick If you define your AMI using a tool like Packer, then building a new AMI will be completely automated, so it's completely reasonable to build a new one after every commit. You could even extract all the dependencies that don't change often into a "base" AMI and use that as the "source" for your app AMI so the build is effectively just copying in your new code. Alternatively, look into Docker, which, due to caching, can allow you to build new images in seconds. | |
Sep 27, 2017 at 7:55 | comment | added | Mick | aws.amazon.com/answers/configuration-management/aws-ami-design | |
Sep 27, 2017 at 7:44 | comment | added | Mick | Thanks (apologies for doubting you), I have done a bit more reading since I posted and now understand Immutable and Mutable. I'm just not sure what is best for us, we tend to do small changes and often and I'm not sure I want to build a new AMI everytime we update the code. | |
Sep 27, 2017 at 3:30 | comment | added | Yevgeniy Brikman | @Mick Heh, yea, pretty sure :) The approach I'm describing is called "Immutable Infrastructure". If you google it, you'll find plenty books and blog posts on the topic (I also talk about it in my own book, Terraform: Up & Running). The idea is to create immutable, versioned images that have all of your application code baked in. You can then promote the exact same image from environment to environment and easily roll back if there is any issue. There are many ways to do it, such as using Packer to build AMIs or Docker to build Docker images. | |
Sep 26, 2017 at 13:32 | comment | added | Mick | Are you sure about this?: "The AMI you run on each instance in the ASG should have your app already installed ". My Manager strongly believes that the application code should not be part of the AMI. Do you have a reference for this? | |
Sep 24, 2017 at 17:03 | history | edited | Yevgeniy Brikman | CC BY-SA 3.0 |
added 3 characters in body
|
Sep 24, 2017 at 3:21 | review | First posts | |||
Sep 24, 2017 at 5:29 | |||||
Sep 24, 2017 at 3:16 | history | answered | Yevgeniy Brikman | CC BY-SA 3.0 |