Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dce system deploy fails with uninformative error message #410

Open
craig-carey opened this issue Sep 1, 2021 · 4 comments
Open

dce system deploy fails with uninformative error message #410

craig-carey opened this issue Sep 1, 2021 · 4 comments

Comments

@craig-carey
Copy link

craig-carey commented Sep 1, 2021

Version information

  • dce version: latest: 0.5.0 (dce version reports 0.4.0 though)
  • Ubuntu 20.04.3
  • Go version 1.17
  • Not using Terraform directly (but have 1.0.5 installed)

Describe the bug

dce system deploy
Initializing
Do you really want to create DCE resources in your AWS account? (type "yes" or "no")yes
Creating DCE infrastructure
Error: error creating infrastructure: Command failed: /home/craig/.dce/.cache/terraform/0.12.18/terraform apply -no-color -auto-approve -input=false: exit status 1

Expected behavior
exit status 0, infrastructure created

@craig-carey
Copy link
Author

Got it working by running /home/craig/.dce/.cache/terraform/0.12.18/terraform init, deleting ~/.dce/ and starting again

@mukdapu
Copy link

mukdapu commented Sep 25, 2023

It did not work for me even after terraform init.

terraform init
Terraform initialized in an empty directory!

The directory has no Terraform configuration files. You may begin working
with Terraform immediately by creating Terraform configuration files.

Getting the same error when executing this command:
dce system deploy

Error: error creating infrastructure: Command failed: /home/xyz/.dce/.cache/terraform/0.12.18/terraform apply -no-color -auto-approve -input=false: exit status 1

I tested both in ubuntu 20.04 and in Mac. Resulting with the same error

dce version : 0.4.0

@jezhalford
Copy link

jezhalford commented Jan 2, 2024

In my case this was because the CLI tool uses an older version of Terraform than is supported. Workaround was to add the download URL for the supported version as stated at https://github.com/Optum/dce/blob/master/modules/main.tf#L2 to my ~/.dce/config.yml file as follows...

...
terraform:
  bin: null
  source: https://releases.hashicorp.com/terraform/0.13.7/terraform_0.13.7_darwin_amd64.zip
...

@python7878
Copy link

Same issue

Default values for dce init

dce system deploy

Error: error creating infrastructure: Command failed: /home/bunny/.dce/.cache/terraform/0.12.18/terraform apply -no-color -auto-approve -input=false: exit status 1.
tried all of the above but didn't worked. Did anyone fixed this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants