You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the Spacelift Terraform Provider lacks a spacelift_user data source, which would allow users to retrieve information about existing Spacelift users. Adding this data source would enable users to manage existing users/policy mapping more efficiently and avoid potential conflicts when importing them into Terraform management.
Use Case:
When managing Spacelift users with Terraform, it is common to have a mix of existing users and new users. In order to properly manage existing users, it is necessary to retrieve their information from Spacelift and use it in the Terraform configuration. Without a spacelift_user data source, users are forced to manually provide the necessary information with a custom python script to retrieve the users through the GraphQL API, which is error-prone and inefficient.
Proposed Solution:
Implement a new data source called spacelift_user in the Spacelift Terraform Provider. This data source should allow users to retrieve information about existing Spacelift users based on their username or email address.
Proposed Attributes:
username (String, Required): The username of the Spacelift user.
email (String, Optional): The email address associated with the Spacelift user.
id (String, Computed): The unique identifier of the Spacelift user.
policy (map..., Computed):
role (String, Computed): The role assigned to the Spacelift user.
space_id (String, Computed): The ID of the space the user belongs to.
Description:
Currently, the Spacelift Terraform Provider lacks a
spacelift_user
data source, which would allow users to retrieve information about existing Spacelift users. Adding this data source would enable users to manage existing users/policy mapping more efficiently and avoid potential conflicts when importing them into Terraform management.Use Case:
When managing Spacelift users with Terraform, it is common to have a mix of existing users and new users. In order to properly manage existing users, it is necessary to retrieve their information from Spacelift and use it in the Terraform configuration. Without a
spacelift_user
data source, users are forced to manually provide the necessary information with a custom python script to retrieve the users through the GraphQL API, which is error-prone and inefficient.Proposed Solution:
Implement a new data source called
spacelift_user
in the Spacelift Terraform Provider. This data source should allow users to retrieve information about existing Spacelift users based on their username or email address.Proposed Attributes:
Example Usage:
Benefits:
The text was updated successfully, but these errors were encountered: