Skip to content

Commit 0ee6300

Browse files
committed
tflint
1 parent d29c1b1 commit 0ee6300

File tree

6 files changed

+39
-34
lines changed

6 files changed

+39
-34
lines changed

examples/basic/outputs.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
output "tags" {
2-
value = module.labels.tags
2+
description = "output of tags."
3+
value = module.labels.tags
34
}
45

56
output "id" {
6-
value = module.labels.id
7+
description = "computed id."
8+
value = module.labels.id
79
}

locals.tf renamed to main.tf

File renamed without changes.

output.tf

Lines changed: 0 additions & 27 deletions
This file was deleted.

outputs.tf

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
output "tags" {
2+
description = "output of tags in awscc provider format."
3+
value = local.tags
4+
}
5+
6+
output "tags_aws" {
7+
description = "output of tags in aws provider format."
8+
value = local.tags_aws
9+
}
10+
11+
output "id" {
12+
description = "output of computed id based on inputs to module."
13+
value = local.ordered_id
14+
}
15+
16+
output "name" {
17+
description = "name of workload."
18+
value = local.vars["name"]
19+
}
20+
21+
output "namespace" {
22+
description = "namespace of workload."
23+
value = local.vars["namespace"]
24+
}
25+
26+
output "account" {
27+
description = "account of workload."
28+
value = local.vars["account"]
29+
}
30+
31+
output "env" {
32+
description = "environment of workload."
33+
value = local.vars["env"]
34+
}

versions.tf renamed to provider.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
terraform {
2+
required_version = ">= 0.15.0"
23
required_providers {
34
awscc = {
45
source = "hashicorp/awscc"

variable.tf renamed to variables.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
variable "region" {
2-
type = string
3-
default = "us-west-1"
4-
}
5-
61
variable "namespace" {
72
type = string
83
description = "namespace, which could be your organization name, e.g. amazon"

0 commit comments

Comments
 (0)