Skip to content

Commit c5df9a7

Browse files
committed
chore: AWS 계정 이관 - 인프라 설정 변경
1 parent 85e07d8 commit c5df9a7

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

src/main/resources/application-prod.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ spring:
2929
static: ap-northeast-2
3030
stack:
3131
auto: false
32+
s3:
33+
bucket: team2-app-s3-bucket-haedok2025
3234

3335
springdoc:
3436
swagger-ui:

terraform/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ resource "aws_s3_bucket_public_access_block" "app_bucket_pab" {
223223
resource "aws_s3_bucket_policy" "app_bucket_policy" {
224224
bucket = aws_s3_bucket.app_bucket.id
225225

226+
depends_on = [aws_s3_bucket_public_access_block.app_bucket_pab]
227+
226228
policy = jsonencode({
227229
Version = "2012-10-17"
228230
Statement = [

terraform/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ variable "app_1_domain" {
2222

2323
variable "s3_bucket_name" {
2424
description = "S3 bucket name for file storage"
25-
default = "app-s3-bucket"
25+
default = "app-s3-bucket-haedok2025"
2626
}
2727

2828
variable "s3_public_read" {

0 commit comments

Comments
 (0)