yonran / yonathan.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blog

This is the source for my personal blog.

Manual setup

Purchase R2: Within https://dash.cloudflare.com/<ACCOUNT_ID>/r2/plans, Under “Get started with R2”, click “Purchase R2 Plan”.

Generate an S3 Auth token: Within https://dash.cloudflare.com/<ACCOUNT_ID>/r2/api-tokens, click “Create API token”.

Generate an API Token: within profile api tokens, create an api token with permissions:

  • Account; Workers Scripts; Edit. (cloudflare_worker_script)
  • Zone; DNS; Edit. (cloudflare_record)
  • Zone; SSL and Certificates; Edit. (cloudflare_certificate_pack)
  • Zone; Workers Routes; Edit. (cloudflare_worker_route)

terraform-provider-cloudflare does not support updating Registrar Domains so that has to be created using the gui.

Secrets

deploy.yaml depends on several secrets:

  • CLOUDFLARE_ACCOUNT_ID
  • CLOUDFLARE_API_TOKEN API Token described above
  • CLOUDFLARE_R2_ACCESS_KEY_ID and CLOUDFLARE_R2_SECRET_ACCESS_KEY: S3-compatible S3 Auth token described above
  • ARTIFACT_ENCRYPTION_PASSWORD: any random password to encrypt the secret tfplan within the artifact. I used openssl rand -base64 32 to generate one.

About


Languages

Language:JavaScript 48.5%Language:HCL 24.3%Language:TypeScript 10.9%Language:Shell 10.6%Language:Liquid 4.4%Language:CSS 0.9%Language:HTML 0.4%