Skip to content

Instantly share code, notes, and snippets.

@g-awmalik
Last active August 16, 2023 02:17
Show Gist options
  • Save g-awmalik/813e6b8a277dd8f7f9d84dec4230e6dc to your computer and use it in GitHub Desktop.
Save g-awmalik/813e6b8a277dd8f7f9d84dec4230e6dc to your computer and use it in GitHub Desktop.
Step #3 - "apply": Error: Received unexpected error:
Step #3 - "apply": FatalError{Underlying: error while running command: exit status 1;
Step #3 - "apply": Error: No value for required variable
Step #3 - "apply":
Step #3 - "apply": on variables.tf line 22:
Step #3 - "apply": 22: variable "tfc_org_name" {
Step #3 - "apply":
Step #3 - "apply": The root module input variable "tfc_org_name" is not set, and has no default
Step #3 - "apply": value. Use a -var or -var-file command line argument to provide a value for
Step #3 - "apply": this variable.
Step #3 - "apply":
Step #3 - "apply": Error: No value for required variable
Step #3 - "apply":
Step #3 - "apply": on variables.tf line 51:
Step #3 - "apply": 51: variable "tfc_agent_image" {
Step #3 - "apply":
Step #3 - "apply": The root module input variable "tfc_agent_image" is not set, and has no
Step #3 - "apply": default value. Use a -var or -var-file command line argument to provide a
Step #3 - "apply": value for this variable.}
Step #3 - "apply": Test: TestAll/examples/tfc-agent-gke-custom
Step #3 - "apply": Error: Received unexpected error:
Step #3 - "apply": FatalError{Underlying: error while running command: exit status 1;
Step #3 - "apply": Error: No value for required variable
Step #3 - "apply":
Step #3 - "apply": on variables.tf line 22:
Step #3 - "apply": 22: variable "tfc_org_name" {
Step #3 - "apply":
Step #3 - "apply": The root module input variable "tfc_org_name" is not set, and has no default
Step #3 - "apply": value. Use a -var or -var-file command line argument to provide a value for
Step #3 - "apply": this variable.
Step #3 - "apply":
Step #3 - "apply": Error: No value for required variable
Step #3 - "apply":
Step #3 - "apply": on variables.tf line 57:
Step #3 - "apply": 57: variable "source_image" {
Step #3 - "apply":
Step #3 - "apply": The root module input variable "source_image" is not set, and has no default
Step #3 - "apply": value. Use a -var or -var-file command line argument to provide a value for
Step #3 - "apply": this variable.}
Step #3 - "apply": Test: TestAll/examples/tfc-agent-mig-vm-packer
Step #3 - "apply": Error: Received unexpected error:
Step #3 - "apply": FatalError{Underlying: error while running command: exit status 1;
Step #3 - "apply": Error: No value for required variable
Step #3 - "apply":
Step #3 - "apply": on variables.tf line 22:
Step #3 - "apply": 22: variable "tfc_org_name" {
Step #3 - "apply":
Step #3 - "apply": The root module input variable "tfc_org_name" is not set, and has no default
Step #3 - "apply": value. Use a -var or -var-file command line argument to provide a value for
Step #3 - "apply": this variable.}
Step #3 - "apply": Test: TestOidcSimple
Step #3 - "apply": Error: Received unexpected error:
Step #3 - "apply": FatalError{Underlying: error while running command: exit status 1;
Step #3 - "apply": Error: No value for required variable
Step #3 - "apply":
Step #3 - "apply": on variables.tf line 22:
Step #3 - "apply": 22: variable "tfc_org_name" {
Step #3 - "apply":
Step #3 - "apply": The root module input variable "tfc_org_name" is not set, and has no default
Step #3 - "apply": value. Use a -var or -var-file command line argument to provide a value for
Step #3 - "apply": this variable.}
Step #3 - "apply": Test: TestTfcAgentGkeSimple
Step #3 - "apply": Error: Received unexpected error:
Step #3 - "apply": FatalError{Underlying: error while running command: exit status 1;
Step #3 - "apply": Error: No value for required variable
Step #3 - "apply":
Step #3 - "apply": on variables.tf line 22:
Step #3 - "apply": 22: variable "tfc_org_name" {
Step #3 - "apply":
Step #3 - "apply": The root module input variable "tfc_org_name" is not set, and has no default
Step #3 - "apply": value. Use a -var or -var-file command line argument to provide a value for
Step #3 - "apply": this variable.}
Step #3 - "apply": Test: TestTfcAgentMigContainerVmSimple
Step #3 - "apply": Error: Received unexpected error:
Step #3 - "apply": FatalError{Underlying: error while running command: exit status 1;
Step #3 - "apply": Error: No value for required variable
Step #3 - "apply":
Step #3 - "apply": on variables.tf line 22:
Step #3 - "apply": 22: variable "tfc_org_name" {
Step #3 - "apply":
Step #3 - "apply": The root module input variable "tfc_org_name" is not set, and has no default
Step #3 - "apply": value. Use a -var or -var-file command line argument to provide a value for
Step #3 - "apply": this variable.}
Step #3 - "apply": Test: TestTfcAgentMigVmSimple
@gautambaghel
Copy link

@g-awmalik - This is expected, we need to pass the TFC token and TFC org name somehow...

The custom image however needs to be resolved, is there a way to create the image via the Cloudbuild pipeline? It's taken from the GH pipeline repo here -> https://github.com/terraform-google-modules/terraform-google-github-actions-runners/tree/master/examples/gh-runner-mig-native-packer

I need to know from Bharath how he tests these...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment