Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

use the new bot API while keeping a similar behaviour #1047

Merged
merged 2 commits into from
Apr 4, 2024

Conversation

hugoShaka
Copy link
Contributor

We removed the old CreateBot RPC on master, the provider doesn't compile anymore.

This PR is a quick fix: it uses the new RPC to create the bot. The long term fix is doing a breaking change and using the new bot resource correctly (generating from protobuf/go structs instead of writing the provider manually).

I need the Terraform provider to compile on master because I want to copy it there to get rid of the teleport-plugins repo.

Sensitive: true,
Description: "The bot joining token. If unset, a new random token is created and its name returned, otherwise a preexisting Bot token may be provided for IAM/OIDC joining.",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: this description was wrong, it's not possible to unset the token in the TF provider.

@hugoShaka hugoShaka enabled auto-merge (squash) April 3, 2024 15:10
@hugoShaka hugoShaka merged commit 9ec3d1a into master Apr 4, 2024
14 checks passed
@hugoShaka hugoShaka deleted the hugo/fix-bot-rpc branch April 4, 2024 12:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants