File tree 3 files changed +7
-2
lines changed
3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
data "local_file" "landing_zone_output_file" {
2
- depends_on = [null_resource. landing_zone_apply ]
2
+ depends_on = [
3
+ null_resource. terraform_output ,
4
+ null_resource. landing_zone_apply
5
+ ]
3
6
filename = pathexpand (var. terraform_output_path )
4
7
}
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ resource "null_resource" "terraform_output" {
6
6
7
7
resource "null_resource" "terraform_config" {
8
8
depends_on = [null_resource. terraform_output ]
9
+ count = length (var. landing_zone_components ) == 0 ? 0 : 1
10
+
9
11
triggers = {
10
12
config = var.terraform_config
11
13
sample = " .terrahub.yml.sample"
Original file line number Diff line number Diff line change 1
1
output "landing_zone" {
2
2
depends_on = [data . local_file . landing_zone_output_file ]
3
3
sensitive = true
4
- value = data. local_file . landing_zone_output_file . content == " " ? jsondecode (" \" null\" :{\" default\" :[\" null\" ]}" ) : jsondecode (data. local_file . landing_zone_output_file . content )
4
+ value = data. local_file . landing_zone_output_file . content == " " ? jsondecode (" { \" null\" :{\" default\" :[\" null\" ]} }" ) : jsondecode (data. local_file . landing_zone_output_file . content )
5
5
description = " The map of all output variables from components."
6
6
}
You can’t perform that action at this time.
0 commit comments