sparse-intern-71089
07/12/2023, 10:24 AMechoing-dinner-19531
07/13/2023, 8:44 AMfierce-ability-58936
07/13/2023, 9:11 AMfunc (mocks) NewResource(args pulumi.MockResourceArgs) (string, resource.PropertyMap, error) {
> outputs := args.Inputs.Mappable()
> if args.TypeToken == "awsx:ecs:FargateTaskDefinition" {
> > outputs["taskDefinition"] = (&ecs.TaskDefinition{Arn: pulumi.String("fake").ToStringOutput()}).ToTaskDefinitionOutput()
> }
> outputs["arn"] = "arn:aws:ecs:ap-southeast-6:123451234512:fake-arn/fakeresource"
> return args.Name + "_id", resource.NewPropertyMapFromMap(outputs), nil
}
and other things constructing map of parameters, thinking it'll deserialise it into a proper object, which didn't work eitherNo matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by