Skip to content

Commit

Permalink
docs(examples): remove path variable usage in HCL, fix name in pl…
Browse files Browse the repository at this point in the history
…ace of `username` in `ctfd_user` resource
  • Loading branch information
pandatix committed Apr 9, 2024
1 parent 03a97ec commit 7c16246
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/resources/ctfd_challenge/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ resource "ctfd_challenge" "http" {

files = [{
name = "image.png"
contentb64 = filebase64("${path.module}/image.png")
contentb64 = filebase64(".../image.png")
}]
}
3 changes: 2 additions & 1 deletion examples/resources/ctfd_user/resource.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
resource "ctfd_user" "ctfer" {
username = "CTFer"
name = "CTFer"
email = "ctfer-io@protonmail.com"
password = "password"

# Make the user administrator of the CTFd instance
type = "admin"
verified = true
hidden = true
Expand Down

0 comments on commit 7c16246

Please sign in to comment.