You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before we get started we need to add more permissions to **pcluster-manager**.
9
+
10
+
#### Modify the Lambda Function
11
+
12
+
1. Go to the [Lambda Console (deeplink)](https://eu-west-1.console.aws.amazon.com/lambda/home?region=eu-west-1#/functions?f0=true&fo=and&k0=functionName&n0=false&o0=%3A&op=and&v0=ParallelClusterFunction) and search for `ParallelClusterFunction`
13
+
2. Select the function then `Configuration` > `Permissions` > Click on the role under `Role name`.
The first screen leave it as is, next advance to the **HeadNode** tab.
31
23
32
-
#### 1. Add a compute queue with a different instance type for running the container
24
+
On the HeadNode tab add permission to access the [Amazon Elastic Container Registry (ECR)](https://aws.amazon.com/ecr/) by adding the managed `AmazonEC2ContainerRegistryFullAccess`[AWS IAM](https://aws.amazon.com/iam/) policy.
33
25
34
-
In this step, you will add a new compute queue that use **c5.xlarge** EC2 instances.
26
+
1. Click the drop down on the **Advanced options**
27
+
2. Click the drop down on **IAM Policies**
28
+
3. Add in the policy `arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryFullAccess`. Click Add.
In this step, you will add permission to the HPC cluster configuration file to access the [Amazon Elastic Container Registry (ECR)](https://aws.amazon.com/ecr/) by adding the managed `AmazonEC2ContainerRegistryFullAccess`[AWS IAM](https://aws.amazon.com/iam/) policy.
Next add in a script that installs Docker and Singularity on the Compute Nodes.
76
44
77
-
For your `post-install.sh` script to be use by the HPC Cluster, you will need to create [Amazon S3](https://aws.amazon.com/s3/) bucket and copy the `post-install.sh` script to the bucket.
45
+
1. Dropdown **Advanced Options** on the queue you just created
46
+
2. Paste in the following url into **On Configured** section `https://github.com/aws-samples/aws-hpc-tutorials/blob/isc22/static/scripts/post-install/container-install.sh`
47
+
3. Expand **IAM Policies** and paste in the following policy `arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryFullAccess`. Click Add.
Before proceeding to the cluster update, you can check the content of the configuration file that should look like this:
74
+
Once we've ran the update we'll be redirected to the main pcluster console screen where we can view update progress.
107
75
108
-
`cat ~/environment/my-cluster-config.yaml`
76
+
If the update doesn't succeed check the contents of the cluster configuration file looks similar to the below. If you are missing anything, review the steps above.
Connect to the Head node via DCV, following instructions from part **[h. Connect to the Cluster](/03-hpc-aws-parallelcluster-workshop/09-connect-cluster.html#dcv-connect)**
18
+
From the pcluster manager console connect to the cluster via [h. Connect to the Cluster](/03-hpc-aws-parallelcluster-workshop/09-connect-cluster.html#optional-ssm-connect).
13
19
14
20
Since the HPC Cluster existed prior to `post-install` script, you will need to manually install Docker and Singularity on the head node of the HPC Cluster.
Copy file name to clipboardExpand all lines: content/04-container-parallelcluster/_index.md
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,12 @@
1
1
---
2
-
title: "Container on AWS ParallelCluster"
2
+
title: "Containers on AWS ParallelCluster"
3
3
date: 2019-01-24T09:05:54Z
4
4
weight: 40
5
5
pre: "<b>Lab II ⁃ </b>"
6
6
tags: ["HPC", "Overview"]
7
7
---
8
8
9
-
10
-
{{% notice info %}}This lab requires an AWS Cloud9 IDE. If you do not have an AWS Cloud9 IDE set up, complete sections *a. Sign in to the Console* through *d. Work with the AWS CLI* in the **[Getting Started in the Cloud](/02-aws-getting-started.html)** workshop.
11
-
{{% /notice %}}
9
+

12
10
13
11
HPC Applications typically rely on several libraries and software components along with complex dependencies.
14
12
Those applications tend to be deployed on a shared file system for on-premise HPC system.
0 commit comments