Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mdtro opened this issue Feb 8, 2023 · 1 comment

Comments

@mdtro
Copy link
Member

mdtro commented Feb 8, 2023

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
Copy link
Member

dcramer commented Feb 8, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants