Skip to content

Commit

Permalink
[COMPLIANCE] Add Copyright and License Headers
Browse files Browse the repository at this point in the history
  • Loading branch information
hashicorp-copywrite[bot] authored Feb 6, 2023
1 parent 8e16535 commit 3c1b3a6
Show file tree
Hide file tree
Showing 52 changed files with 158 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

changelog:
categories:
- title: NOTES
Expand Down
3 changes: 3 additions & 0 deletions builder/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions src/_main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

patterns:
- include: "#comments"
- include: "#attribute_definition"
Expand Down
3 changes: 3 additions & 0 deletions src/hcl.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

scopeName: source.hcl
name: HashiCorp HCL
uuid: a14187be-98d8-42c1-ac89-bb5eaccf911e
Expand Down
3 changes: 3 additions & 0 deletions src/terraform.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

scopeName: source.hcl.terraform
name: HashiCorp Terraform
uuid: d9db10d3-db70-48aa-8d44-f96ccbaa29f3
Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/hcl/basic.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

# line comment

// line comment
Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/hcl/blocks.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

// terraform type block
resource "aws_instance" "web" {
ami = "ami-a1b2c3d4"
Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/hcl/comments.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

# line comment

// line comment
Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/hcl/data_sources.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

data "aws_ami" "example" {
most_recent = true

Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/hcl/expressions_conditional.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

var.a != "" ? var.a : "default-a"
var.example ? tostring(12) : "hello"
var.example ? 12 : "hello"
3 changes: 3 additions & 0 deletions tests/snapshot/hcl/expressions_dynamic.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

resource "thing" "name" {
name = "tf-test-name"

Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/hcl/expressions_for.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

[for s in var.list : upper(s)]

[for k, v in var.map : length(k) + length(v)]
Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/hcl/expressions_functions.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

# numeric

abs(23)
Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/hcl/expressions_operators.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

# arithmetic

1 + 2 * 3 / 4
Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/hcl/expressions_splat.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

attr = [for o in var.list : o.id]

attr = var.list[*].id
Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/hcl/expressions_strings.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

attr = "hello"

attr = "\n\r\t\"\\"
Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/hcl/expressions_traversals.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

attr = var.test
attr = var.test42
attr = var.test42test
Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/hcl/issue1286.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

variable "foo" {
description = "bar"
nullable = true
Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/hcl/issue19.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

variable "test" {
type = object({
test_object = map( # here
Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/hcl/issue41.hcl
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

post-processor "foo" {}
3 changes: 3 additions & 0 deletions tests/snapshot/hcl/issue809.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

locals {
key_name = "testing"
test_example = {
Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/hcl/issue927.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

variable "foo" {}
output "result-val" { value = var.foo }

Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/hcl/issue941.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

instance_size = ( #Comment
length(var.instance_size) > 0 ? ( #Comment
var.instance_size #If instance size is provided, use it.
Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/hcl/modules.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

module "servers" {
source = "./app-cluster"

Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/hcl/nested_maps.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

ipam_configuration = {
us-east-1 = {
cidr = ["10.0.0.0/16"]
Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/hcl/providers.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

provider "google" {
project = "acme-app"
region = "us-central1"
Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/hcl/variables_input.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

# input variables

variable "image_id" {
Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/hcl/variables_local.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

locals {
service_name = "forum"
owner = "Community Team"
Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/hcl/variables_output.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

output "instance_ip_addr" {
value = aws_instance.server.private_ip
}
Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/terraform/basic.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

# line comment

// line comment
Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/terraform/blocks.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

resource "aws_instance" "web" {
ami = "ami-a1b2c3d4"
instance_type = "t2.micro"
Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/terraform/comments.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

# line comment

// line comment
Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/terraform/data_sources.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

data "aws_ami" "example" {
most_recent = true

Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/terraform/expressions_conditional.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

var.a != "" ? var.a : "default-a"
var.example ? tostring(12) : "hello"
var.example ? 12 : "hello"
3 changes: 3 additions & 0 deletions tests/snapshot/terraform/expressions_dynamic.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

resource "thing" "name" {
name = "tf-test-name"

Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/terraform/expressions_for.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

[for s in var.list : upper(s)]

[for k, v in var.map : length(k) + length(v)]
Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/terraform/expressions_functions.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

# numeric

abs(23)
Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/terraform/expressions_operators.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

# arithmetic

1 + 2 * 3 / 4
Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/terraform/expressions_splat.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

attr = [for o in var.list : o.id]

attr = var.list[*].id
Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/terraform/expressions_strings.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

attr = "hello"

attr = "\n\r\t\"\\"
Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/terraform/expressions_traversals.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

attr = var.test
attr = var.test42
attr = var.test42test
Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/terraform/issue19.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

variable "test" {
type = object({
test_object = map( # here
Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/terraform/issue809.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

locals {
key_name = "testing"
test_example = {
Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/terraform/issue927.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

variable "foo" {}
output "result-val" { value = var.foo }

Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/terraform/issue941.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

instance_size = ( #Comment
length(var.instance_size) > 0 ? ( #Comment
var.instance_size #If instance size is provided, use it.
Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/terraform/modules.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

module "servers" {
source = "./app-cluster"

Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/terraform/nested_maps.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

ipam_configuration = {
us-east-1 = {
cidr = ["10.0.0.0/16"]
Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/terraform/providers.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

provider "google" {
project = "acme-app"
region = "us-central1"
Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/terraform/variables_input.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

# input variables

variable "image_id" {
Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/terraform/variables_local.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

locals {
service_name = "forum"
owner = "Community Team"
Expand Down
3 changes: 3 additions & 0 deletions tests/snapshot/terraform/variables_output.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

output "instance_ip_addr" {
value = aws_instance.server.private_ip
}
Expand Down
5 changes: 5 additions & 0 deletions tools/graph.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/

interface Entry {
patterns?: {
include?: string;
Expand Down

0 comments on commit 3c1b3a6

Please sign in to comment.