Hi all, I'm interested in transitioning to Pulumi ...
# general
Hi all, I'm interested in transitioning to Pulumi for a fairly large TF repo. I've already tried tf2pulumi and that didn't work, however I have a long car ride coming up where I won't have access to internet and I was thinking about creating it then. Is there a good way to do a testing "plan" without internet access? I just want to see what it would do if it had no real previous state.
Not at the moment, annoying preview will mostly work without the internet but still tries to validate credentials on startup. What provider where you planning on using (aws/azure/etc)? Might be a hacky way to skip the credential validation.
@quick-painter-61380, we are trying to catch up on the TF0.12+ support for
. You can see a number of similar issues filed here https://github.com/pulumi/tf2pulumi/issues
@echoing-dinner-19531 google
@limited-rainbow-51650 yeah, i saw an issue for it when i ran into trouble. no need for me to add any "me too" messages there, just wanted to figure out a decent way to work on recreating it without internet.
@quick-painter-61380 but do add a 👍🏼 on this issue: https://github.com/pulumi/tf2pulumi/issues/186 We watch interest in issues that way.
Is there a good way to do a testing "plan" without internet access?
Unfortunately not in your case. Sounds like you are using tf2pulumi so it would use the TF based Google provider (pulumi-gcp). The TF GCP providers seem to insist on connecting and validating credentials in order to log this very important log message: https://github.com/hashicorp/terraform-provider-google/blob/c53d3225d48423687c7a39a8958ad05d369e16c6/google/config.go#L572 🤦
Depending on how motivated you were, you could build a provider locally by removing that call (clone https://github.com/pulumi/pulumi-gcp and https://github.com/pulumi/terraform-provider-google-beta, make the change in the latter, update go.mod replace clause to use your local version, build the provider and add it to your PATH).