Skip to content

Exposing the result as yaml #3

@baloo

Description

@baloo

It could be worth exposing the result of the evaluation as YAML:

# resources.tf
resource "aws_iam_policy" "assets-access" {
  name  = "assets-access"
  description = "A policy allowing access to assets."

  policy = data.dhall.foo.yaml
}

Exporting a new value here should suffice

outJSON, err := json.Marshal(data)
if err != nil {
return err
}
err = d.Set("result", string(outJSON))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions