Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update main.tf with file("example.private-key.pem") #193

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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