file permissions
This commit is contained in:
parent
ad247e9435
commit
8dd5060779
|
@ -36,14 +36,16 @@ locals {
|
|||
# optionally generate providers and tfvars files for subsequent stages
|
||||
|
||||
resource "local_file" "providers" {
|
||||
for_each = var.outputs_location == null ? {} : local.providers
|
||||
filename = "${pathexpand(var.outputs_location)}/${each.key}/providers.tf"
|
||||
content = each.value
|
||||
for_each = var.outputs_location == null ? {} : local.providers
|
||||
file_permission = "0644"
|
||||
filename = "${pathexpand(var.outputs_location)}/${each.key}/providers.tf"
|
||||
content = each.value
|
||||
}
|
||||
|
||||
resource "local_file" "tfvars" {
|
||||
for_each = var.outputs_location == null ? {} : { 1 = 1 }
|
||||
filename = "${pathexpand(var.outputs_location)}/tfvars/00-bootstrap.auto.tfvars.json"
|
||||
for_each = var.outputs_location == null ? {} : { 1 = 1 }
|
||||
file_permission = "0644"
|
||||
filename = "${pathexpand(var.outputs_location)}/tfvars/00-bootstrap.auto.tfvars.json"
|
||||
content = jsonencode({
|
||||
automation_project_id = module.automation-project.project_id
|
||||
custom_roles = local.custom_roles
|
||||
|
|
Loading…
Reference in New Issue