sparse-intern-71089
06/15/2022, 12:36 AMcreamy-whale-55909
06/15/2022, 6:24 PMclass MyMocks(pulumi.runtime.Mocks):
def new_resource(self, args: pulumi.runtime.MockResourceArgs):
return [args.name + "_id", args.inputs]
def call(self, args: pulumi.runtime.MockCallArgs):
if args.token == "aws:index/getCallerIdentity:getCallerIdentity":
return {
"accountId": "123456789",
"arn": "myarn",
"id": "myid",
"userId": "achang3"
}
return {}
No 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