Bert Blommers

Results 388 comments of Bert Blommers

This works for me @bsneider: ``` import boto3 import mock import os def test_x(): with mock.patch.dict(os.environ, {"MOTO_ACCOUNT_ID": "random"}): from moto import mock_sts with mock_sts(): client = boto3.client("sts", region_name="us-west-2") resp =...

This feature is now available as of Moto >= 4.0.0.dev3, as part of a broader rework to support multiple accounts - see the documentation here: http://docs.getmoto.org/en/latest/docs/multi_account.html The full release schedule...

Moto 4 is now released, so this now works as you would expect. Please raise a new issue if you still encounter any issues.

Hi @dmarra, thanks for raising this! Marking it as an enhancement to make this configurable. If you want to contribute a fix yourself, PR's are always welcome - let me...

You'll have to fork the project @dmarra, create a branch on your own fork and then create a PR against that branch.

Hey @dmarra, no, I didn't have anything smart set up - IIRC I just used the steps from the GA locally. Are you worried about cost? As it should be...

Hi @szopen321 , thanks for the PR! This would be a really useful feature, and the approach makes sense overall. The next major release will see some big changes, but...

Hi @szopen321, if you don't mind, I'll work on this PR for a bit to see if I can get it to work for other services as well. So don't...

@szopen321 What was your usecase for the random seed? The EC2 instance ID's happen to be generated using `random.randint`, but a lot of ID's are generated using UUID's, which are...

Hmmm.. patching a system-module can introduce a lot of unintended consequences and unexpected behaviour. It maybe a better option to provide a utility-method that uses a semi-randomized uuid: ``` def...