Skip to content

R2 관련 환경변수 Terraform에서 자동 생성#7

Merged
robin-maki merged 1 commit into
mainfrom
terraform-r2-secret
Feb 24, 2026
Merged

R2 관련 환경변수 Terraform에서 자동 생성#7
robin-maki merged 1 commit into
mainfrom
terraform-r2-secret

Conversation

@robin-maki

@robin-maki robin-maki commented Feb 24, 2026

Copy link
Copy Markdown
Member

Summary by CodeRabbit

변경 사항

  • 저장소 및 CDN 구성

    • CDN 도메인을 위한 새로운 저장소 설정 추가
    • R2 스토리지 엔드포인트 설정 업데이트 (향상된 호환성)
    • R2 버킷 이름 저장소 설정 추가
  • 기타

    • 코드 형식 정렬 정리

@coderabbitai

coderabbitai Bot commented Feb 24, 2026

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 063d493 and 07b87d2.

📒 Files selected for processing (2)
  • apps/terraform/cloudflare.tf
  • apps/terraform/variables.tf

Walkthrough

Terraform 구성을 업데이트하여 Infisical 시크릿 두 개(cdn_domain, r2_bucket)를 추가하고, r2_endpoint의 값을 GCS 스타일의 R2 엔드포인트 형식으로 변경하며, variables.tf의 서식을 정정했습니다.

Changes

Cohort / File(s) Summary
Infisical 시크릿 구성
apps/terraform/cloudflare.tf
cdn_domain과 r2_bucket이라는 두 개의 새로운 Infisical 시크릿 리소스를 추가했으며, r2_endpoint의 값을 https://${cloudflare_r2_custom_domain.media.domain}에서 https://${var.cloudflare_account_id}.r2.cloudflarestorage.com으로 업데이트했습니다.
서식 정정
apps/terraform/variables.tf
Terraform 변수 선언에서 type 속성의 정렬을 조정했습니다(의미적 변화 없음).

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed 풀 리퀘스트 제목이 변경사항의 주요 내용과 직접적으로 관련이 있습니다. Terraform에서 R2 관련 환경변수를 자동으로 생성하는 것이 이 PR의 핵심 목표이며, cloudflare.tf와 variables.tf 파일의 변경사항들이 이를 반영합니다.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch terraform-r2-secret

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

Copy link
Copy Markdown
Show Terraform Plan
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create
  ~ update in-place

Terraform will perform the following actions:

  # infisical_secret.cdn_domain will be created
  + resource "infisical_secret" "cdn_domain" {
      + env_slug     = "prod"
      + folder_path  = "/"
      + id           = (known after apply)
      + last_updated = (known after apply)
      + name         = "CDN_DOMAIN"
      + value        = (sensitive value)
      + value_wo     = (write-only attribute)
      + workspace_id = "12d909ee-8d45-4295-8a7e-2e2775da4b1d"
    }

  # infisical_secret.r2_bucket will be created
  + resource "infisical_secret" "r2_bucket" {
      + env_slug     = "prod"
      + folder_path  = "/"
      + id           = (known after apply)
      + last_updated = (known after apply)
      + name         = "R2_BUCKET"
      + value        = (sensitive value)
      + value_wo     = (write-only attribute)
      + workspace_id = "12d909ee-8d45-4295-8a7e-2e2775da4b1d"
    }

  # infisical_secret.r2_endpoint will be updated in-place
  ~ resource "infisical_secret" "r2_endpoint" {
        id           = "a5a16e4e-699c-4971-9d87-07426f112a4c"
      ~ last_updated = "Tuesday, 24-Feb-26 08:56:39 UTC" -> (known after apply)
        name         = "R2_ENDPOINT"
      ~ value        = (sensitive value)
        # (4 unchanged attributes hidden)
    }

Plan: 2 to add, 1 to change, 0 to destroy.

@robin-maki robin-maki added this pull request to the merge queue Feb 24, 2026
Merged via the queue into main with commit f6a046c Feb 24, 2026
2 checks passed
@robin-maki robin-maki deleted the terraform-r2-secret branch February 24, 2026 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant