Skip to content

Conversation

Crash-GHaun
Copy link

Just updating so if someone isn't following a guide it's easy for them to insert their pem file

@Crash-GHaun Crash-GHaun requested review from gtsorbo and a team as code owners September 24, 2024 23:35
@apeabody
Copy link
Contributor

apeabody commented Nov 5, 2024

/gcbrun

@apeabody apeabody changed the title Update main.tf with file("example.private-key.pem") chore: update main.tf with file("example.private-key.pem") Nov 5, 2024
Copy link
Contributor

@apeabody apeabody left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution @Crash-GHaun!

For this change to work, please also include the sample file:

terraform_validate ./examples/gh-runner-gke-simple
╷
│ Error: Invalid function argument
│ 
│   on main.tf line 26, in module "runner-gke":
│   26:   gh_app_private_key     = file("example.private-key.pem")
│     ├────────────────
│     │ while calling file(path)
│ 
│ Invalid value for "path" parameter: no file exists at
│ "example.private-key.pem"; this function works only with files that are
│ distributed as part of the configuration source code, so if this file will
│ be created by a resource in this configuration you must instead obtain this
│ result from an attribute of that resource.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants