org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cloud.aws.core.env.ResourceIdResolver.BEAN_NAME': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'stackResourceRegistryFactoryBean' defined in class path resource [org/springframework/cloud/aws/autoconfigure/context/ContextStackAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.aws.core.env.stack.config.StackResourceRegistryFactoryBean]: Factory method 'stackResourceRegistryFactoryBean' threw exception; nested exception is java.lang.IllegalArgumentException: No valid instance id defined
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'stackResourceRegistryFactoryBean' defined in class path resource [org/springframework/cloud/aws/autoconfigure/context/ContextStackAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.aws.core.env.stack.config.StackResourceRegistryFactoryBean]: Factory method 'stackResourceRegistryFactoryBean' threw exception; nested exception is java.lang.IllegalArgumentException: No valid instance id defined
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.aws.core.env.stack.config.StackResourceRegistryFactoryBean]: Factory method 'stackResourceRegistryFactoryBean' threw exception; nested exception is java.lang.IllegalArgumentException: No valid instance id defined
Caused by: java.lang.IllegalArgumentException: No valid instance id defined
🟡 해결
cloud.aws.stack.auto=false
기본적으로 CloudFormation 구성을 시작하도록 세팅이 되어있어서 사용하지 않도록 false로 한다.
CloudFormation은 AWS 리소스를 모델링하고 설정하는 서비스다.
참고 👇👇
https://jojoldu.tistory.com/300
https://docs.aws.amazon.com/ko_kr/AWSCloudFormation/latest/UserGuide/Welcome.html
반응형
'Framework > Spring Boot' 카테고리의 다른 글
[Error] Request failed with status code 403 (0) | 2024.04.04 |
---|---|
[Error] Uncaught exception: feign.RetryableException (0) | 2024.03.28 |
로컬에 파일 업로드 (0) | 2023.11.05 |
WebFlux (0) | 2023.03.13 |
Swagger 에러 (0) | 2023.02.15 |