Skip to content

How can I pass a multiline document into the body? #1

@augustgerro

Description

@augustgerro

I try to past:

resource confluence_content "default" {
  space = "DO"
  title = "Example Page"
  body  = <<HERE
1.  create Dockerfile

2.  create docker-compose.yaml

2.1  define: parametrs, volumes


3. docker-compose up -d

Right     | Left   | Center 
---------:| :----- |:-----:
Computer  |  $1600 | one
Phone     |    $12 | three
Pipe      |     $1 | eleven

  HERE
}

But in confluence page:
image

or

resource confluence_content "default" {
  space = "DO"
  title = "Example Page"
  body = templatefile("${path.module}/doc.md", {
  })
}
❯ cat doc.md             
# Header 1 

1.  create Dockerfile

2.  create docker-compose.yaml

2.1  define: parametrs, volumes


3. docker-compose up -d

## Header 2

|    Right | Left  | Center |
|---------:|:------|:------:|
| Computer | $1600 |  one   |
|    Phone | $12   | three  |
|     Pipe | $1    | eleven |

Result:
image

Expected result:
image

Are you there any way to insert the structure of the document?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions