As a side note, you also need to remove the 🥊character if you create the lifecycle configuration in the Chrome browser, otherwise you get a JS console error and the script won't submit:
Uncaught DOMException: Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.
Running the setup script verbatim shows this error:
🔴 Pidfile /var/run/sagemaker_knockout.pid does not exist
I found that running the official Sagemaker-provided idle script had no issues, so doesn't appear to be a permissions issue.
As a side note, you also need to remove the 🥊character if you create the lifecycle configuration in the Chrome browser, otherwise you get a JS console error and the script won't submit: