Better HN
topnewbestaskshowjobs
Log inSign up

iangrunt

2 karma · joined Jun 21, 2023 (3y ago) · 3 submissions

A sales engineer at Gruntwork.
Submissions

comment 3y ago · link · parent

Thanks! I'd love to get it there someday. I started it before the AI explosion, but once the basic regexes get figured out, they can write themselves since most other outputs are ARNs or IDs that follow the usual "thing-012345" pattern. Feed it some Terraform docs, spit out some string substitutions, and feed them into a template to get you close enough.

My motivation was definitely based on the many late-night hours I've wasted waiting for plans to finish.

comment 3y ago · link · parent

Exactly. If I can guarantee that if I'm calling an EC2 module tested and demonstrated to work correctly, launching it in the early stages of development can be a significant time sink. However, due to the nature of AWS and being able to authenticate to one region and make calls to another, it's nice to have the authenticate path working correctly from Step 1.

I have never used Pulumi, but I think the same path would apply; you want to focus on the business logic, and waiting for an EC2 to spin up and down while you're iterating gets annoying quickly. Once you have all the kinks worked out, you can drop in your actual EC2 module and expect the same authentication patterns (where many bugs happen), although the outputs would most likely need some tune-up.

3.

Show HN: Fake Terraform modules for fast testing and learning(github.com ↗)

3 points · by iangrunt · 3y ago · 4 comments