From 3a7f10fece9df37a72adc4c642f26cf208256322 Mon Sep 17 00:00:00 2001 From: Bert Blommers Date: Thu, 23 Feb 2023 19:18:18 -0100 Subject: [PATCH] Admin: Improve docs on how to run Moto in CI/CD systems (#5967) --- docs/docs/getting_started.rst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/docs/getting_started.rst b/docs/docs/getting_started.rst index ecc01ef2f..449a2cac3 100644 --- a/docs/docs/getting_started.rst +++ b/docs/docs/getting_started.rst @@ -308,9 +308,11 @@ This will ensure that the boto3 requests are still mocked. Other caveats ~~~~~~~~~~~~~ -For Tox, Travis CI, and other build systems, you might need to also perform a `touch ~/.aws/credentials` -command before running the tests. As long as that file is present (empty preferably) and the environment -variables above are set, you should be good to go. +For Tox, Travis CI, Github Actions, and other build systems, you might need to also create fake AWS credentials. The following command will create the required file with some bogus-credentials: + +.. sourcecode:: bash + + mkdir ~/.aws && touch ~/.aws/credentials && echo -e "[default]\naws_access_key_id = test\naws_secret_access_key = test" > ~/.aws/credentials .. _unittest: https://docs.python.org/3/library/unittest.html .. _pytest: https://pytest.org/en/latest/