From within a Docker container, how can I detect that I am running inside an AWS environment? I want the same container to optionally execute some AWS commands on startup IF running from within AWS, but skip those if running in a local environment.
Currently, I am thinking that the simple way is to set an environment variable when running in AWS.
Is there another way?