Pass shell scripts to Ecs Instance by user_data parameter.
Planning phase
terraform plan
Apply phase
terraform apply
Destroy
terraform destroy