Closed avozicov closed 6 years ago
@avozicov could not reproduce with the following config:
---
$:
preprocess:
'$.terraform.vars.access_key': 'eval'
'$.terraform.vars.secret_key': 'eval'
'$.terraform.vars.region': 'eval'
emit:
pattern:
- /.+\.js.*$/i
ignore:
- /^(.*\/)?node_modules(\/?$)?/i
terraform:
resource: '.resource'
plan: false
apply: false
destroy: true
vars:
access_key: 'process.env.AWS_ACCESS_KEY_ID'
secret_key: 'process.env.AWS_SECRET_ACCESS_KEY'
region: 'process.env.AWS_DEFAULT_REGION'
iam2:
root: './iam'
terraform:
cache: false
Please let me know if I'm missing something
@ddimitrioglo
I can confirm that the issue is not reproduced anymore on my side as well.
I have successfully executed the plan for my resource using plan: true
option defined in the global terraform config
Checked.
We need to fix the behavior for defining and applying global resource configuration Actual Result:
plan, apply, destroy
options are set totrue
in global terraform config they are not applied to custom modules configurationPlease use the following config and commands to reproduce the issue:
qa-resource
recink run terraform
withdestroy
option set totrue
Please refer to attachment for more details: