Yes, when a database is restored or Odoo is migrated from one container to another, it is indeed necessary to regenerate asset bundles and refresh the base module to ensure everything functions correctly. This process can be done from the Odoo backend by going to Settings > Technical > Frontend > Assets and choosing to regenerate bundles. Additionally, updating the base module from the backend can resolve many initialization issues that may arise from migrations or container changes.
To automate this, especially for AWS autoscaling, you might consider running a script to refresh the assets and update the base module upon container startup. This can typically be done with a custom startup script using odoo -u base --load=web,web_asset to reload the necessary assets and modules each time a new instance is launched.
Let me know if you need further assistance with scripting this automation!