Description of changes:
If I immediately set permission to be public after creating a new app, it will give me a Only application with published version can use principal * exception because application version is created asynchronously. This PR is to add a wait time so that when publish_application returns the version is guaranteed to exist.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Close this PR after discussing with Lu. It's better to put the wait method in sam cli implementation since we know we are going to put policy after creating an app.
Description of changes: If I immediately set permission to be public after creating a new app, it will give me a
Only application with published version can use principal *
exception because application version is created asynchronously. This PR is to add a wait time so that whenpublish_application
returns the version is guaranteed to exist.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.