diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 689c1f0..b0b0f41 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -6,6 +6,7 @@ on: - main env: + AWS_REGION: ap-northeast-2 S3_BUCKET_NAME: st-github-actions-s3-bucket CODE_DEPLOY_APPLICATION_NAME: st-codedeploy-app diff --git a/build.gradle b/build.gradle index 9350aa5..0c362f9 100644 --- a/build.gradle +++ b/build.gradle @@ -30,6 +30,9 @@ dependencies { //db runtimeOnly 'com.mysql:mysql-connector-j' implementation 'mysql:mysql-connector-java:8.0.33' + + //aws + implementation 'org.springframework.cloud:spring-cloud-starter-aws:2.2.6.RELEASE' } tasks.named('test') { diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index d97537f..f2899d6 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,6 +1,19 @@ server: port: 8080 +cloud: + aws: + s3: + endpoint: https://s3.amazonaws.com + credentials: + access-key: AKIAQUM7QY6SGL7KBCSX + secret-key: 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 + bucket: url-qogustj + region: + static: ap-northeast-2 + stack: + auto: false + spring: datasource: driver-class-name: com.mysql.cj.jdbc.Driver @@ -13,12 +26,7 @@ spring: ddl-auto: update properties: hibernate.format_sql: true - security: - oauth2: - client: - registration: - google: - client-id: 799333127259-2e22vu6n71ctc579itbpvpdivoa8am99.apps.googleusercontent.com - client-secret: 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 - redirect-uri: http://localhost:8080/login/oauth2/code/google - scope: email, profile \ No newline at end of file + servlet: + multipart: + max-file-size: 10MB + max-request-size: 10MB \ No newline at end of file