busy-umbrella-36067
10/03/2018, 7:35 PMstandard:Build
class Build extends pulumi.ComponentResource {
constructor(name, opts) {
super("standard:Build", name, {}, opts)
let repository = new getEcrRepository(name, this)
let ecrRepoPolicy = repository.repositoryPolicy
let ecrLifecyclePolicy = repository.lifecyclePolicy
}
}
getEcrRepository = function(name, parent) {
repository = new aws.ecr.Repository(name, { parent: parent })
...
creamy-potato-29402
10/03/2018, 7:35 PMbusy-umbrella-36067
10/03/2018, 7:36 PMcreamy-potato-29402
10/03/2018, 7:37 PMbusy-umbrella-36067
10/03/2018, 7:38 PMwhite-balloon-205
repository = new aws.ecr.Repository(name, { parent: parent })
Looks like you are passing these args as the second parameter, but they should be the third. I think you want , {},
in there? (If you are using TypeScript, I would expect this to trigger an error).new getEcrRepository(name, this)
- probably unrelated - but I suspect new
is not wanted/needed here.busy-umbrella-36067
10/03/2018, 8:00 PM