←back to thread

76 points andout_ | 6 comments | | HN request time: 0.352s | source | bottom
1. _pdp_ ◴[] No.45926597[source]
cool...

btw, on a tangent, I always thought that infra can be defined in typescript types.... is is strange but no need for custom language

someone please steal this idea and make something out of it

replies(2): >>45926612 #>>45926619 #
2. embedding-shape ◴[] No.45926612[source]
Ever tried Pulumi? I myself am allergic to TypeScript, but seems they support using it, among a ton of other languages: https://www.pulumi.com/docs/iac/languages-sdks/javascript/
replies(1): >>45928832 #
3. nevon ◴[] No.45926619[source]
There already exists many implementations of this idea. CDK, Pulumi and Winglang are the ones that come to mind as probably the most well known.
4. _pdp_ ◴[] No.45928832[source]
I literally meant typescript types... i.e. define the types of the solution rather than an algorithm... it servers the same purpose as using something like terraform:

``` interface BaseEC2 extends AWSEC2 { type: '...' }

// export means build export interface MyInstance extends BaseEC2 { // some customisations }

// fleet export interface EC2Fleet extends EC2Fleet { instances: MyInstance } ```

etc...

wacky idea but I kind of like it

replies(1): >>45928928 #
5. embedding-shape ◴[] No.45928928{3}[source]
Ah, I think what you're asking for is "declarative" configuration, rather than the typical imperative code for setting up infrastructure. I think that's what you're out after, but with strong types?
replies(1): >>45929239 #
6. _pdp_ ◴[] No.45929239{4}[source]
Exactly...