Please I attempted deploying an OpenSwan VPN server to a virtual machine as highlighted in the Amazon Web Services in Action By Michael Wittig textbook. When I attempt creating the stack, it returns to rollback_in_progress.
aws cloudformation describe-stack-events --stack-name openvpn
Here is the remote repository: https://github.com/LaVie-environment/awsWebservices
I executed the command below with an expectation of creating the OpenSwan VPN server.
aws cloudformation describe-stack-events --stack-name openvpn
CodePudding user response:
When your stack fails to deploy for the first time (“create” rather than “update”), it cannot actually roll back to a known/stable state. Therefore, the only option you have is to remove it altogether and deploy again.
Some hints:
Although I also prefer the CLI in most cases, the Cloudformation UI is quite helpful in watching how your stack is created and, in case of errors, analyse what went wrong.
If you have a very complex stack and/or you try a few things out, it’s sometimes more convenient to just deploy a part of your stack at first, because it’s easier to incrementally update a stack than creating and re-creating all over. Simply comment the building blocks you don’t need from the start and then uncomment them one by one.