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

Tokens returned from gateway node resource are empty strings #29

Closed
nigelellis opened this issue Mar 16, 2022 · 5 comments
Closed

Tokens returned from gateway node resource are empty strings #29

nigelellis opened this issue Mar 16, 2022 · 5 comments

Comments

@nigelellis
Copy link

nigelellis commented Mar 16, 2022

Hi,

I've been working on bringing our gateways under terraform control. I've imported the gateways per the guide using their unique id (returned from sdm admin relays list):

> terraform import ...sdm_node.gateway n-xxx

The issue I'm seeing is that the gateway token is returned as an empty string.

I'm running on the latest version v2.0.0:

+ provider registry.terraform.io/strongdm/sdm v2.0.0

Gateway resource binding:

resource "sdm_node" "gateway" {
  gateway {
    name           = "dev-us-west-2-gateway-1"
    listen_address = "sdm-gateway-1.xx.yy:30001"
    bind_address   = "0.0.0.0:5000"
    tags = {
      aws_profile = "dev"
      aws_region  = "us-west-2"
    }
  }
}

I then later reference the value as sdm_node.gateway.gateway[0].token which is returning "".

@marysdm
Copy link

marysdm commented Mar 16, 2022

Hi Nigel,

Thank you for creating this issue. I'll be happy to help.

I'd like to open a ticket within the SDM support system for this problem.

Could you please provide your email address?

Thank you!
Mary

@marysdm
Copy link

marysdm commented Mar 16, 2022

Hi Nigel,

I created a support ticket for you, you should have received a copy.

Thank you!
Mary

@ryan-mcnulty-sp
Copy link

I saw the same thing. My guess is the token can not be imported since it is a "secret value" For instance, in the UI I don't see a way to get to the token after you create a gateway so it is reasonable to assume terraform couldn't get it either.

@nigelellis
Copy link
Author

nigelellis commented Jul 12, 2022 via email

@200sc
Copy link
Contributor

200sc commented Jan 26, 2023

Please reopen if there's anything else needed from this ticket.

@200sc 200sc closed this as completed Jan 26, 2023
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