SHINY_AWS utilities

SHINY_AWS utilities are provided to describe/update running shiny applications

The utilities are installed with all other SHINY_AWS components (such as ASIS or BSIS), and it can be simply called by

app_utils
        --job <JOB NAME>
        --name <SHINY APPLICATION NAME>

where:

  • --job is the job type to be carried out. Currently we can choose it from:
    • showip: showing the IP for the shiny application that can be accessed by the public

    • terminate: terminating an shiny application

    • makeami: making an AMI from an existing server (shiny application)

    • check: log into a shiny server

    • info: check if the cloud-init process is finished

  • --name is the shiny application name to be described/updated. It is usually the configuration filename for the shiny application.

For example, we can use the following command to shutdown a shiny application called test_shiny

app_utils --job terminate --name test_shiny

Note

app_utils --job makeami --name <SHINY APPLICATION NAME> can be used to make an AMI out of a running instance. This is very useful especially if we rely on renv to install dependancies ~ it usually takes very long to complete and install them every time when we need to bring up a new instance is really a pain.

Note

Sometimes we might be not able to login to the shiny servier with the error as REMOTE HOST IDENTIFICATION HAS CHANGED!. In this case please go to ~/.ssh/known_hosts and delete the lines with the conflict IP.