The admins VMs run a script embedded as data-user in terraform.
The big downside of this is that if we need to make any changes, like update the terraform version, it'll destroy the current resource and build up a new one.
To avid this situation, we should create a master script, put it in an S3 bucket, and tell the terraform user-data to pull it and execute it. That way we can run it everytime we want without destroying the resource unnecessarily.
The admins VMs run a script embedded as data-user in terraform.
The big downside of this is that if we need to make any changes, like update the terraform version, it'll destroy the current resource and build up a new one.
To avid this situation, we should create a master script, put it in an S3 bucket, and tell the terraform user-data to pull it and execute it. That way we can run it everytime we want without destroying the resource unnecessarily.