News for hackers. Stuff that matters.
Re:Terraform 0.15 General Availability by diroussel on Wednesday April 14, 2021 @04:48PM (#26812861)
Basically you create the desired state DAG in procedural code, rather than the TF DSL. Blithe diffing and applying are the same.
Re:Terraform 0.15 General Availability by ben0x539 on Wednesday April 14, 2021 @11:48PM (#26816011)
Can you inspect inputs from terraform resource attributes or data sources in the procedural evaluation?
Re:Terraform 0.15 General Availability by cmclaughlin on Thursday April 15, 2021 @01:11AM (#26816382)
> Can you inspect inputs from terraform resource attributes or data sources in the procedural evaluation?

No... the high level programming language really just serves as a bridge or translation layer to a Terraform compatible JSON file. Those sorts of evaluations don’t happen to the actually plan/apply. However, you may find it useful to make direct API calls to your cloud provider in cdktf stacks. For instance, I mostly use data lookups but if I want to perform string operations on that sort of data I would use boto3 instead.