Metadata-Version: 2.4
Name: phcl-terraform
Version: 0.1.3
Summary: Terraform-native authoring layer for PHCL.
Author-email: Dmitry Sergeev <realnexusway@gmail.com>
License-Expression: MIT
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: phcl>=0.2.0
Dynamic: license-file

<h1>
  <img src="https://raw.githubusercontent.com/nexusproject/phcl-terraform/main/assets/phcl-logo-terraform-outline.svg" width="70" align="absmiddle"
       style="margin-right: 8px;">
  PHCL-TERRAFORM
  <img src="https://codecov.io/gh/nexusproject/phcl-terraform/branch/main/graph/badge.svg"
       align="right">
</h1>

PHCL-TERRAFORM is the Terraform dialect layer for PHCL.

For the core model, rendering, CLI behavior, and general PHCL documentation:

- [PHCL Core Repository](https://github.com/nexusproject/phcl)

## Installation

```bash
pip install 'phcl[terraform]'
```

## Example

Instead of writing Terraform like this:

```hcl
resource "aws_instance" "web" {
  ami           = "ami-123"
  instance_type = "t3.small"
}
```

the dialect aims to let you write:

```python
from phcl.terraform import Resource, TerraformPHCL as PHCL


class Web(Resource["aws_instance"]):
    ami = "ami-123"
    instance_type = "t3.small"
```
