I am using cloudformation to deploy/update some stacks, including RDS. At the moment I successfully created my database and I want to update the port since I set the wrong one.
Reading the docs I encounter that by updating it via cloudformation, I must rename the stack in order to be able to update the port, therefore it will just create a new RDS instance with the new port and destroy the old one, this means I must create a backup first and later restore it.
I was reading that updating the port "manually" from the AWS console does not behave that way and no data loss should happen, so far I have not tried.
So, for example:
My deployed cloudformation is the following:
cloudformation template -> port 123 deployed stack -> port 123
I need to update it to port 234
then my cloudformation will still know the latest deploy happen to port 123 deployed stack -> 234 (the updated via aws console)
My question is the following: In the case, I am able to update the port via AWS Console, what will happen with the cloudformation template? should I update the template to have port 234 or I should leave it with port 123 so it wont try to make an update? (that would cause inconsistency on what I have at the template and what is really deployed but I wonder if would work)
I dont have problems with all the vpc, security groups, rules, etc, its basically just the port.
Any idea about this?