Skip to content

Commit 8f400e7

Browse files
authored
refactor(ecs): Asset ContainerImage no longer takes Construct arguments (#2906)
Turn the `ContainerImage` into the standard integration pattern. It is no longer a construct itself, but creates subconstructs during `bind`. BREAKING CHANGE: * **ecs**: `ContainerImage.fromAsset()` now takes only build directory directly (no need to pass `scope` or `id` anymore).
1 parent e00c427 commit 8f400e7

17 files changed

+435
-449
lines changed

packages/@aws-cdk/aws-codebuild/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ Alternatively, you can specify a custom image using one of the static methods on
186186
Hub.
187187
* Use `.fromEcrRepository(repo[, tag])` to reference an image available in an
188188
ECR repository.
189-
* Use `.fromAsset(this, id, { directory: dir })` to use an image created from a
189+
* Use `.fromAsset(directory)` to use an image created from a
190190
local asset.
191191

192192
The following example shows how to define an image from a Docker asset:

0 commit comments

Comments
 (0)