Using import option to get instance state terraform import -var="region=eu-west-1" -var="modify=yes" module.aws-instance.aws_instance.modify id-1234abcd
and apply to change required attribute for example reduce instance_type terraform apply -var="modify=true" -var="instance_type=t3.micro" -target=module.aws-instance.aws_instance.modify
The problem is to run a local script only after resource modification finished
Is there any way to call script after instance is modified ?