I have created a bastion host in AWS EC2 using BastionHostLinux
class. There I've specified the userData(custom software I want to install) using this.bastionHost.instance.addUserData("my custom software")
However, the problem I'm facing is that when I try to update the user data, although I'm updating the commands in addUserData()
method, that is not getting reflected in my bastion host. What to do to seamlessly update the userData without having to delete the Cloudformation Stack or something else everytime I want to update the userData?