enough-shoe-73030
11/06/2023, 10:07 PMrepository = awsx.ecr.Repository("repository")
image = awsx.ecr.Image("image",
repository_url=repository.url,
path="./app")
Error: the "path" is unexpected argument to the function.
the documentation for Image class also doesn't have such a parameter:
def Image(resource_name: str,
opts: Optional[ResourceOptions] = None,
args: Optional[Mapping[str, str]] = None,
builder_version: Optional[BuilderVersion] = None,
cache_from: Optional[Sequence[str]] = None,
context: Optional[str] = None,
dockerfile: Optional[str] = None,
extra_options: Optional[Sequence[str]] = None,
platform: Optional[str] = None,
repository_url: Optional[str] = None,
target: Optional[str] = None)
any idea?
My Dockerfile is included in a subfolder of "backend" in the projectlittle-cartoon-10569
11/06/2023, 10:18 PMsalmon-account-74572
11/06/2023, 10:19 PMcontext
is likely what you’ll want to use in place of path
.enough-shoe-73030
11/06/2023, 10:27 PMThat documentation is from before v4 of the Docker provider.how do I know this? how can I explore the latest documents?
salmon-account-74572
11/06/2023, 10:41 PMImage
resource you’ll be looking at the most recent version of the API docs for that resource (you’ll note that path
is not present but context
is, for example).