sparse-intern-71089
10/23/2020, 6:19 AMfaint-table-42725
10/23/2020, 4:13 PMfaint-table-42725
10/23/2020, 5:03 PMvar dockerImage = awsx.ecs.Image.fromPath(ecrRepo, "../../");
ecrRepo should be an aws.ecr.Repository and not awsx.ecr.Repository (this is slightly confusing, but becomes more clear if this example is run under TypeScript since the type-checking will fail). If you pass in ecrRepo.repistory does it work for you?kind-school-28825
10/23/2020, 10:02 PMfaint-table-42725
10/23/2020, 10:21 PMawsx is a higher-level component library that abstracts away some of the complexities of working with the ‘raw’ AWS resources in aws. awsx makes various opinionated defaults about how to set things up so you don’t have to think about it. In this case, the ecs part of awsx was built so that it could interop with any repository (awsx or not), which is why it takes an aws.ecr.Repository — probably what could be done to make this even easier is to accept an awsx.ecr.Repository object as well and if it gets one of those, just grab the repository property from that object. Feel free to file an issue if you think that is a worthwhile ergonomic change.