@@ -119,7 +119,7 @@ func execTerraformOutput(
119
119
if atmosConfig .Components .Terraform .AutoGenerateBackendFile {
120
120
backendFileName := filepath .Join (componentPath , "backend.tf.json" )
121
121
122
- log .Debug ("Writing the backend config to file: " , "file" , backendFileName )
122
+ log .Debug ("Writing backend config" , "file" , backendFileName )
123
123
124
124
backendTypeSection , ok := sections ["backend_type" ].(string )
125
125
if ! ok {
@@ -141,7 +141,7 @@ func execTerraformOutput(
141
141
return nil , err
142
142
}
143
143
144
- log .Debug ("Wrote the backend config to file: " , "file" , backendFileName )
144
+ log .Debug ("Wrote backend config" , "file" , backendFileName )
145
145
}
146
146
147
147
// Generate `providers_override.tf.json` file if the `providers` section is configured
@@ -150,15 +150,15 @@ func execTerraformOutput(
150
150
if ok && len (providersSection ) > 0 {
151
151
providerOverrideFileName := filepath .Join (componentPath , "providers_override.tf.json" )
152
152
153
- log .Debug ("Writing the provider overrides to file: " , "file" , providerOverrideFileName )
153
+ log .Debug ("Writing provider overrides" , "file" , providerOverrideFileName )
154
154
155
155
providerOverrides := generateComponentProviderOverrides (providersSection )
156
156
err = u .WriteToFileAsJSON (providerOverrideFileName , providerOverrides , 0o644 )
157
157
if err != nil {
158
158
return nil , err
159
159
}
160
160
161
- log .Debug ("Wrote the provider overrides to file: " , "file" , providerOverrideFileName )
161
+ log .Debug ("Wrote provider overrides" , "file" , providerOverrideFileName )
162
162
}
163
163
164
164
// Initialize Terraform/OpenTofu
@@ -195,7 +195,7 @@ func execTerraformOutput(
195
195
// Before executing `terraform init`, delete the `.terraform/environment` file from the component directory
196
196
cleanTerraformWorkspace (* atmosConfig , componentPath )
197
197
198
- log .Debug (fmt .Sprintf ("Executing ' terraform init %s -s %s' " , component , stack ))
198
+ log .Debug ("Executing terraform" , "command" , fmt .Sprintf ("terraform init %s -s %s" , component , stack ))
199
199
200
200
var initOptions []tfexec.InitOption
201
201
initOptions = append (initOptions , tfexec .Upgrade (false ))
0 commit comments