Wiki source code of Provisioning - pulumi
Last modified by Kevin Wiki on 2026/04/06 20:22
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
1.6 | 1 | ## Setting up state backend in hetzner bucket |
| |
1.1 | 2 | |
| |
1.8 | 3 | ### Configure Hetzner |
| |
1.6 | 4 | |
| |
1.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. | ||
| |
1.2 | 7 | |
| |
1.6 | 8 | Create S3 credentials for Private Bucket access under Hetzners Security page. |
| 9 | |||
| |
1.8 | 10 | ### Configure environment |
| 11 | |||
| 12 | Define the following environment variables: | ||
| 13 | |||
| |
1.9 | 14 | ```base |
| 15 | export AWS_ACCESS_KEY_ID="YOUR_HETZNER_ACCESS_KEY" | ||
| 16 | export AWS_SECRET_ACCESS_KEY="YOUR_HETZNER_SECRET_KEY" | ||
| |
2.1 | 17 | EXPORT AWS_REGION="YOUR_AWS_REGION" |
| |
1.9 | 18 | |
| 19 | export PULUMI_COMFIG_PASSPHRASE="SOME_STRONG_PASSPHRASE | ||
| 20 | ``` | ||
| 21 | |||
| 22 | Now login with the following command structure: | ||
| 23 | |||
| |
2.1 | 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 | |||
| |
1.8 | 32 |