I am facing an issue with regards to terraform plan check test which is a mandatory check in one of our private github private repositories.
While I perform the terraform plan
and terraform apply
locally on my pc, this works but once the code is checked into github this test pull-tfplan
fails
Could someone help me in resolving this issue as I am not able to understand from where prow is picking up this config. issue.
Error: Unsupported Terraform Core version
This configuration does not support Terraform version 0.12.29. To proceed,
either choose another supported Terraform version or update the root module's
version constraint. Version constraints are normally set for good reason, so
updating the constraint may lead to other errors or unexpected behavior.
Error: Initialization required. Please see the error message above.
Error: No configuration files
Plan requires configuration to be present. Planning without a configuration
would mark everything for destruction, which is normally not what is desired.
If you would like to destroy everything, run plan with the -destroy option.
Otherwise, create a Terraform configuration file (.tf file) and try again.
- name: pull-tfplan
decorate: true
decoration_config:
ssh_key_secrets:
- prow-github-ssh-key
always_run: true
skip_report: false
clone_uri: "[email protected]:VerveWireless/verve-group-infrastructure.git"
spec:
containers:
- image: pubnative/ci-runner:1.0
command: ["/bin/sh", "-c"]
args: [
"
set -x;
git-crypt unlock /etc/git-crypt/verve-group-infrastructure.gpg &&
/bin/bash ./bin/runtf.sh
"
]