Skip to content

Commit 2c6557f

Browse files
committed
Fix tflint stuff
1 parent 07f671e commit 2c6557f

File tree

7 files changed

+39
-5
lines changed

7 files changed

+39
-5
lines changed

connector/terraform/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ module "account" {
2323
service_linked_roles = var.service_linked_roles
2424
support_role_expiration_date = var.support_role_expiration_date
2525
ecr_public_prefix = var.ecr_public_prefix
26+
network_configuration = var.network_configuration
2627
}
2728

2829
module "region" {

connector/terraform/modules/account/variables.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ variable "encrypt_with_cmk" {
8181
8282
DESCR
8383

84+
type = bool
8485
default = null
8586
}
8687

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
terraform {
2+
required_version = "~> 1.0"
3+
4+
required_providers {
5+
aws = {
6+
source = "hashicorp/aws"
7+
version = "~> 5.0"
8+
}
9+
http = {
10+
source = "hashicorp/http"
11+
version = "~> 3.0"
12+
}
13+
}
14+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
terraform {
2+
required_version = "~> 1.0"
3+
4+
required_providers {
5+
aws = {
6+
source = "hashicorp/aws"
7+
version = "~> 5.0"
8+
}
9+
}
10+
}

connector/terraform/modules/region/main.tf

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
locals {
22
elastio_endpoint = "https://${var.elastio_tenant}/public-api/v1"
3-
headers = {
4-
Authorization = "Bearer ${var.elastio_pat}"
5-
}
63
}
74

85
data "aws_caller_identity" "current" {}
@@ -42,8 +39,8 @@ resource "terraform_data" "elastio_cloud_connector" {
4239
elastio_endpoint = local.elastio_endpoint
4340
request_body = jsonencode(self.input)
4441

45-
// Using nonsensitive() to workaround the problem that the script's
46-
// output is entirely suppressed: https://github.com/hashicorp/terraform/issues/27154
42+
# Using nonsensitive() to workaround the problem that the script's
43+
# output is entirely suppressed: https://github.com/hashicorp/terraform/issues/27154
4744
elastio_pat = nonsensitive(var.elastio_pat)
4845
}
4946
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
terraform {
2+
required_version = "~> 1.0"
3+
4+
required_providers {
5+
aws = {
6+
source = "hashicorp/aws"
7+
version = "~> 5.0"
8+
}
9+
}
10+
}

connector/terraform/variables.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ variable "encrypt_with_cmk" {
107107
108108
DESCR
109109

110+
type = bool
110111
default = null
111112
}
112113

0 commit comments

Comments
 (0)