-
Notifications
You must be signed in to change notification settings - Fork 33
How to Detach BFD Server Instances for Development or Debugging
Follow this runbook to safely detach a BFD server instance for development or debugging using the AWS Console. It is assumed you have already signed in to the AWS Console while following the runbook.
- Detach a BFD Server Instance for Development or Debugging
- Patching Regularly When Instances Endure Beyond ~1 Day
- Terminating the Instance
- Navigate to the Auto Scaling Groups page, it is located under the EC2 service.
- Click on the listed group corresponding to the desired environment.
1. i.e. if
TEST
is the desired environment, click onbfd-test-fhir...
- On the Details tab, choose Group details, Edit.
- Increment the desired capacity by one. For example, if the current value is 6, enter 7.
1. The desired capacity must be less than or equal to the maximum size of the group. If your new value for Desired capacity is greater than Maximum capacity, you must update Maximum capacity. - When you are finished, choose Update.
Once you've verified that your Auto Scaling group has launched one additional instance, you are ready to detach the instance.
NOTE: Before detaching an instance, ensure you have already scaled out the Auto Scaling Group to avoid potential performance degradation.
- Navigate to the Auto Scaling Groups page, it is located under the EC2 service.
- Click on the listed group corresponding to the desired environment.
- i.e. if
TEST
is the desired environment, click onbfd-test-fhir...
- i.e. if
- On the Instance management tab, in Instances, select the checkbox for the instance and choose Actions, Detach.
- In the Detach instance dialog box, leave the checkbox to launch a replacement instance unchecked. Choose Detach instance.
Once you've verified that your instance has successfully detached, you are ready to rename the instance.
- In the Auto Scaling Group list, the detached instance will still exist in the group; note the ID of the instance.
- Go to Services > EC2 and click Instances
- Find the detached instance by its ID in the list
- Click the Edit button near the ID of the detached instance and rename it "
[ORIGINAL INSTANCE NAME]
-[FIRST INITIAL][LAST NAME]
". E.g.,bfd-test-fhir-jsmith
if the original name isbfd-test-fhir
and the user's full name isJohn Smith
.
Once you've verified that your instance has been renamed, you are ready to scale back in its Auto Scaling Group.
NOTE: This should almost never be done without having first recently scaled out the Auto Scaling Group.
- Navigate to the Auto Scaling Groups page, it is located under the EC2 service.
- Click on the listed group corresponding to the desired environment.
- i.e. if
TEST
is the desired environment, click onbfd-test-fhir...
- i.e. if
- On the Details tab, choose Group details, Edit.
- Decrement the desired capacity by one. For example, if the current value is 7, enter 6.
- When you are finished, choose Update.
Detached instances should be terminated as soon as possible, however, for those instances living beyond ~1 day, we should be mindful of any updates which may need to be applied.
Some examples:
- Performing
yum update
on the detached server instance. - Noting any updates to the AMI the server instance is built from, and applying those updates to the instance as needed.
- Navigate to the EC2 services page.
- Click on Instances (running) and select the instance.
- In the details page which opens, click the Instance state dropdown and select Terminate instance.
- Choose Terminate when prompted for confirmation.
- Home
- For BFD Users
- Making Requests to BFD
- API Changelog
- Migrating to V2 FAQ
- Synthetic and Synthea Data
- BFD SAMHSA Filtering