Closed eistrati closed 6 years ago
Intresting task, but workspace work only in version > 0.11.0 (tested), declared minimal version is 0.10, but in this version TF have some bugs. Before working with the "workspace", we will check the version.
Task is still in progress and assigned to @ddimitrioglo after Hands-on session on 23.01.2017
Test Failed
true
, but was skipped when running recink run terraform --tf-workspace='prod' --include-modules='steam-ec2-create'
command
Please refer to attachment for more details for log
and .recink.yml
configuration---
$:
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'
use-cache: false
plan: true
apply: false
destroy: false
vars:
access_key: 'process.env.AWS_ACCESS_KEY_ID'
secret_key: 'process.env.AWS_SECRET_ACCESS_KEY'
region: 'process.env.AWS_DEFAULT_REGION'
steam-ec2-create:
root: './'
terraform:
version: '0.11.0'
plan: false
apply: false
destroy: false
current-workspace: default
available-workspaces:
prod:
plan: true
apply: false
destroy: false
var-files:
- terraform.tfvars
test:
mapping: './tests/mapping.json'
plan: './tests/unit/'
apply: './tests/e2e/'
e2e:
testcafe:
screenshot:
enabled: true
take-on-fail: true
path: './tests/e2e/'
browsers:
- firefox
Checked.
Reference: https://www.terraform.io/docs/state/workspaces.html
Config example:
CLI example:
Clarification: