Wiki source code of Provisioning - pulumi
Last modified by Kevin Wiki on 2026/04/06 20:22
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | ## Setting up state backend in hetzner bucket | ||
| 2 | |||
| 3 | ### Configure Hetzner | ||
| 4 | |||
| 5 | Login and create an Object Storage Bucket at https://console.hetzner.com/project/YOUR_PROJECT_ID/buckets. | ||
| 6 | Define a unique name along with the region you want. Create the bucket with Private visibility. | ||
| 7 | |||
| 8 | Create S3 credentials for Private Bucket access under Hetzners Security page. | ||
| 9 | |||
| 10 | ### Configure environment | ||
| 11 | |||
| 12 | Define the following environment variables: | ||
| 13 | |||
| 14 | ```base | ||
| 15 | export AWS_ACCESS_KEY_ID="YOUR_HETZNER_ACCESS_KEY" | ||
| 16 | export AWS_SECRET_ACCESS_KEY="YOUR_HETZNER_SECRET_KEY" | ||
| 17 | EXPORT AWS_REGION="YOUR_AWS_REGION" | ||
| 18 | |||
| 19 | export PULUMI_COMFIG_PASSPHRASE="SOME_STRONG_PASSPHRASE | ||
| 20 | ``` | ||
| 21 | |||
| 22 | Now login with the following command structure: | ||
| 23 | |||
| 24 | ```bash | ||
| 25 | pulumi login "s3://YOUR_BUCKET_NAME?\ | ||
| 26 | endpoint=YOUR_BUCKET_REGION.your-objectstorage.com&\ | ||
| 27 | disableSSL=false&\ | ||
| 28 | s3ForcePathStyle=true" | ||
| 29 | |||
| 30 | ``` | ||
| 31 | |||
| 32 |