This message was deleted.
# general
s
This message was deleted.
b
if the resource has been removed from the upstream, you can just remove the resource from the pulumi state: https://www.pulumi.com/docs/reference/cli/pulumi_state_delete/
b
cheers !
While i have your attention
looking to create pulumi stack with functions that get triggered from an sqs queue in go. Are there any examples of that around ? I have managed to create the queue, and the function independently, I have seen js examples of how you use the eventsource mapping but it ain't so clear in go, and i can't find any examples
b
I don't think we have examples of that, but I'll have a quick double check
b
cheers, been trying to put it together, but not getting very far
b
i can't find an example of that I'm afraid
b
Surely there must be someone who knows how it should be put together, it's kinda pretty essential on how to define triggers for queues, sqs, event bridge
otherwise those go bindings are useless
a
@bitter-application-91815 If I'm reading your scenario correctly, you want to basically use a lambda function, written in go, that gets triggered by a queue, to use the pulumi CLI, to create stacks dynamically?
b
i think i found it in the docs, sorry one sec, let me check. just simply, i'm attempting to create a lambda that triggers when something gets pushed on to a queue
in go
essentially this i think
Copy code
_, err := lambda.NewEventSourceMapping(ctx, "example", &lambda.EventSourceMappingArgs{
            EventSourceArn:   pulumi.Any(aws_dynamodb_table.Example.Stream_arn),
            FunctionName:     pulumi.Any(aws_lambda_function.Example.Arn),
            StartingPosition: pulumi.String("LATEST"),
        })