에러 - Travis가 AWS에 접근할 수 있는 방법

dawn·2021년 5월 30일
0

인프런

목록 보기
5/11
post-thumbnail

Travis CI랑 프로젝트 연결했더니 또 에러
.travis.yml파일 저장하고 push 했는데 또 같은 에러뜬다.

```HelloSpringApplicationTests > contextLoads() FAILED
    java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:132
        Caused by: org.springframework.beans.factory.BeanCreationException at AbstractAutowireCapableBeanFactory.java:1799
            Caused by: org.hibernate.service.spi.ServiceException at AbstractServiceRegistryImpl.java:275
                Caused by: org.hibernate.HibernateException at DialectFactoryImpl.java:100
MemberServiceIntegrationTest > join() FAILED
    java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:132
        Caused by: org.springframework.beans.factory.BeanCreationException at AbstractAutowireCapableBeanFactory.java:1799
            Caused by: org.hibernate.service.spi.ServiceException at AbstractServiceRegistryImpl.java:275
                Caused by: org.hibernate.HibernateException at DialectFactoryImpl.java:100
MemberServiceIntegrationTest > 회원_중복_예외() FAILED
    java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:132
        Caused by: org.springframework.beans.factory.BeanCreationException at AbstractAutowireCapableBeanFactory.java:1799
            Caused by: org.hibernate.service.spi.ServiceException at AbstractServiceRegistryImpl.java:275
                Caused by: org.hibernate.HibernateException at DialectFactoryImpl.java:100
10 tests completed, 3 failed
> Task :test FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':test'.
> There were failing tests. See the report at: file:///home/travis/build/kot8585/hello-spring/build/reports/tests/test/index.html
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.9/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 3m 17s
6 actionable tasks: 6 executed
The command "./gradlew clean build" exited with 1.
cache.2
store build cache
Done. Your build exited with 1.

내가 생각한 원인일 거 같은것 :

  • Travis가 RDS에 접근 못하나...?

어떻게 해야하지....
원래는 프로젝트에 H2 랑 연결해가지고 하는건데...
RDS에 접근할 수 있도록 해줘야하나?
비밀번호랑 없어서 그런건가? 로컬에서는 테스트 통과 했는데..
책 바로 다음장에 해결방법이 있었다... 엄청 헤맸는데ㅜ

원인

일반적으로 AWS 서비스에 외부 서비스가 접근할 수 없습니다.

해결방법

접근 가능한 권한을 가진 Key를 생성해서 사용해야 한다. AWS에서는 이러한 인증과 관련된 기능을 제공하는 서비스로 IAM이 있다.

profile
안녕하세요

0개의 댓글