Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable Cloudformation in Spring Cloud AWS

How can I disable the Cloudformation in a spring boot app that using spring cloud AWS?

I keep getting this error when running my app on amazon:

...
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 com.amazonaws.AmazonServiceException: Stack for i-b5ce9e32 does not exist (Service: AmazonCloudFormation; Status Code: 400; Error Code: ValidationError; Request ID: 75b3076a-176d-11e6-90cc-b55a643dc6d6)
        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
        at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
        ... 82 more
Caused by: com.amazonaws.AmazonServiceException: Stack for i-b5ce9e32 does not exist (Service: AmazonCloudFormation; Status Code: 400; Error Code: ValidationError; Request ID: 75b3076a-176d-11e6-90cc-b55a643dc6d6)
        at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:1389)
        at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:902)
        at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.ja
...

I doesn't want to use cloudformation. (At least for now.)

like image 773
Lakatos Gyula Avatar asked May 11 '16 11:05

Lakatos Gyula


People also ask

How do I force stop CloudFormation stack?

To cancel a stack update by using the console From the list of stacks in the AWS CloudFormation console, select the stack that's currently being updated. Its status must be UPDATE_IN_PROGRESS. Choose Stack actions and then Cancel update stack. To continue canceling the update, choose Cancel update.

What is the use of CloudFormation in AWS?

AWS CloudFormation is a service that gives developers and businesses an easy way to create a collection of related AWS and third-party resources, and provision and manage them in an orderly and predictable fashion.

How long until CloudFormation time is out?

The Timeout property determines how long Amazon CloudFormation waits for the requisite number of success signals. Timeout is a minimum-bound property, meaning the timeout occurs no sooner than the time you specify, but can occur shortly thereafter. The maximum time that you can specify is 43200 seconds (12 hours ).

What is rollback complete in AWS CloudFormation?

Rollback triggers enable you to have AWS CloudFormation monitor the state of your application during stack creation and updating, and to roll back that operation if the application breaches the threshold of any of the alarms you've specified. For more information, see Monitor and Roll Back Stack Operations.


1 Answers

I have the following line in my application.properties (spring boot) file

cloud.aws.stack.auto=false

Official documentation: 4.4. CloudFormation configuration in Spring Boot

like image 78
zapl Avatar answered Oct 23 '22 14:10

zapl