terraform workspace select production echo "Planning replacement of bastion and elastic IP..." terraform plan -replace="aws_instance.bastion" \ -replace="aws_eip.bastion" \ -out=tfplan echo "Applying plan without interactive approval..." terraform apply -auto-approve tfplan echo "Bastion replacement complete."