https://pulumi.com logo
r

refined-terabyte-65361

07/16/2021, 9:10 PM
Hi I new to typescript i am trying to import a function but i am getting error below
Copy code
Import sources within a group must be alphabetized.
Copy code
import {ecr} from "./ecr/index";
function:
Copy code
import * as aws from "@pulumi/aws";

export  function ecr (ecrRepo : string){
    new aws.ecr.Repository( ecrRepo, {
        imageScanningConfiguration: {
            scanOnPush: true,
        },
        imageTagMutability: "MUTABLE",
        name: ecrRepo

    });

}
Can someone help me fix this Thanks
"Sometimes the problem is with paths and not imports"
👍 1
1