Cannot use session scripts to mount an s3 bucket in a linux appstream elastic fleet

0

Hello,

I have set up an elastic fleet to run linux instances in a vpc with two public subnets. The fleet is associated to an application with a statistical analysis software and I would like to use session scripts to mount an s3 bucket where data is stored. Mounting the external bucket works in the image builder. The elastic application launches correctly, but so far I am having troubles:

  • loading the scripts on the instance - I cannot see them in /opt/appstream/SessionScripts/
  • having the .sh script run

Has anyone attempted anything like this or can provide help?

Thanks

1 Answer
0

Elastic fleet session scripts are stored in S3. For the fleet instances to be able to download and execute the session script you need to ensure your fleet has 1) connectivity to S3 via internet or VPC Endpoint 2) The fleet is in the same region as the S3 bucket the script is stored in 3) The fleet has permissions to download the script from the S3 bucket. Please see the relevant section of the admin guide for more details. You may also want to enable Session Script logging to see if you can capture any errors.

answered 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions