Skip to content

Datascience ML instance start/stop commands

Imported from Confluence

Content may be outdated. Verify before following any procedures. View original | Last updated: June 2022

Info

To be able to communicate with AWS API, do not forget to export your creds: OKTA → AWS SSO → INNERACTIVEPROD

image2022-1-31_13-6-8.png

Description

Since subscription price for the instance is quite expensive, we wanted to provide data science engineers with an ability to start/stop the thing.

Commands

To check if you have permissions just use a "--dry-run" option:

 ~/ aws ec2 --region us-east-1 start-instances --instance-ids i-045cdf9db62c8a958 --dry-run

An error occurred (DryRunOperation) when calling the StartInstances operation: Request would have succeeded, but DryRun flag is set.

To start the instance:

 ~/ aws ec2 --region us-east-1 start-instances --instance-ids i-045cdf9db62c8a958

To stop the intance:

 ~/ aws ec2 --region us-east-1 stop-instances --instance-ids i-045cdf9db62c8a958

Jumping to the host

Info

Access policy is implemented via ssh keys only, so please ask Data Science team or Devops BLN team in case you are being onboarded to the project.

 ~/ ssh ubuntu@datascience.fairbid-prd.fyber.com

Second instance

IP: 172.30.217.103

ID: i-09c8632cae6b055f9

DNS: datascience2.fairbid-prd.fyber.com

Additional info

DEVOPSBLN-2417

DEVOPSBLN-2392

DEVOPSBLN-2374

DEVOPSBLN-2524

Notes

In case a user is not able to login, check one of the following reasons:

  1. Authroized key (public) not in ./ssh/authroized_keys - if a user's public key is not there, that user might not be able to connect.
  2. VPN (Meta VPN) Proofpoint group should be "Berlin Engineers" - Talk to OIT / DEVOPS about it.