https://pulumi.com logo
#general
Title
# general
b

billowy-pilot-50934

08/18/2021, 6:43 PM
Copy code
private SecurityGroup ImportSecurityGroup()
    {
        var tags = new InputMap<string>();
        tags.Add("Name", "subnet-1_SG");

        return new SecurityGroup("dev-1a_sg",
            new SecurityGroupArgs
            {
                Name = "dev-public-1a_sg",
                VpcId = "vpc-097dc5c3d016997a8",
                Description = "Security group",
                Tags = tags,
                // I would like to get this information
                // which shows in my stack online
                Egress = null
                //^^^^^^^
            },
            new CustomResourceOptions
            {
                ImportId = "sg-Hidden"
            });
    }