New tutorial: TLS with Cloudflare Origin Certificate on Hetzner Load Balancer using Pulumi#1427
Conversation
…r Load Balancer using Pulumi New tutorial covering how to provision a Hetzner Load Balancer with TLS termination using a Cloudflare Origin Certificate and a proxied DNS A record.
|
Thank you for your contribution @salemaljebaly. I tested your tutorial and ran into some issues. In step 2 you say:
However, in step 4, I get the following error: holu@example-server:~/hetzner-cloudflare-lb-pulumi$ set -a && source .env && set +a
holu@example-server:~/hetzner-cloudflare-lb-pulumi$ pulumi preview
Previewing update (dev):
Type Name Plan Info
+ pulumi:pulumi:Stack hetzner-cloudflare-lb-pulumi-dev create 1 error
Diagnostics:
pulumi:pulumi:Stack (hetzner-cloudflare-lb-pulumi-dev):
error: Missing required configuration variable 'hetzner-cloudflare-lb-pulumi:hcloudToken'
please set a value using the command `pulumi config set --secret hetzner-cloudflare-lb-pulumi:hcloudToken <value>`
Resources:
+ 1 to create
1 erroredI had to run this: pulumi config set --secret hcloudToken "$HCLOUD_TOKEN"Same for the other values in After everything was added, I got the following warning:
This is the output of Diagnostics:
hcloud:index:UploadedCertificate (tls-cert):
error: sdk-v2/provider2.go:572: sdk.helper_schema: missing field [Certificate] in [hcloud.CertificateCreateOpts]: provider=hcloud@1.32.1
error: 1 error occurred:
* missing field [Certificate] in [hcloud.CertificateCreateOpts]
pulumi:pulumi:Stack (hetzner-cloudflare-lb-pulumi-dev):
warning: Record is deprecated: cloudflare.index/record.Record has been deprecated in favor of cloudflare.index/dnsrecord.DnsRecord
error: update failed |
Thank you @svenja11 for the detailed feedback! All issues are fixed:
Re-validated from scratch with |
|
Thank you for updating the tutorial, I tested it again and it works now 🙂 |
Description
This tutorial explains how to provision a Hetzner Load Balancer with TLS termination using a Cloudflare Origin Certificate — without relying on Hetzner managed certificates or Let's Encrypt.
It covers:
CF-Connecting-IPThis is the third tutorial in the Pulumi + Hetzner series, building on:
Checklist
I have read and understood the Contributor's Certificate of Origin available at the end of
https://raw.githubusercontent.com/hetzneronline/community-content/master/tutorial-template.md
and I hereby certify that I meet the contribution criteria described in it.
Signed-off-by: Salem Aljebaly salemaljebaly@gmail.com