adding pulumi poc for website deployment

This commit is contained in:
David Brinovec
2026-09-07 16:40:09 -04:00
parent 2844134064
commit 94dd775061
12 changed files with 827 additions and 0 deletions

30
infra/notes/CLOUDFLARE.md Normal file
View File

@@ -0,0 +1,30 @@
## Cloudflare
### Getting the Cloudflare Account ID
1. Log in to the Cloudflare dashboard: https://dash.cloudflare.com
2. Go to **Compute** > **Workers & Pages** in the left sidebar.
3. **Account ID** will be on the right-hand sidebar of the Overview page. It's a 32-character hex string.
### Cloudflare Token Creation
1. Go to the token page
https://dash.cloudflare.com/profile/api-tokens
2. Click "Create Token"
3. Find "Edit Cloudflare Workers" in the templates list, click "Use template"
4. Name the token.
5. Account Resources: Include: The account
6. Zone Resources: Include: The zone
7. Click "Continue to summary"
8. Click "Create Token"
9. The token will only be displayed once.

View File

@@ -0,0 +1,3 @@
## Updating the passphrase
pulumi stack change-secrets-provider passphrase

11
infra/notes/STATE.md Normal file
View File

@@ -0,0 +1,11 @@
## Migrating from a local state file to a Cloudflare bucket
### while still on the local backend
pulumi stack export --file pulumi_state.json
### switch backends
pulumi login s3://<bucket>?endpoint=<account-id>.r2.cloudflarestorage.com&region=auto
### recreate the stack on the new backend and import the state
pulumi stack init dev
pulumi stack import --file pulumi_state.json