mikedixson / tftest

0 stars 0 forks source link

added 2nd null resource and local file #3

Closed mikedixson closed 1 week ago

mikedixson commented 1 week ago

Ran Plan for dir: . workspace: default

Plan Error

Show Output ``` running "/snap/bin/terraform init -input=false -upgrade" in "/home/miked/.atlantis/repos/mikedixson/tftest/3/default": exit status 1 Initializing the backend... ╷ │ Error: Terraform encountered problems during initialisation, including problems │ with the configuration, described below. │ │ The Terraform configuration must be valid before initialization so that │ Terraform can determine which modules and providers need to be installed. │ │ ╵ ╷ │ Error: Invalid multi-line string │ │ on main.tf line 5: │ 5: resource "null_resource" "test2 { │ 6: │ │ Quoted strings may not be split over multiple lines. To produce a │ multi-line string, either use the \n escape to represent a newline │ character or use the "heredoc" multi-line template syntax. ╵ ╷ │ Error: Invalid string literal │ │ on main.tf line 5: │ 5: resource "null_resource" "test2 { │ 6: │ │ This item is not valid in a string literal. ╵ ╷ │ Error: Invalid multi-line string │ │ on main.tf line 6: │ 6: │ 7: } │ │ Quoted strings may not be split over multiple lines. To produce a │ multi-line string, either use the \n escape to represent a newline │ character or use the "heredoc" multi-line template syntax. ╵ ╷ │ Error: Invalid multi-line string │ │ on main.tf line 7: │ 7: } │ 8: resource "local_file" "file1" { │ │ Quoted strings may not be split over multiple lines. To produce a │ multi-line string, either use the \n escape to represent a newline │ character or use the "heredoc" multi-line template syntax. ╵ ╷ │ Error: Extraneous label for resource │ │ on main.tf line 9: │ 5: resource "null_resource" "test2 { │ 6: │ 7: } │ 8: resource "local_file" "file1" { │ │ Only 2 labels (type, name) are expected for resource blocks. ╵ ╷ │ Error: Extraneous label for resource │ │ on main.tf line 9: │ 5: resource "null_resource" "test2 { │ 6: │ 7: } │ 8: resource "local_file" "file1" { │ │ Only 2 labels (type, name) are expected for resource blocks. ╵ ╷ │ Error: Invalid multi-line string │ │ on main.tf line 9: │ 9: resource "local_file" "file1" { │ 10: content = "Hello World!" │ │ Quoted strings may not be split over multiple lines. To produce a │ multi-line string, either use the \n escape to represent a newline │ character or use the "heredoc" multi-line template syntax. ╵ ╷ │ Error: Invalid string literal │ │ on main.tf line 9: │ 9: resource "local_file" "file1" { │ 10: content = "Hello World!" │ │ This item is not valid in a string literal. ╵ ╷ │ Error: Invalid multi-line string │ │ on main.tf line 10: │ 10: content = "Hello World!" │ 11: filename = "hello.txt" │ │ Quoted strings may not be split over multiple lines. To produce a │ multi-line string, either use the \n escape to represent a newline │ character or use the "heredoc" multi-line template syntax. ╵ ╷ │ Error: Invalid multi-line string │ │ on main.tf line 11: │ 11: filename = "hello.txt" │ 12: } │ │ Quoted strings may not be split over multiple lines. To produce a │ multi-line string, either use the \n escape to represent a newline │ character or use the "heredoc" multi-line template syntax. ╵ ```
mikedixson commented 1 week ago

Ran Plan for dir: . workspace: default

Show Output ```diff Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create Terraform will perform the following actions: # local_file.file1 will be created + resource "local_file" "file1" { + content = "Hello World!" + content_base64sha256 = (known after apply) + content_base64sha512 = (known after apply) + content_md5 = (known after apply) + content_sha1 = (known after apply) + content_sha256 = (known after apply) + content_sha512 = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "hello.txt" + id = (known after apply) } # null_resource.test1 will be created + resource "null_resource" "test1" { + id = (known after apply) } # null_resource.test2 will be created + resource "null_resource" "test2" { + id = (known after apply) } Plan: 3 to add, 0 to change, 0 to destroy. ```

mikedixson commented 1 week ago

Locks and plans deleted for the projects and workspaces modified in this pull request:

mikedixson commented 1 week ago

atlantis apply

mikedixson commented 1 week ago

Atlantis commands can't be run on closed pull requests

mikedixson commented 1 week ago
Error parsing command: EOF found when expecting closing quote