(aws-cdk/aws-amplify): Add a sourceCodeProvider for S3 or Zipped Asset #16208
Description
Amplify allows the uploading of .ZIP, URL or S3 locations as source via the console but this is not accessible via the CDK.
Use Case
We are looking to have a git trunk model where changes are built and then deployed to multiple stages via a CDK CodePipeline. We have 3 Amplify applications; one for each stage. We do not have a way currently with the CDK to perform a manual ZIP/S3 upload for Amplify site generation but this is possible via the UI.
The case will be that we would package our Amplify app source code using CodeBuild in a CodePipeline step and store the output on S3. The CDK for each stage will then use this asset for deployment rather than a Git repository. This will ensure that exactly the same code is being deployed to all 3 stages at the time we wish to deploy.
Using this functionality we avoid using Amplifies auto-build on push of branch in favour of an artefact that is managed by a CodePipeline.
Proposed Solution
New sourceCodeProvider referencing a CodeBuild Asset or S3 file location.
Amplify app to deploy asset on update.
- 👋 I may be able to implement this feature request
-
⚠️ This feature might incur a breaking change
This is a 🚀 Feature Request