4 ms·
The author is purposefully making things more difficult. - using Terraform instead of cloud formation - not using the default create a VPC wizard like anyone
by scarface74 8y ago
The author is purposefully making things more difficult.
- using Terraform instead of cloud formation
- not using the default create a VPC wizard like anyone new would.
- he said if we wanted to use lambda functions he would still have to setup networking. It depends on what he was doing. If he used a regular database, yes he would have had to setup a subnet for his RDS cluster, but if he used DynamoDB, he wouldn’t need to do that. But even then, the default VPC wizard that most people would have used would have been good enough. But either way, that has nothing to do with K8s vs Fargate.
No even when you run a lambda “inside your VPC”, you don’t get more security. The lambda is never running inside your VPC. It is running inside an AWS VPC and connecting to your VPC via a network interface (ENI).
- If he were to use lambda, he would not have had to worry half as much. He wouldn’t have needed a load balancer. Also, he was using a third party ssl certificate when he could have had a free one that was automatically managed by AWS with Amazon Certificate Manager. Using API Gateway and just using a lambda proxy would have done the same thing. No, there is no “lock-in” from using lambda and a lambda-proxy interface. You write your same C#/WebAPI, Node/Express, Python/Django code just like you always would and add the proxy on top of it.
- mirceal 8y agothis is spot on. drop terraform and go with cloudformation. initially set it up throgh the console to learn what needs to be done and after that write the template or even better find one someone has already written. pro level startup: set it manually and use cloudformer. +1 on the comments regarding wiring and lambda in non-vpc vs vpc context also, if you want K8s, there is this thing called EKS.
- KaiserPro 8y ago> even better find one someone has already written. Alas, that never really works with multi account setups. Its sometimes useful for seeing which magic line one is missing, but the level of incorrect boilerplate out there on github is staggering.
- scarface74 8y agoI have multi account code pipeline/Cloud Formation setups for deploying lambdas and related resources. Once I got the hang of it (with a lot of help from AWS support admittedly), it’s not that bad. I probably could have figured it out, but why bother when we are paying for the business support plan?
- jjeaff 8y agoFunny, I was just talking to an experimental quantum physicist today and one of the other people there asked him, doesn't the complexity just make your head spin? He said, "no, once you get the hang of it and you are dealing with it every day, it's not that bad.
- scarface74 8y agoOh I completely agree. I felt completely incompetent when it came to AWS 18 months ago. But now with a lot of studying for 5 certifications (just as an organized company paid study plan), a lot of late nights beating my head on my desk, some green field initiatives, and abuse of our business support plan with AWS’s excellent live chat support,I’m pretty comfortable with most of the non obscure parts Of AWS outside of the Docker and Big Data/ML parts. I’ll be working on those over the next year.
- mirceal 8y agoI personally “grew up” while AWS was born and grew and have been slowly exposed to most of the services as they were released / enhanced. I agree that It can be confusing as f for a newcomer. This is definitely an opportunity for training courses/labs/moocs to figure out how to make the learning curve less steep.
- mirceal 8y agohah. not github. most services have cloudformation snippets in the aws docs. they mostly work. also, compared to terraform, cloudformation is state-of-the-art when it comes to actually bringing shit up
- japan2006 8y agosome so-called genius always like showing off and building k8s cluster by themselves, instead of using managed services.
- paulddraper 8y ago> also, if you want K8s, there is this thing called EKS. Which is absurdly overpriced. $1,728/yr just to run an empty cluster.
- mirceal 8y ago1700$/year ? sounds like a steal to me. how much are you paying a human for setting up and operating a cluster?
- paulddraper 8y agoNothing. There is no overhead charge for Fargate.
- KaiserPro 8y agoI don't support the CF is would have been easier than TF argument The CF console is opaque, slow and worst of all lazy evaluates. This is exacerbated when doing anything docker service related. If you make a mistake it can be three hours before an update timeout is triggered, then another three hours for a rollback to complete. The other _really_ annoying thing is that TF gets the features first. For example its not possible with CF to use SSM variables in environment vars. But as TF uses the AWS API, it can. I dislike TF because I've not used it overly much, and it makes me have horror flashbacks of puppet. However, what you say about the lambda is basically spot on. They are much simpler and easer, "true" serverless if you will. Or more likly /cgi-bin/lambda, if you are old enough.
- scarface74 8y agoThe CF console is opaque, slow and worst of all lazy evaluates. This is exacerbated when doing anything docker service related. If you make a mistake it can be three hours before an update timeout is triggered, then another three hours for a rollback to complete. How is it opaque? It’s a wizard that lets you upload a template from a file or S3. Most of the time though it’s part of my CodePipeline anyway. I don’t use the console in day to day use. For a quick and dirty I use the CLI. The other _really_ annoying thing is that TF gets the features first. For example its not possible with CF to use SSM variables in environment vars. But as TF uses the AWS API, it can. Yes you can.... https://aws.amazon.com/blogs/mt/integrating-aws-cloudformation-with-aws-systems-manager-parameter-store/ https://aws.amazon.com/blogs/mt/integrating-aws-cloudformati... But there is one benefit to CloudFormation if you have the business support plan - AWS’s chat support is excellent.
- village-idiot 8y agoCF regularly lacks features that TF has, but the list of features is constantly changing as Amazon release new features and CF eventually catches up. The one that got me this week was that CF cannot define global Dynamo tables, you have to find an alternative way to turn them on.
- 8y ago
- empath75 8y agoI have never worked at a company that didn’t manage their own vpcs, where having it generated the Vpc for you would be an option. Hell at the current place I can’t even create security groups or Iam roles or policies.
- scarface74 8y agoI think all companies that are serious about developers learning should allow them to have a separate dev account with a pretty long leash to experiment.
- Aeolun 8y agoIn all my time working with AWS, the only thing that has been consistently horrible, has been CloudFormation. I honestly have no idea why anyone would ever choose it over Terraform, or Ansible even.