| 1 |
---input--- |
| 2 |
backend "consul" { |
| 3 |
data "aws_ami" "example" { |
| 4 |
module "consul" { |
| 5 |
output "instance_ip_addr" { |
| 6 |
provider "aws" { |
| 7 |
provisioner "local-exec" { |
| 8 |
resource "aws_internet_gateway" "base_igw" { |
| 9 |
variable "aws_region" { |
| 10 |
variable "set-str" { |
| 11 |
type = set(string) |
| 12 |
} |
| 13 |
|
| 14 |
---tokens--- |
| 15 |
'backend' Keyword.Reserved |
| 16 |
' ' Text.Whitespace |
| 17 |
'"consul"' Name.Variable |
| 18 |
' ' Text.Whitespace |
| 19 |
'{' Punctuation |
| 20 |
'\n' Text.Whitespace |
| 21 |
|
| 22 |
'data' Keyword.Reserved |
| 23 |
' ' Text.Whitespace |
| 24 |
'"aws_ami"' Name.Class |
| 25 |
' ' Text.Whitespace |
| 26 |
'"example"' Name.Variable |
| 27 |
' ' Text.Whitespace |
| 28 |
'{' Punctuation |
| 29 |
'\n' Text.Whitespace |
| 30 |
|
| 31 |
'module' Keyword.Reserved |
| 32 |
' ' Text.Whitespace |
| 33 |
'"consul"' Name.Variable |
| 34 |
' ' Text.Whitespace |
| 35 |
'{' Punctuation |
| 36 |
'\n' Text.Whitespace |
| 37 |
|
| 38 |
'output' Keyword.Reserved |
| 39 |
' ' Text.Whitespace |
| 40 |
'"instance_ip_addr"' Name.Variable |
| 41 |
' ' Text.Whitespace |
| 42 |
'{' Punctuation |
| 43 |
'\n' Text.Whitespace |
| 44 |
|
| 45 |
'provider' Keyword.Reserved |
| 46 |
' ' Text.Whitespace |
| 47 |
'"aws"' Name.Variable |
| 48 |
' ' Text.Whitespace |
| 49 |
'{' Punctuation |
| 50 |
'\n' Text.Whitespace |
| 51 |
|
| 52 |
'provisioner' Keyword.Reserved |
| 53 |
' ' Text.Whitespace |
| 54 |
'"local-exec"' Name.Variable |
| 55 |
' ' Text.Whitespace |
| 56 |
'{' Punctuation |
| 57 |
'\n' Text.Whitespace |
| 58 |
|
| 59 |
'resource' Keyword.Reserved |
| 60 |
' ' Text.Whitespace |
| 61 |
'"aws_internet_gateway"' Name.Class |
| 62 |
' ' Text.Whitespace |
| 63 |
'"base_igw"' Name.Variable |
| 64 |
' ' Text.Whitespace |
| 65 |
'{' Punctuation |
| 66 |
'\n' Text.Whitespace |
| 67 |
|
| 68 |
'variable' Keyword.Reserved |
| 69 |
' ' Text.Whitespace |
| 70 |
'"aws_region"' Name.Variable |
| 71 |
' ' Text.Whitespace |
| 72 |
'{' Punctuation |
| 73 |
'\n' Text.Whitespace |
| 74 |
|
| 75 |
'variable' Keyword.Reserved |
| 76 |
' ' Text.Whitespace |
| 77 |
'"set-str"' Name.Variable |
| 78 |
' ' Text.Whitespace |
| 79 |
'{' Punctuation |
| 80 |
'\n' Text.Whitespace |
| 81 |
|
| 82 |
' ' Text.Whitespace |
| 83 |
'type' Name.Attribute |
| 84 |
' ' Text.Whitespace |
| 85 |
'=' Operator |
| 86 |
' ' Text.Whitespace |
| 87 |
'set' Keyword.Type |
| 88 |
'(' Punctuation |
| 89 |
'string' Keyword.Type |
| 90 |
')' Punctuation |
| 91 |
'\n' Text.Whitespace |
| 92 |
|
| 93 |
'}' Punctuation |
| 94 |
'\n' Text.Whitespace |