boltops-tools / terraspace

Terraspace: The Terraform Framework
https://terraspace.cloud
Apache License 2.0
674 stars 46 forks source link

`terraspace import` doesn't work #292

Closed vsinha closed 1 year ago

vsinha commented 1 year ago

It appears that terraspace doesn't handle parameters properly when calling terraspace import. Potentially, it's just that this error message needs updating. My reading of the message is that terraspasce was in fact called with two arguments.

$ terraspace import helm_release.foo my-k8s-namespace/foo-helm-deployment 
ERROR: "terraspace import" was called with arguments ["helm_release.foo", "my-k8s-namespace/foo-helm-deployment"]
Usage: "terraspace import ADDR ID"

Checklist

My Environment

Software Version
Operating System M1 MacOS darwin_arm64
Terraform 1.3.7
Terraspace 2.2.3
Ruby 3.2.0
vsinha commented 1 year ago

realizing now perhaps the correct invocation is terraspace <stack name> <resource> <helm release> ?

tongueroo commented 1 year ago

Here you go https://terraspace.cloud/reference/terraspace-import/

vsinha commented 1 year ago

The docs say:

terraspace import ADDR ID

And then immediately after that invoke terraspace with:

terraspace import vpc module.vpc.aws_vpc.this vpc-000782e4951a734c7

Should the docs say terraspace import STACK ADDR ID instead @tongueroo ?

tongueroo commented 1 year ago

Oh I see. Reopened