문제 상황: 멤버 생성 과정에서 응답이 null로 들어오는 것을 확인
{
"age": 0,
"id": null,
"mbti": null,
"name": null
}
문제 확인: 서비스에서 save를 하지않고 넘어감

해결 과정:
save 추가
문제 재확인
{
"age": 0,
"id": 1,
"mbti": null,
"name": null
}
id만 저장되고 나머지는 그대로 null
Member savedMember = memberRepository.save(member);
log.info("savedMember id = {}", savedMember.getId());
log.info("name = {}", savedMember.getName());
log.info("age = {}", savedMember.getAge());
log.info("mbti = {}", savedMember.getMbti());
save 뒤에 로그 찍어보니
마찬가지로 id만 저장되고 나머지는 null
-> dto 변환오류인가 찾아보니
@RequestBody이 빠진 것을 확인. 추가해서 해결
해결 완료
*************************** APPLICATION FAILED TO START ***************************
Description: Could not import properties from AWS Parameter Store.
Exception happened while trying to load the keys:
software.amazon.awssdk.services.ssm.model.SsmException:
The security token included in the request is invalid.
(Service: Ssm, Status Code: 400, Request ID: 66dd6539-6213-49b8-92e4-0c9c6faee70e)
(SDK Attempt Count: 1)
Action: Depending on error message determine action courseappication-prod.yaml에 시크릿 키를 환경변수에서 받아가는것을 확인spring:
cloud:
aws:
credentials:
access-key: {{access-key}}
secret-key: {{secret-key}}
// 이런 식으로..삭제해서 해결!!
처음에는 단순히 오래 걸리는 줄 알았지만, 도메인 입력 중에 오타를 발견
-> 오타를 수정하여 새로 인증서 요청
-> 완료!!
502 Bad Gateway 발생Unhealthy였다가 Auto Scaling 그룹에서 삭제 후 생성시키기를 반복한다는 것을 발견

ci-demo-ec2-role에 권한이 부족한게 아니냐는 피드백을 받음
트러블 슈팅이 뭔가 많았는데 클라우드는 중간중간 스크린샷이 필요해서 다 업로드 하지 못한게 아쉽다.
여러 피드백과 강의자료에 인공지능까지 많이 의존해서 겨우겨우 완료한 것 같다.
이건 언제쯤 숙달할 수 있을지...