Skip to content

Extra CLI arguments are not passed to terraform binary #20

@arm4b

Description

@arm4b

Consider this bitops.config.yaml:

terraform:
    cli:
        backend-config:
            - bucket=mybucket

It should generate the following CLI per Terraform docs:

$ terraform init \
     -backend-config="bucket=mybucket"

Instead, nothing passed to the init according to logs:

+ echo 'Running terraform init'
Running terraform init
+ terraform init -input=false

Next, terraform plan/apply accepts $BITOPS_CONFIG_COMMAND which should be populated with CLI args:

bash $SCRIPTS_DIR/terraform_plan.sh "$BITOPS_CONFIG_COMMAND"

However, this var is not created or implemented anywhere in the BitOps core.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions