getsentry / vanguard

Apache License 2.0
41 stars 3 forks source link

Terraform code block with heredoc-style string seems to break code formatting #104

Open mdtro opened 1 year ago

mdtro commented 1 year ago

This seems to cut off around the <<EOF and then turns the rest of the post into monospaced font.

resource "google_organization_iam_custom_role" "sentry_custom_browser" {
  org_id      = local.sentry_org
  role_id     = "custom.browser"
  title       = "Sentry: Custom Browser"
  description = <<EOF
Grants access to Sentry's GCP Organization, Folders, and Projects, as well as
their IAM policies (including any custom roles). No access is granted to
interact with any (other) project-scope resources.
See also: OPS-2406
  EOF
  permissions = concat(
    ["resourcemanager.folders.getIamPolicy"],
    data.google_iam_role.org_roleviewer.included_permissions,
    data.google_iam_role.browser.included_permissions,
    data.google_iam_role.folder_viewer.included_permissions,
  )

  lifecycle {
    # "a deleted role that has been deleted for more than 7 days cannot be
    # changed at all by Terraform, and new roles cannot share that name."
    # https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/google_organization_iam_custom_role
    prevent_destroy = true
  }
}
dcramer commented 1 year ago

almost sounds like its treating <<EOF as an HTML tag - didnt look into it yet though