# ===== AWS 클라우드 프로필 =====
# 사용법: --spring.profiles.active=prod,postgresql,aws
# AWS Cognito SSO + S3 연동

spring:
  security:
    oauth2:
      client:
        registration:
          cognito:
            client-id: ${AWS_COGNITO_CLIENT_ID}
            client-secret: ${AWS_COGNITO_CLIENT_SECRET}
            scope: openid,profile,email
        provider:
          cognito:
            issuer-uri: https://cognito-idp.${AWS_REGION:ap-northeast-2}.amazonaws.com/${AWS_USER_POOL_ID}

wbx:
  spring:
    mfa:
      enabled: true
      force-for-external: true
    file:
      storage-type: aws-s3
      aws:
        bucket: ${AWS_S3_BUCKET}
        region: ${AWS_REGION:ap-northeast-2}
        access-key: ${AWS_ACCESS_KEY}
        secret-key: ${AWS_SECRET_KEY}
