Comments (10)
The way it is now just setting destroy_cmd_body
to something like ""
would still break because it'll still attempt to just run gcloud
at destroy time before the executable is there.
If you also set destroy_cmd_entrypoint = ""
that should at least let terraform destroy finish. Obviously the iam-service-account would still be disabled for you since the enable
on destroy wouldn't run.
from terraform-google-gcloud.
What platform are you using? And can you run terraform version
?
from terraform-google-gcloud.
@chiokejjones could you try explicitly setting the version for this module to v0.2.0
and let us know if it was successful? There was a big change in v0.3.0
that shifted things around quite a bit.
from terraform-google-gcloud.
Hey fellas.
@morgante I'm using Terraform Enterprise running Terraform v0.12.18
.
@milesmatthias I receive the same error when explicitly setting v0.2.0
or v0.1.0
.
from terraform-google-gcloud.
@chiokejjones How about with v0.3.0
? @taylorludwig Could your changes have caused this? Maybe we can test on Terraform Cloud.
from terraform-google-gcloud.
@morgante the command looks good. I see the PATH
updated as expected with the new v0.3.0
changes.
I did notice in the output above the command is gcloud iam service-accounts enable projects/...
but enable
is the destroy_cmd_body
So it would make sense that it fails on destroy
- the decompress
and upgrade
resources wouldn't have run on a fresh new vm/container (as terraform cloud would do) just to do a destroy so gcloud
command wouldn't be there.
I believe it would have failed prior to v0.3.0
for the same reason.
@chiokejjones could you confirm if its failing on destroy
and not apply
?
I can setup a terraform cloud project to replicate
from terraform-google-gcloud.
I was able to replicate the same error on terraform cloud during a destroy
.
apply
worked as intended. I'll see if I can find a way to force the provision steps to happen on destroy
for the setup gcloud resources.
from terraform-google-gcloud.
@morgante I received the same error on all three versions.
@taylorludwig It seems to force the destroy of the null_resources
regardless if I'm making a change to the service account or not. I can try removing the destroy_cmd_body
from the module logic.
from terraform-google-gcloud.
I was able to get create and destroy working with my PR here #11
@morgante seems a bit hacky and a lot of duplicate null_resource
local-exec
resources. But it does make sure that gcloud is decompressed and setup in the proper order during a destroy.
Output of my terraform cloud runs
from terraform-google-gcloud.
The way it is now just setting
destroy_cmd_body
to something like""
would still break because it'll still attempt to just rungcloud
at destroy time before the executable is there.If you also set
destroy_cmd_entrypoint = ""
that should at least let terraform destroy finish. Obviously the iam-service-account would still be disabled for you since theenable
on destroy wouldn't run.
@taylorludwig Thanks for the suggestion. Nulling those two parameters allowed the destroy to finish.
from terraform-google-gcloud.
Related Issues (20)
- Add option to install numPy
- add module_depends_on to asm sub-module?
- In TF 0.13+ all list elements must have the same type HOT 3
- Add output of the gcloud command in the terraform state HOT 5
- No file diectory issue HOT 1
- Dependency Dashboard
- bin_dir is an object HOT 1
- I get local provisioner error when I try to set composer permissions using gloud on terraform HOT 1
- WARNING: the gcp auth plugin is deprecated in v1.22+, unavailable in v1.26+; use gcloud instead. HOT 1
- Add support for OAuth access_token authentication HOT 3
- Add support for update command HOT 1
- Add a support to use Workload Identity Config File to login HOT 2
- use_connect_gateway: true drops memberships from cmd
- Adding a CMD param in the middle of arguments array breaks downstream HOT 3
- run_destroy_command is also triggered when create_cmd_triggers are used HOT 1
- Add support for using Connect Gateway with modules/kubectl-wrapper HOT 1
- Add proxy support HOT 1
- Update provider version constraint to support latest - v5.0.0
- Unable to retrieve list of available versions for hashicorp/google provider with specific constraints. HOT 5
- Cannot install gke-gcloud-auth-plugin as a component HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-google-gcloud.