-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from NIGMS/Update_AWSBatch
Update aws batch
- Loading branch information
Showing
15 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# AWS Batch Setup | ||
|
||
## **0-Before You Begin** | ||
|
||
- Ensure you have a VPC, subnets, and security group set up before continuing the AWS Batch setup. | ||
- Attach following policies to your SageMaker notebook instance: | ||
|
||
 | ||
#### **1-Creating a Compute Environment** | ||
|
||
Naviate to **'AWS Batch'** in the console. Within AWS Batch on the left side menu navigate to **'Compute environments'**, select **'Create'**. | ||
For this tutorial we will be working with EC2, select 'EC2'. | ||
- Select \"Managed\" for Orchestration type. | ||
- Enter a name for your compute environment | ||
- Under service role select "AWSServiceRoleForBatch" | ||
- Under Instance role select "AWSServiceRoleForBatch" | ||
- Click 'Next' | ||
|
||
 | ||
|
||
We have set the fields in the image below to default. Click Next. | ||
|
||
 | ||
|
||
For Network Configuration select your VPC, subnets, and security groups you would like to utilize. This will allow AWS Batch to create instances that can communicate with each other and have access to acceptable networks. | ||
|
||
 | ||
|
||
The last step is to review all the configuration made to your compute environment. Once you are satisfied click "Create compute environment". | ||
|
||
 | ||
## **3-Creating a Job Queue** | ||
|
||
Now that we have created a compute environment lets create a job queue. Job queues help Batch to stay organized by holding jobs until they can be scheduled to run in a compute environment. | ||
|
||
In the AWS Batch console, go to the left side menu, click "Job queues" and click "Create". | ||
|
||
- Set orchestration type to EC2 | ||
- Give your queue a name and set its priority. for this tutorial we have se it to '1000' to have the highest priority | ||
- Associate the compute environment you created in the pervious step. | ||
- Review and create the job queue. | ||
|
||
 | ||
## **4-Applying Permissions** | ||
|
||
For this step we are enabling AWS Batch permissions on EC2 clusters. | ||
|
||
- On the left side menu under 'Control settings' click 'Permissions'. | ||
- Next to Container insights click 'Edit'. | ||
- Using the toggles select with compute environment should have these permissions and click 'Save changes'. | ||
|
||
 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
## How to Launch AWS Batch for Nextflow Workflows | ||
|
||
If you would like to skip building in the cloud and just launch the stack please click the button below and follow the instructions to complete stack deployment. The deployment should take ~5 min and then the resources will be ready for use. | ||
|
||
[](https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/new?stackName=aws-batch-nigms&templateURL=https://nigms-sandbox.s3.us-east-1.amazonaws.com/cf-templates/AWSBatch_template.yaml) | ||
|
||
Select `Next` at the bottom right.  | ||
|
||
Select `Next` again at the bottom right of the screen.  | ||
|
||
Select `I acknowledge` that AWS CloudFormation might create IAM resources and Next.  | ||
|
||
Review and select `Submit`.  | ||
|
||
When creating the SageMaker notebook please select the corresponding IAM role. The role name will start with aws-batch-nigms-SageMakerExecutionrole-*unique_identifier*.  |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.