https://pulumi.com logo
#typescript
Title
# typescript
r

refined-terabyte-65361

07/13/2021, 6:47 PM
Hi I am trying to create ecr repo using pulumi typescript used basic example
Copy code
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const foo = new aws.ecr.Repository("foo", {
    imageScanningConfiguration: {
        scanOnPush: true,
    },
    imageTagMutability: "MUTABLE",
});
but when my repo gets created i am expecting name to be foo but it creates repo with random id foo-719afa7 how to create repo without random id ?
s

steep-toddler-94095

07/13/2021, 6:54 PM
specify the
name
property
Copy code
const foo = new aws.ecr.Repository("foo", {
    imageScanningConfiguration: {
        scanOnPush: true,
    },
    imageTagMutability: "MUTABLE",
    name: "foo",
});
1