This message was deleted.
# typescript
s
This message was deleted.
f
In the second stack, you need to actually get back the resource itself (instead of relying on the stack output, which isn’t rehydrated as the resource). So you’ll want to do a
get
on the resource and use it from there. Something along these lines: In the exporting stack:
export const repositoryId = repository.id
In the importing stack,
const repo = new awsx.ecr.Repository("repo", { repository: aws.ecr.Repository.get("ecrRepo", infra.requireOutput("repositoryId")) })
n
ah, that makes more sense now 🙂
let me try it out
h
Stack outputs that serialize to JSON (and back) work best, as well.
n
yay, that worked, thanks for help Lee 🙂