5 ms·
I couldn't get this to run successfully. More broadly, I have concerns about introducing a middleware layer over AWS infrastructure. A misinterpreted command o
by tianqi 9mo ago
I couldn't get this to run successfully.
More broadly, I have concerns about introducing a middleware layer over AWS infrastructure. A misinterpreted command or bug could lead to serious consequences. The risk feels different from something like k9s, since AWS resources frequently include stateful databases, production workloads, and infrastructure that's far more difficult to restore.
I appreciate the effort that went into this project and can see the appeal of a better CLI experience. But personally, I'd be hesitant to use this even for read-only operations. The direct AWS cli/console at least eliminates a potential failure point.
Curious if others have thoughts on the risk/benefit tradeoff here.
- zmmmmm 9mo agoI guess it's the kind of thing where you want an almost Terraform like "plan" that it prints out before it does anything, and then a very literal execution engine that is incapable of doing anything that isn't in the plan.
- falkensmaize 9mo agoThis was my first thought too. We already have terraform for repeatable, source controlled service provisioning and we have the relatively straightforward aws cli for ad hoc management. I don’t know that I really need another layer, and it feels quite risky.
- baby 9mo agocdk bro
- SteveNuts 9mo agoI thought that was deprecated?
- sathyabhat 9mo agocdktf is, not AWS CDK. The former allows you to use Terraform without HCL, the latter is a generator for CloudFormation.
- rswail 9mo agoTerraform CDK is just a layer on top of terraform to avoid writing HCL/JSON. It's also deprecated by Hashicorp now. CDK on AWS itself uses CFN, which is a dog's breakfast and has no visibility on what's happening under the covers. Just write HCL (or JSON, JSONNET etc) in the first place.
- baby 9mo agoNot sure what's a dog breakfast, but why care about what's happening under the cover? You can't know what's happening anyway in AWS.
- hhh 9mo agoAm I the only person that despises CDK? Why would I use a cloud specific language instead of something like opentofu?
- coredog64 9mo agoCDK's twin problems are that it compiles down to CloudFormation and that AWS did a terrible job at supporting languages other than TypeScript. The latter is theoretically fixable with a native FFI library that is called from each language, but the former is too leaky of an abstraction.
- baby 9mo agoI've only ever used it with ts and thought the experience was pretty good (especially compared to terraform)
- baby 9mo agoConsidering all the downvotes I got I guess you're not the only one. I'm surprised because I really like cdk. It makes creating an AWS stack really easy, and for having dealt with terraform configurations that were trying to deal with multiple cloud platforms I'd rather have a per-platform eDSL
- pgroves 9mo agoAll the use cases that popped into my head when I saw this were around how nice it would be to be able to quickly see what was really happening without trying to flop between logs and the AWS console. That's really how I use k9s and wouldn't be able to stand k8s without it. I almost never make any changes from inside k9s. But yeah... I could see using this with a role that only has Read permissions on everything.
- 3uler 9mo agoThe read-only hesitation seems overcautious. If you’re genuinely using it read-only, what’s the failure mode? The tool crashes or returns bad data - same risks as the AWS CLI or console. The “middleware layer” concern doesn’t hold up. This is just a better interface for exploring AWS resources, same as k9s is for Kubernetes. If you trust k9s (which clearly works, given how widely it’s used), the same logic applies here. If you’re enforcing infrastructure changes through IaC, having a visual way to explore your AWS resources makes sense. The AWS console is clunky for this.
- catlifeonmars 9mo ago> what’s the failure mode? The tool misrepresents what is in AWS, and you make a decision based on the bad info. FWIW I agree with you it doesn’t seem that bad, but this is what came to mind when I read GPs comment
- zeroimpl 9mo agoThe AWS APIs are quite stable and usually do exactly one thing. It’s hard to really see much risk. The worst case seems to be that the API returns a new enum value and the code misinterprets it rather than showing an error message.
- nfRfqX5n 9mo agoWith properly scoped roles I would not be concerned