enough-shoe-7303011/06/2023, 10:07 PM
Error: the "path" is unexpected argument to the function. the documentation for Image class also doesn't have such a parameter:
repository = awsx.ecr.Repository("repository") image = awsx.ecr.Image("image", repository_url=repository.url, path="./app")
any idea? My Dockerfile is included in a subfolder of "backend" in the project
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)
little-cartoon-1056911/06/2023, 10:18 PM
salmon-account-7457211/06/2023, 10:19 PM
is likely what you’ll want to use in place of
enough-shoe-7303011/06/2023, 10:27 PM
That documentation is from before v4 of the Docker provider.how do I know this? how can I explore the latest documents?
salmon-account-7457211/06/2023, 10:41 PM
resource you’ll be looking at the most recent version of the API docs for that resource (you’ll note that
is not present but
is, for example).