Skip to content

Commit 7c16246

Browse files
committed
docs(examples): remove path variable usage in HCL, fix name in place of username in ctfd_user resource
1 parent 03a97ec commit 7c16246

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

examples/resources/ctfd_challenge/resource.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ resource "ctfd_challenge" "http" {
3131

3232
files = [{
3333
name = "image.png"
34-
contentb64 = filebase64("${path.module}/image.png")
34+
contentb64 = filebase64(".../image.png")
3535
}]
3636
}

examples/resources/ctfd_user/resource.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
resource "ctfd_user" "ctfer" {
2-
username = "CTFer"
2+
name = "CTFer"
33
email = "ctfer-io@protonmail.com"
44
password = "password"
55

6+
# Make the user administrator of the CTFd instance
67
type = "admin"
78
verified = true
89
hidden = true

0 commit comments

Comments
 (0)