question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The release of Moto 4.x is due soon now released, and will contain the following changes:

Multi-Account support (see the documentation) Removal of the mock_dynamodb2 and mock_rds2 decorators. (Please upgrade to using mock_dynamodb and mock_rds if you still use them - see #4526 for more information) The ThreadedMotoServer will be considered out of beta, and the API considered stable

The following dependencies will get a minimum version: responses >= 0.13.0

Timeline

A new development release will be created for every change, with some time in between every release to catch any bugs. The table below contains the approximate exact timeline:

Feature Release Date Version
Multi-Account support 13/08/2022 4.0.0.dev3
Removal deprecated decorators 16/08/2022 4.0.0.dev4
Set minimum version of responses 17/08/2022 4.0.0.dev5
ThreadedMotoServer 18/08/2022 4.0.0.dev10
Full Release 20/08/2022 4.0.0

Feedback

We encourage everyone to test these changes as early as possible, and let us know about any bugs you may encounter by raising a new issue.

Breaking Changes

Introducing the Multi-Account support means changing the complete data structure, to ensure the data for each account is logically separated. We know a lot of users access the internal API to have better control over the mocked data. Before, you may have done something like this to access internal models:

from moto.ec2.models import ec2_backends

ec2_backend = ec2_backends["us-west-1"]

As of verion 4, you will also have to specify which Account ID you want to access:

from moto.ec2.models import ec2_backends

ec2_backend = ec2_backends[ACCOUNT_ID]["us-west-1"]

The variable moto.core.ACCOUNT_ID is also removed, in favor of moto.core.DEFAULT_ACCOUNT_ID.

Issue Change Log

Date Change
09 Aug 22 Added this table & Added the note on removal of ACCOUNT_ID
13 Aug 22 Added release-date for MultiAccount support
16 Aug 22 Added the Removal of Deprecated Decorators release
20 Aug 22 Full v4 release

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
bblommerscommented, Aug 22, 2022

Is it as simple as replacing mock_dynamodb2 with mock_dynamodb?

Yes, it is @berzi - I’ll mention it above as well for clarity. Thanks for bringing this to our attention. FYI, the full history/reasoning behind this change can be found here: https://github.com/spulec/moto/issues/4526

0reactions
berzicommented, Aug 22, 2022

@bblommers Please mention how to replace usages of the removed deprecated mock_dynamodb2 decorator. All I can find by googling is an issue that proposed how to ignore deprecation warnings… instead of upgrading to whatever the current practice should be, which is the only option as of 4.0.0.

Is it as simple as replacing mock_dynamodb2 with mock_dynamodb?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Moto X4 - Wikipedia
Moto X4 is an Android smartphone developed by Motorola Mobility, a subsidiary of Lenovo. Unveiled on August 31, 2017, at IFA, it is...
Read more >
Motorola Moto X4: Release date, specs and everything you ...
Motorola Moto X4: Release date. Announced 31 August; To be available September 2017; €399. Motorola announced the Moto X4 on 31 August during ......
Read more >
Motorola Moto X4 specs - PhoneArena
Sporting a 5.2-inch 1080p display, the Motorola Moto X4 is an upper-mid-range handset powered by a Snapdragon 630 processor, clocked at 2.2GHz, and...
Read more >
Moto X4 Android Smartphone | News, Specs, Pricing, and More
Release date and price​​ It's currently available for pre-order and will ship on October 26. If you pre-order the unlocked version of the...
Read more >
Moto X4 is finally here: a mid-range handset with one killer ...
All of the above was pretty much in line with previous leaks, but what we hadn't yet gotten our hands on was the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found