Point parallel cluster onNodeConfigured option to script on locally mounted filesystem

0

When setting up a parallel cluster, there is an option to mount an EFS file system on head and compute nodes with something like:

SharedStorage:
  - MountDir: /efs
    Name: standard-efs
    StorageType: Efs
    EfsSettings:
      FileSystemId: fs-blah

There is also a way to run an automatic configuration script on head/compute nodes with, e.g.,:

HeadNode:
  CustomActions:
    OnNodeConfigured: script-url

Currently, script-url has to start with s3:// or https://. Is there a way to point a head/compute node configuration script to my mounted EFS dir, e.g., to file://efs/my-node-setup.sh?

JohnB
posta un anno fa217 visualizzazioni
1 Risposta
1
Risposta accettata

Hi JohnB,

this is currently not possible, as workaround you could use a simple script in s3 that calls the script in the efs storage:

HeadNode:
  CustomActions:
    OnNodeConfigured: s3://simple-script.sh

content of the simple-script.sh:

bash /efs/my-node-setup.sh

Enrico

AWS
con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande