Last active
February 13, 2024 22:22
-
-
Save CarlosDomingues/09cf89f29c9c4c4f39e8ac2d1764a7ee to your computer and use it in GitHub Desktop.
Revisions
-
CarlosDomingues revised this gist
Jan 12, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -23,6 +23,6 @@ def try_bundle(self, output_dir: str, options: BundlingOptions) -> bool: image=BundlingDockerImage.from_registry( "dummy" ), # We are not going to use Docker Bundling, but the image parameter needs to be set. local=my_local_bundler, ), ) -
CarlosDomingues revised this gist
Jan 12, 2021 . No changes.There are no files selected for viewing
-
CarlosDomingues revised this gist
Jan 12, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ BundlingOptions, ILocalBundling ) from aws_cdk.aws_lambda import Code from jsii import implements, member @implements(ILocalBundling) -
CarlosDomingues created this gist
Jan 12, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,28 @@ from aws_cdk.core import ( BundlingDockerImage, BundlingOptions, ILocalBundling ) from jsii import implements, member @implements(ILocalBundling) class MyLocalBundler: @member(jsii_name="tryBundle") def try_bundle(self, output_dir: str, options: BundlingOptions) -> bool: # ... do stuff, return bool ... return True my_local_bundler = MyLocalBundler() my_code = Code.from_asset( path=path.join(".."), exclude=["*.pyc"], asset_hash_type=AssetHashType.BUNDLE, bundling=BundlingOptions( image=BundlingDockerImage.from_registry( "dummy" ), # We are not going to use Docker Bundling, but the image parameter needs to be set. local=local_poetry_bundler, ), )