Correct answer - "Use SSM Parameter Store" : AWS Systems Manager Parameter Store provides secure,
hierarchical storage for configuration data management and secrets management. You can store
data such as passwords, database strings, and license codes as parameter values.
"Use Environment variables" - If your refer to the AWS CLI, Environment variables provide another
way to specify configuration options and credentials, and can be useful for scripting or
temporarily setting a named profile as the default. Your application is not running AWS CLI
"Use Stage Variables" - You can use stage variables for managing multiple release stages for API
Gateway, this is not what you are looking for here
"Use S3" - S3 offers the same benefit as Parameter store where there are no servers to manage.
With S3 you have to set encryption and choose other security options and there are more chances
of misconfiguring security if you share your S3 bucket with other objects. You would have to
create a custom setup in order to come close to parameter store. Use Parameter Store and let AWS
handle the rest
For more information visit