r/aws • u/PenitentPotato • Feb 03 '24
discussion Example of why AWS is needlessly complicated
So, after like 80+ hours trying to work with AWS setups, and googling "why is AWS so needlessly complicated" to find solidarity with other people who have had similar issues, I figured I'd type out an example to explain why this sentiment is common.
Step 1: spin up an Elastic Beanstalk instance for a backend environment, PHP 8.2 on AmazonLinux 2023.
AWS: fail! Your instance type for whatever reason doesn't work for this availability zone.
Me: Okay...wish ya'll would have said as much beforehand. I'll edit this and fix that.
AWS: Lollll...nope, you can't edit it. Gotta delete and start from scratch!
Me: Ugh. Seems needless. Okay, will do.
[10 tries and 10 similar errors (can't spin up single instance, because it throws a load balancer error, can't do simple logging, needs enhanced, so on, so on)
AWS: Okay, you finally figured out the combination of steps and you have a working instance.
Step 2: Now, I need to modify this instance. Need to install redis and install some image libraries...EPEL, etc..
AWS: LOL! Nope.
Me: What do you mean, nope? Your platform specifically said that Amazon Linux 2023 is the best version to use with AWS hardware and is the most capable...
AWS: It is the best.
Me: But...you don't have any libraries to install pretty generic stuff.
AWS: Correct.
Me: How does that make sens...okay, never mind. I'll install from source...phpize, configure, make and make install....
AWS: Libraries installed.
Step 3: Whew. I'm out of breath. Now let's add an elastic file system.
AWS: Done. But it will delete on reboot. We're edgy like that.
Me: Okay...not even going to say that was unexpected, so I'll follow the link buried in the footer of the EFS guide and make it persistent with fstab....
Step 4: Deploy code
Me: Okay, let's deploy some of the latest code.
AWS Code Pipleline: answer me these questions 50, or errors I shall give thee!
Me: I beg. Here are answers. (After try 30).
AWS Code Pipeline: I begrudgingly grant thee success to the next stage!
Step 5: Moving on. Let's set up a redis cluster.
AWS: Done.
Me: That was easy. Too suspiciously easy. Let's load up the app...
App: FATAL ERROR. REDIS KEY MISMATCH.
Me: W.T.F?
[3 hours of Googling later: can't use cluster mode for redis because it gives apps a sad!]
Me: GFDI.
AWS: hahahahahaha
Me: I'll figure out how to get this into single mode one way or the other!
AWS: nanana - good luck finding out the button combination to make that happen!
[45 minutes of googling later].
Me: Found it. Okay, redis spun up. Good lord. Is this setup run by Chuckey?
Step 6: Make this change persistent so the elastic beanstalk instance reflects the changes in the future.
Me: Okay. Finally! We're done. Let's create an AMI off of this, and deploy it on beanstalk...
Beanstalk: this AMI gives me a tummy ache. Tummy ache bad!
Me: Please don't have a tummy ache Mr. Beanstalk, I just need you to load up the AMI.
Beanstalk: grumble grumble.
Me: Okay, let's deploy the latest code change.
AWS: Code deployed.
Beanstalk: grumble grumble
EC2: No code change reflected.
Me: Wait? What? Why? Why don't you work?
AWS:....
Me, to AWS: AWS. I made this shiny new AMI for you to load up this configuration I spent all this time working on. Why is it giving Beanstalk a tummy ache?
AWS: LOLLLLLLLLLLLLLLLLL. You can't make an AMI off of the beanstalk EC2 instance, silly! Did you HONESTLY think you could do something so ridiculously dumb? [Sinister clown music plays]
Me: But...But...I configured the instance like the guides and I just want the configuration to save!
AWS: LOOLLLLOLLLOLLLLLL!!!!! Silly rabbit, common sense is for losers! What you should have done after spending all that time creating a beanstalk instance, is to DO IT ALL AGAIN in an EC2 instance, then figure out exactly how to create a custom AMI based on that original elastic beanstalk AMI that you then modify, and then clone as its own AMI, to pipe back into beanstalk as the deployment AMI!
Me: Wait. What? WTF? WHAT IS WRONG YOU WITH YOU?
AWS: [Sinister clown music plays]. If you want to travel from Boston to Washington D.C., you don't want to just fly south, do you? No! You want to fly NORTH, over the pole, and then take a rocket to Mars, bounce off the planet, to have a colonoscopy in Jupiter, before passing through hell's nine circles to arrive at D.C. It's better this way. [Clown music intensifies]
Me: I beg!
AWS: Beg harder!
Step 7: Embrace the suck, and beg harder.
Me: FUCK IT. FINE! How do I create this instance?
AWS: run this command:
aws elasticbeanstalk describe-platform-version --region us-east-2\ --platform-arn "arn:aws:elasticbeanstalk:us-east-2 ::platform/Tomcat 8.5 with Java 8 running on 64bit Amazon Linux /3.1.6 " \ --query PlatformDescription.CustomAmiList
Me: Wait, I'm not running Tomcat or Java. What do I enter here in order to get this new AMI I need to create from the original AMI so I can make the new AMI to deploy over the default AMI to get a working AMI, well, working?
AWS: it's all in that guide. That tells you nothing. Haha!
Me: Okay...I guess I'm looking for PHP something. I'll start trial and error.
AWS: need to install console libraries!
Me: FFS.
Step 8: Embrace the suck, and install console libraries.
Me: ok...let's just get this over with.
AWS: need key.
Me: How...where, do I do that?
[Google: set up IAM bullshit. Devote another hour. Do not pass go or collect $200].
Each entry thereafter:
AWS, in Edward Nerdy's voice from Jurassic Park: Nuh uh uh, you didn't say the magic word! Nuh uh uh, you didn't say the magic word! Nuh uh uh, you didn't say the magic word! Nuh uh uh, you didn't say the magic word! Nuh uh uh, you didn't say the magic word! Nuh uh uh, you didn't say the magic word! Nuh uh uh, you didn't say the magic word! Nuh uh uh, you didn't say the magic word! Nuh uh uh, you didn't say the magic word!
After stackoverflowing and serverfaulting and googling and screaming:
Magic word found. AMI discovered:
aws elasticbeanstalk describe-platform-version --region us-east-1 --platform-arn "arn:aws:elasticbeanstalk:us-east-1::platform/PHP 8.2 running on 64bit Amazon Linux 2023/4.0.4"
I got the AMI ID. Finally. FINALLY.
AWS: silence.
Me: Okay, AWS, now can we please just let an AMI be created so I can go to bed and get a working setup?
AWS: Sure! Sure... š
āā
I will update this post with the next trial put in front of me. I think I need to pipe environment variables into an EC2 instance and make changes to the nginx configuration. To do this, AWS seems to suggest that I need to fight a tiger that Danny DeVito is sitting on top of with a rocket launcher in his hand, while at the same time translating technical blueprints written in Japanese into ancient Latin, with Sanskrit-influenced inflections written in perfect cursive. I also many need to go back to Jupiter to fetch a magic bean. I'm unsure if I'm supposed to plant it or eat it, and if the latter, whether it gives me super powers or will kill me on the spot. The documentation seems to suggest both - I just have to put the flim flam in the flizzle flazzle and just move the popspot into the skiperiedoodledaddledo, multiply by the blopitybloop and whopdidapperpaddle the appliflubber, and that should get it working.
The journey continues.
23
Feb 03 '24
You already screwed up with Step 1. Who even uses Beanstalk these days?
-12
u/PenitentPotato Feb 03 '24
People who donāt have a crystal ball that tells them not to use a service. I canāt read minds dude. I donāt know to not use a service.
Iām a senior developer for a company that needs me to run dev ops for them. So, Iām learning. Amazon seems to make this as painful as possible. For example: maybe donāt offer a service that Iām not supposed to use because it sucks?
9
u/TheIronMark Feb 03 '24
Beanstalk was really a placeholder between EC2 and containers. It was always weird and complicated and has strange limitations.
-3
u/PenitentPotato Feb 03 '24
Thereās also the reality that getting code pipeline working with EC2 instances and setting env variables requires a whole lot of additional crap. I need to pipe them in with lambda something and then some other stuff that sounds like Ancient Greek to me. And Iām halfway decent with Linux.
4
u/tapemeasured Feb 04 '24
I've been working with AWS for most of 10 years. I wouldn't use any of AWS's CI/CD tooling, such as Code Pipeline or Code Deploy. Gitlab and Github Actions are far simpler and do just as much if not more, so therefore are superior.
1
u/allmnt-rider Feb 04 '24
It's also a reality that you shouldn't mess around with EC2's for application workloads but use containers and/or lambdas. Don't bring ancient IaaS way of working to the cloud but use higher abstraction level services.
5
u/wesmrt1 Feb 04 '24
You could just read the documentation and avoid a lot of re-work.
3
u/PenitentPotato Feb 04 '24
Part of my frustration is Iāve read tons of documentation that doesnāt tell me anything. I mean Iām trying not to be snarky here, but if I sent you a Wikipedia article on Ancient Rome and asked you, after reading that, how many electrons were in my cats teeth, Iād say that about explains how effective their documentation is.
1
u/considerphi May 23 '24
A lot of people saying eb sucks and you shouldnt have used eb but not being clear about what we should use, or a pointer to some up to date info or hopefully a guide. So yeah I just went down the same path. Did you figure out what they do think we should use??Ā
28
u/coinclink Feb 04 '24
Meta question for everyone:
Why is it that newbies are always pointed to Elastic Beanstalk? Like, I can understand OP's frustration if this is the first service they are trying to use on AWS. Not only is it legacy, from the 2012-2015 pre-container-era, but it kinda sucked even when it was useful.
This isn't the first post I've seen where someone new to AWS is trying to use EB. What is leading them there? AWS hasn't even written a blog post mentioning EB in years. I'm honestly surprised it hasn't gone the way of OpsWorks, or at least the direction of "only existing customers can use EB, no new deployments"
7
u/bofkentucky Feb 04 '24
Because it scratches the itch for a lot of simple workloads with a few clicks in the console AND is still fully manageable the right way with tf or cdk when you're ready.
At least half this post is IBM's fault for fracturing the enterprise Linux ecosystem.
5
u/from_the_river_flow Feb 04 '24
Heroku is still popular and I think EB is close enough to it that it fools people
3
2
u/allmnt-rider Feb 04 '24
Never heard anyone using EB for anything serious let alone production workloads.
2
u/bofkentucky Feb 05 '24
Right here, the core of our application is java beanstalk and Aurora MySQL. Major US gambling site.
1
u/allmnt-rider Feb 05 '24
Ok good to hear š Have you guys been satisfied with the EB? Has it given you benefits e.g. on ops side?
1
u/bofkentucky Feb 05 '24
The core of our cloud team at the time of on-prem migration (2016-2018) had used it in a past cloud migration at another company so we had the benefit of their memory of the sharp edges. I was a more traditional linux/vmware admin with minimal cloud exposure before joining them as the bridge to translate on-prem requirements to what they could deliver and make jenkins build and deploy to beanstalk. As time moved on, I became the most senior of the remaining platform team so I've inherited it at this point. The last of the originals knocked out most of the AL1 to AL2 conversion before he left and we had got moved from Classic LB to ALB as well, but I was watching/commenting on every PR to make sure I was ready. We also got build/deploy out of jenkins and into codepipeline/codebuild during COVID to cut down on having to babysit its garbage/stay on top of security vulns.
The AL2 -> AL2023 and CDK conversion from custom api/cfn tooling rolling in now is the first major change since the previous guys all left, but my guys and I are making good progress and expect to have everything in place going into Q3.
Cost control is probably the biggest benefit, the fixed costs of ECS/EKS and additional management software really eat into any savings from trying to containerize every time we evaluate it. The company is making a big serverless (typescript, python, go lambdas) push so it is highly likely we'll be on beanstalk as long as AWS keeps it running for the things that lambda doesn't do well.
1
u/allmnt-rider Feb 05 '24
Great to hear some historical context to get better understanding of your use case, thanks. I've been under impression that you face EB's limits for anything serious and you need more configurability what EB can offer but obviously you proofed me wrong.
For reference we're a big ECS house having maybe few hundred app spesific ECS clusters and we haven't found need for any additional management software. Some apps use 3rd party APM software for monitoring but I think they would do just fine with Cloudwatch too. From cost perspective it's easier to adjust containers in more granular way but of course fine tuning scaling rules can be a big effort to get it right. We use lots of lambdas too e.g. for customer facing API's so they're most definitively good option for future development also.
1
u/VictoriaMagnus Dec 14 '24
I think itās because Beanstalk marketing team are trying to push the product to non-software-dev or non-devops types. In reality though I think it is just over complicating an already complicated deployment method. AWS Amplify is the same. I still donāt understand how Amplify and Beanstalk are that different but then again, I am new to software dev.
29
u/CompetitiveJudge4761 Feb 03 '24
Aws is a skill. You need to be skilled to use it. Dont use beanstalk. Build your own infra with cloud formation or terraform that way you will learn more. Every time you fail you discovered a way that doesnt work. Understand why it doesnāt work and move on. Every mistake is a lesson.
1
u/whitestuffonbirdpoop Jan 25 '26
"aws is a skill" => if that's true, that just proves it has bad ux. I came here after going through 5 different docs just trying to figure out how to create an access key to use with terraform.
1
u/AWSSupport AWS Employee Jan 25 '26
I'm sorry to hear you've had such a poor experience. We'd be keen to hear how we can improve. Be sure to share more detailed feedback by clicking on the 'Feedback' button at the bottom of the Management Console. - Craig M.
-9
u/typo9292 Feb 03 '24
Your answer is donāt use beanstalk? And they are unskilled? Or how about, yes some of this crap makes no sense and documentation sucks, sorry about that. wtf.
9
u/CompetitiveJudge4761 Feb 04 '24
Nothing wrong in being unskilled. Everyone starts from zero. You have to be disciplined and work at something to become good at something.
5
Feb 04 '24
Functional things are rarely āneedlessly complicatedā. I donāt doubt theyāre complicated and I donāt doubt a lot of it wouldnāt be done better in a rewrite, but the complexity grew from the endless growth of the business and the tendency towards abstraction for offering more economical options without trading off the ability to work directly on the substrate.
One could ask a similar question? Why is my partnerās brain so needlessly complex? It just is. Thatās how consciousness works. You can learn it or find someone less complex. The same goes here. Complexity is the by-product of composition and recursion within abstraction layers. The trick is to learn how those abstractions work.
Not understanding something when you need it to do your job is frustrating, I get that. Expecting things to be simpler than they are just belies an assumption that things are simpler than they actually are and you need to go deeper on the subject to master it.
9
u/mrg3_2013 Feb 03 '24
I know it's frustrating, but those engineers who over engineer the crap out of these must be saying "gold, jerry gold"
4
u/TheinimitaableG Feb 04 '24
IAC is your friend, Cloudformation or terraform will make your life easier as you try to iterate with new services.
4
u/dogfish182 Feb 04 '24
At least AWS was nice enough to show you you shouldnāt use beanstalk in some wayā¦
Beanstalks only point as far as I can tell is to irritate people taking the Devops pro exam. Donāt touch that shit otherwise.
4
u/sudoaptupdate Feb 04 '24
Not sure why OP is getting down voted. AWS may seem needlessly complicated if you're building something that doesn't require AWS-level power and flexibility.
Other cloud providers like GCP prioritize simplicity and development speed, because they're currently going after the startup segment. AWS, however, prioritizes flexibility and scalability since it largely relies on the large enterprise segment.
Part of flexibility is being able to specify exactly how you want the service to behave by answering 50 questions. This is something that large enterprises don't mind, since they probably have these settings configured in some IaC repository anyway. Which by the way is the preferred way to deploy things, and I think in this case would've given you a better experience.
3
u/GeorgeRNorfolk Feb 04 '24
AWS has a ridiculous variety of options, knowing which one do use and how is a skill. Elastic beanstalk isn't a good option for your use case, EC2 is a much more suited. There will be a similar learning curve with EC2 but at least you'll be learning the fundamentals which are transferable over all of AWS.
7
u/Xerxero Feb 03 '24
Elastic bean is the worst service.
0
Feb 03 '24
[deleted]
2
-2
Feb 04 '24
I've implemented Cognito just fine. No issues. What's your complaint? That it doesn't conform exactly to your shitty legacy application?
0
Feb 04 '24
[deleted]
-1
Feb 04 '24
And since then, I fixed my issue and implemented Cognito just fine.
Are you happy with your gotcha, or...?
0
u/dogfish182 Feb 04 '24
This is not a pot kettle situation. Thinking a service is ok and also researching when you have an implementation issue is not mutually exclusive. I also implemented cognito just fine. I also had issues figuring it out initially. Lots of new jargon, lots of implementation details.
5
u/BraveNewCurrency Feb 03 '24
Example of why AWS is needlessly complicated
I don't see that. I see "some services have silly limitations". In general, people don't use Elasticbeanstalk, it was just a marketing wrapper around some other existing services. Stick to the more popular services (S3, EC2, ..)
You are better off either deeply understanding EC2, or using EKS / ECS.
If you are customizing AMIs, always start with "download these tools at boot". Only worry about building your own API pipeline if you run into performance problems.
Even then, most AMIs are terrible. My checklist:
Don't use Chef/Puppet/Ansible. Just use bash scripts, since none of those tools are useful for keeping servers in sync. (i.e. If you delete a line that says "install this service", the service will still be running on existing servers, but not running on new servers. YUCK.) Always upgrade via "kill the old instance, boot a new one"
Don't install SSH. Use SSM if you must, it's far more secure, and doesn't need an open port on the internet. But SSH/SSM is a crutch. You should be able to debug your app from logs, and all changes to the system should be via changes to the build. You don't need to log in.
Don't use a general-purpose OS. Your computer doesn't need Bluetooth, printers, etc. Start with something minimal, and only add enough to run your application. Better yet, run an "Appliance" OS like Talos, then have your app carry what it needs in a container.
[3 hours of Googling later: can't use cluster mode for redis because it gives apps a sad!]
Your app doesn't support a mode of Redis. How is that AWS's fault? (As far as I know, you can launch Redis in either mode.)
2
0
Feb 04 '24
LOL boo hoo. You're not special. Huge enterprises successfully use AWS services all day long. What's your excuse?
0
u/PenitentPotato Feb 04 '24
Iām a lone guy trying to use a service thatās supposed to be workable to use. And Iām here now complaining about how itās pointlessly complicated. Iām no stranger to esoteric knowledge, and thereās a way you do and do not build systems and document things.
I imagine companies have millions of dollars to pay devops teams for their esoteric knowledge. Iām a lone actor tasked with figuring it out. So, yes, I will caveche about it.
3
Feb 04 '24
Could it just possibly be, and hear me out, that you just...don't know anything about AWS? And that is the cause of your problems?
Surely, no, it is AWS that is the problem...
1
u/PenitentPotato Feb 04 '24
I mean Iād like to? But thatās the problem. Itās incredibly difficult to learn anything because it seems like everything is designed to be an exercise in prompting frustration, with documentation that is often wrong, outdated, or omits critical changes that have yet since occurred. I mean if I opened a web hosting service and said āitās easy - just foo the bar and bar the foo and multiply by the flim in the frazzle and divide by the square root of bibbitybop and count how many petunias are in my Aunt Agnesā garden and multiply that figure by the modulus of Frodoās right toe (squared to bloopiblatter, of course), youāll derive the ID to plug into the script that takes you to the Omnisplot interface where you can bar the foo which foos the bar. Makes sense? See! Itās easy!ā
I doubt Iād get much business. Or, if I did, theyād have words either my support team. AWS said āhold my beer.ā
2
Feb 04 '24
Sorry, but no. Nobody is here you hold your hand. Nobody is going to give you 3 or 4 API specifications that are going to make your job easier. You have to take the time to learn the platform. That is true for Azure, GCP, VMware, or whatever else.
You're in this thread making a ton of excuses when you could be spending your time actually learning how these services all work together.
AWS is an absolutely massive platform, because it serves the needs of countless customers, from your individual "homelabbers" all the way to your huge, multi-national enterprises.You are not special. You need to learn the platform the same as anyone else. If it's all just too much, and you just don't get it, that's not a failing of the platform.
2
u/PenitentPotato Feb 04 '24
I mean, at the end of the day youāre right on the learning front. I will. As Iāve learned everything I know how to do - which is not a small list.
Nobody can hold my hand, nor do I want them to. I will take my time to learn and I will get good at it. Same way I learned how to wire electrical panels, plumb water systems, build houses, pull building permits, build computers, program computers, fly planes, rebuild engines, weld metal, blow glass, sail boats, mold fiberglass, mold carbon fiber, estimate nuclear decay chains and the thermodynamic cycles involved with different reactions and neutron economies, deploy solar panels, stitch wounds, mill firearms, lay brick, repair electronics, bypass circuits, make wine, run business financials, and get permits to export sensitive materials abroad under state department controls. All of those things took time and effort to learn. None of those things were easy.
But Iāve also hosted on a hundred platforms before AWS. And none of the thing mentioned above were as remotely convoluted as AWSā framework has proven to be. So Iāll mix the flim flam with the fizzle frazzle, because thatās the way they do it? But it doesnāt change the fact that the way they do it is asinine.
1
1
u/alsolemmings Aug 13 '25
AWS makes more money because its so complicated. Its part of the business model š
1
u/simbolmina Feb 04 '24
All our node backends are on eb and we don't have any problem with deploying them with codepipeline. Why do people here say eb is terrible? What would you use alternatively?
1
u/Zenin Feb 03 '24
I was all prepared to offer some snarky response, but nope you're not wrong.Ā Reading this whole post triggered my PTSD.
0
51
u/Nater5000 Feb 03 '24
If you spent half as much time learning how to use AWS as you did typing up this post you probably wouldn't have as much problems.