HACKER Q&A
📣 matesz

TSX for Infra?


I was wondering about how things happen in the frontend (virtualizing dom using react component functions) and I thought it would be more natural to use tsx similary for definining infra, mainly cdk/cdktf/pulumi.

  
    
      
        
          Databases
        
        
          Api
        
        
          Load balancers
        
      
    
  
Main advantage is readability of course, but there might be much more. What do you think?


  👤 redleader55 Accepted Answer ✓
You are describing XML. Now you also need to figure out how to convert said XML into actual API calls that create/update/delete corresponding resources.

The question you need to ask yourself is why/how is this better than what Terrafrom provides.