Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ceferrari/5648ec5997b83cc475bf8c7f1199cb1b to your computer and use it in GitHub Desktop.
Save ceferrari/5648ec5997b83cc475bf8c7f1199cb1b to your computer and use it in GitHub Desktop.
cloudflare_workers_route with route_id
starting build "2aad84c4-946d-4560-8c9a-d4c1dcb9ae98"
FETCHSOURCE
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
Initialized empty Git repository in /workspace/.git/
From https://github.com/ceferrari/saas
* branch a023e20fe1a4d266cdbe75b7b3fc4e4770822dec -> FETCH_HEAD
HEAD is now at a023e20 test cloudflare terraform
GitCommit:
a023e20fe1a4d266cdbe75b7b3fc4e4770822dec
BUILD
Starting Step #0 - "terraform init -upgrade"
Pulling image: hashicorp/terraform:1.11
1.11: Pulling from hashicorp/terraform
b0f6f1c319a1: Pulling fs layer
9b0febcc16b0: Pulling fs layer
fe42e5911fab: Pulling fs layer
6b6b36068aff: Pulling fs layer
6b6b36068aff: Waiting
fe42e5911fab: Download complete
b0f6f1c319a1: Verifying Checksum
b0f6f1c319a1: Download complete
9b0febcc16b0: Verifying Checksum
9b0febcc16b0: Download complete
b0f6f1c319a1: Pull complete
9b0febcc16b0: Pull complete
fe42e5911fab: Pull complete
6b6b36068aff: Verifying Checksum
6b6b36068aff: Download complete
6b6b36068aff: Pull complete
Digest: sha256:5820b87995595425074f881500a037b0ccd41158d0d9b44d78f5f120612f2d3d
Status: Downloaded newer image for hashicorp/terraform:1.11
docker.io/hashicorp/terraform:1.11
Initializing the backend...
Successfully configured the backend "gcs"! Terraform will automatically
use this backend unless the backend configuration changes.
Initializing modules...
- dns in ../../modules/dns
- tunnel in ../../modules/tunnel
- worker in ../../modules/worker
- zone in ../../modules/zone
Initializing provider plugins...
- Finding hashicorp/google versions matching "~> 6.34.0"...
- Finding cloudflare/cloudflare versions matching "~> 5.4.0"...
- Finding latest version of hashicorp/random...
- Installing hashicorp/google v6.34.0...
- Installed hashicorp/google v6.34.0 (signed by HashiCorp)
- Installing cloudflare/cloudflare v5.4.0...
- Installed cloudflare/cloudflare v5.4.0 (self-signed, key ID C76001609EE3B136)
- Installing hashicorp/random v3.7.2...
- Installed hashicorp/random v3.7.2 (signed by HashiCorp)
Partner and community providers are signed by their developers.
If you'd like to know more about provider signing, you can read about it here:
https://developer.hashicorp.com/terraform/cli/plugins/signing
Terraform has created a lock file .terraform.lock.hcl to record the provider
selections it made above. Include this file in your version control repository
so that Terraform can guarantee to make the same selections by default when
you run "terraform init" in the future.
Terraform has been successfully initialized!
You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.
If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
Finished Step #0 - "terraform init -upgrade"
Starting Step #1 - "terraform plan"
Already have image (with digest): hashicorp/terraform:1.11
│ Error: Unsupported argument
│ on ../../modules/worker/resource.tf line 33, in resource "cloudflare_workers_route" "this":
│ 33: route_id = cloudflare_workers_script.this.id
│ An argument named "route_id" is not expected here.
Finished Step #1 - "terraform plan"
ERROR
ERROR: build step 1 "hashicorp/terraform:1.11" failed: step exited with non-zero status: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment