File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ func resourceGitlabUser() *schema.Resource {
15
15
Read : resourceGitlabUserRead ,
16
16
Update : resourceGitlabUserUpdate ,
17
17
Delete : resourceGitlabUserDelete ,
18
+ Importer : & schema.ResourceImporter {
19
+ State : schema .ImportStatePassthrough ,
20
+ },
18
21
19
22
Schema : map [string ]* schema.Schema {
20
23
"username" : {
Original file line number Diff line number Diff line change @@ -51,3 +51,11 @@ for the user.
51
51
The resource exports the following attributes:
52
52
53
53
* ` id ` - The unique id assigned to the user by the GitLab server.
54
+
55
+ ## Importing users
56
+
57
+ You can import a user to terraform state using ` terraform import <resource> <id> ` .
58
+ The ` id ` must be an integer for the id of the user you want to import,
59
+ for example:
60
+
61
+ terraform import gitlab_user.example 42
You can’t perform that action at this time.
0 commit comments