Skip to content

Instantly share code, notes, and snippets.

@graudeejs
Created May 3, 2023 11:34
Show Gist options
  • Save graudeejs/9c5a265088aef7e3937504d8f7021be6 to your computer and use it in GitHub Desktop.
Save graudeejs/9c5a265088aef7e3937504d8f7021be6 to your computer and use it in GitHub Desktop.
terraform apply with PAGERDUTY_TOKEN
2023-05-03T14:30:01.801+0300 [INFO] Terraform version: 1.4.6
2023-05-03T14:30:01.801+0300 [DEBUG] using github.com/hashicorp/go-tfe v1.21.0
2023-05-03T14:30:01.801+0300 [DEBUG] using github.com/hashicorp/hcl/v2 v2.16.2
2023-05-03T14:30:01.801+0300 [DEBUG] using github.com/hashicorp/terraform-config-inspect v0.0.0-20210209133302-4fd17a0faac2
2023-05-03T14:30:01.801+0300 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.0
2023-05-03T14:30:01.801+0300 [DEBUG] using github.com/zclconf/go-cty v1.12.1
2023-05-03T14:30:01.801+0300 [INFO] Go runtime version: go1.19.6
2023-05-03T14:30:01.801+0300 [INFO] CLI args: []string{"terraform", "apply"}
2023-05-03T14:30:01.801+0300 [DEBUG] Attempting to open CLI config file: /Users/aldis_berjoza/.terraformrc
2023-05-03T14:30:01.801+0300 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2023-05-03T14:30:01.801+0300 [INFO] Loading CLI configuration from /Users/aldis_berjoza/.terraform.d/credentials.tfrc.json
2023-05-03T14:30:01.802+0300 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2023-05-03T14:30:01.802+0300 [DEBUG] ignoring non-existing provider search directory /Users/aldis_berjoza/.terraform.d/plugins
2023-05-03T14:30:01.802+0300 [DEBUG] ignoring non-existing provider search directory /Users/aldis_berjoza/Library/Application Support/io.terraform/plugins
2023-05-03T14:30:01.802+0300 [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins
2023-05-03T14:30:01.802+0300 [INFO] CLI command args: []string{"apply"}
2023-05-03T14:30:01.809+0300 [DEBUG] Service discovery for app.terraform.io at https://app.terraform.io/.well-known/terraform.json
2023-05-03T14:30:02.405+0300 [DEBUG] Retrieve version constraints for service tfe.v2.1 and product terraform
2023-05-03T14:30:02.763+0300 [DEBUG] Service discovery for app.terraform.io aliased as localterraform.com
2023-05-03T14:30:03.467+0300 [DEBUG] checking for provisioner in "."
2023-05-03T14:30:03.468+0300 [DEBUG] checking for provisioner in "/Users/aldis_berjoza/bin"
2023-05-03T14:30:03.642+0300 [INFO] backend/remote: starting Apply operation
Running apply in the remote backend. Output will stream here. Pressing Ctrl-C
will cancel the remote apply if it's still pending. If the apply started it
will stop streaming the logs, but will not stop the apply running remotely.
Preparing the remote apply...
To view this run in a browser, visit:
https://app.terraform.io/app/EXAMPLE/pagerduty/runs/run-petN2xje4vjE8jm6
Waiting for the plan to start...
Terraform v1.3.9
on linux_amd64
Initializing plugins and modules...
│ Error: Missing required argument
│ on providers.tf line 26, in provider "pagerduty":
│ 26: provider "pagerduty" {
│ The argument "token" is required, but no definition was found.
Operation failed: failed running terraform plan (exit 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment