VOOZH about

URL: https://repost.aws/questions/QUe-ofjfvpSZCBM-hg_-uPtQ/can-session-scripts-be-ran-in-appstream-2-0-linux-elastic-fleet-instances

⇱ Can Session Scripts be ran in AppStream 2.0 linux elastic fleet instances? | AWS re:Post


Skip to content

Can Session Scripts be ran in AppStream 2.0 linux elastic fleet instances?

0

In AppStream2.0 I am trying to run a bash script as session script in a linux based elastic fleet. I checked that config.json and script.sh get unzipped in the correct folder but the script doesn't actually run and logs are empty. The documentation mentions the type of scripts allowed are just .exe and .bat, does this mean session scripts are a windows only feature? Thank you

Language
English

asked 3 years ago746 views

2 Answers
  • Newest
  • Most votes
  • Most comments
Are these answers helpful? Upvote the correct answer to help the community benefit from your knowledge.
0

Session Scripts are available on both the Windows and Linux Elastic Fleets Which indicates that on Linux fleets you can run .sh script files.

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 review 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.

EXPERT

answered 3 years ago

0

I was having same issue. For me the solution was to change notepad++ settings to write unix files locally (I have windows machine). This can be done from settings/preferences/new document/format. Then use this setting to write config.json and script files

Additionally I changed to use 7zip to compress the files instead of windows own compress function.

answered 3 years ago