Commit Graph

27 Commits

Author SHA1 Message Date
Felix Friedrich 9191a00a8f
AWS: Check if vpc_ipv6_cidr_block is an empty string (rather than null) 2023-04-12 10:34:44 +02:00
justinsb c2810a5c96 Refactor to reduce vfs -> terraformWriter dependency 2023-01-04 13:38:47 -05:00
justinsb 707758f1e9 Support multiple terraform file providers
By adding them on-demand, it is arguably a little simpler as well.

Co-authored-by: John Gardiner Myers <jgmyers@proofpoint.com>
2023-01-04 08:14:18 -05:00
John Gardiner Myers 4573a690f2 Refactor writing Terraform resources 2022-12-04 21:46:50 -08:00
John Gardiner Myers 990ce77120 Refactor writing of Terraform data sources 2022-12-03 00:13:07 -08:00
John Gardiner Myers ffe3edd4ff Refactor writing of terraform block 2022-11-30 23:28:24 -08:00
John Gardiner Myers b396fafb35 Introduce LiteralIndexExpression() 2022-11-27 18:39:49 -08:00
John Gardiner Myers 220f7a1614 Introduce LiteralBinaryExpression() 2022-11-27 18:39:49 -08:00
John Gardiner Myers 61e52d1a1d Refactor LiteralFunctionExpression to take Literal args 2022-11-27 18:39:49 -08:00
John Gardiner Myers fe065bfe6c Introduce LiteralNullConditionalExpression() 2022-11-27 18:39:49 -08:00
John Gardiner Myers 8b6f2973f8 Refactor GSPath use of Literal 2022-11-26 19:24:23 -08:00
John Gardiner Myers c2d9b871a5 Refactor Literal unit tests 2022-11-26 19:24:16 -08:00
John Gardiner Myers 7ad81f9965 Refactor Literal sorting 2022-11-26 19:23:37 -08:00
John Gardiner Myers 70fe547deb Refactor terraformWriter.Literal's Value field 2022-11-26 17:27:34 -08:00
John Gardiner Myers d8c6c07799 Refactor terraformWriter.Literal's Index field 2022-11-26 17:11:22 -08:00
John Gardiner Myers cde34d8b56 Refactor terraformWriter.Literal's Tokens field 2022-11-26 17:03:37 -08:00
John Gardiner Myers 1b99cae617 Refactor rendering Terraform functions into constructor 2022-11-24 19:31:08 -08:00
John Gardiner Myers 225a64e991 Write Terraform vpc_cidr_block output for shared VPCs 2022-11-22 21:04:55 -08:00
John Gardiner Myers d661e573de Make terraformWriter.LiteralFunctionExpression() variadic 2022-11-22 21:04:55 -08:00
Ciprian Hacman 35ee342eb1 Add Terraform target support for Hetzner 2022-08-25 08:14:39 +03:00
Ole Markus With ce2e877aeb Remove bazel files from vendor 2022-04-12 13:29:03 +02:00
Peter Rifel 1772d0e39d
Remove remaining references to TerraformJSON feature flag 2021-12-25 07:49:19 -06:00
Peter Rifel c04f9e0a6a
Allow arbitrary length terraform literals
Terraform provider aliases are referenced with two "tokens": `aws.files`

This adds support for literal references with an arbitrary number of tokens
2021-09-12 07:32:30 -04:00
Peter Rifel bfb58af697
Prefix terraform resource names when they'd otherwise begin with a digit 2021-08-27 12:57:56 -05:00
Peter Rifel 01138a3995
Add support for arbitrary terraform functions
This allows terraformWriter.LiteralFunctionExpression to be used with any terraform function.

The arguments must be strings, which means that any string arguments must include quotes.
2021-05-19 22:40:34 -05:00
Peter Rifel c9f810d57e
Support terraform 0.12+'s filebase64() in json output
Originally the JSON output was meant as a bridge between the 0.11 and 0.12 support.
Now that we've dropped support for 0.11, we can use filebase64() instead of encoding the userdata in the file ourselves.
2021-05-19 17:42:50 -05:00
John Gardiner Myers 57dec35f68 Split out TerraformWriter 2021-05-02 21:54:46 -07:00