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

[Feature Request] tfe_oauth_client: import resource and data source #203

Closed
kuroseets opened this issue Aug 13, 2020 · 6 comments
Closed

Comments

@kuroseets
Copy link
Contributor

I think that we use tfe_oauth_client.id often. but we cannot get already exist tfe_oauth_client object.
It is inconvenience because VSC Settings are often set using the GUI.

@bendrucker
Copy link
Contributor

Keep in mind that you'd need to pass the OAuth secret (oauth_token) separately, since the API does not return it. The typical pattern for this is to use an environment variable, e.g.:

TFE_OAUTH_TOKEN=$TOKEN terraform import tfe_oauth_client.foo oc-XKFwG6ggfA9n7t1K

This should be an easy-ish PR if you're so inclined! 🙂

@A30004028
Copy link

Check out the data source created by HappyPathway for getting it from the API, youshould be able to use it as a basis for what you need to get at. Then publish it as a module

https://github.com/HappyPathway/terraform-tfe-oauth-token

@kuroseets
Copy link
Contributor Author

kuroseets commented Aug 14, 2020

to: bendruckr
Thank you, I try it.

to: A30004098
Thank you.
I know we can get oauth id at API, I use now. But it is not I want.
I want to get on terraform code and to administrate its object.

@FlorentATo
Copy link

Gentle bump, our Terraform Cloud configuration isn't complete without this resource. Thank you :)

@annawinkler
Copy link
Contributor

annawinkler commented Oct 5, 2022

👋 Hi! Thank you for the bump on this issue. You know, I noticed that we added the resource
and the data source

c.f. this PR

From what I understand of this request, I think that the issue is resolved. Is there anything missing? @FlorentATo @kuroseets

@annawinkler
Copy link
Contributor

👋 Hi @FlorentATo and @kuroseets - checking in again about this request. I think we've addressed the request. I'll go ahead and close this issue. Please feel free to reopen if something is missing.

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

No branches or pull requests

6 participants