AWS-查找事件源映射UUID



我需要使用Terraform导入一个事件源映射,文档中写道:

地形导入aws_lambda_event_source_mapping.event_source.mapping12345kxodurf3443

我在任何地方都找不到资源的UUID,它在哪里?

感谢

使用AWS CLI可以获得UUID参数:

$ aws lambda list-event-source-mappings
{
"EventSourceMappings": [
{
"UUID": "587ad24b-03b9-4413-8202-bbd56b36e5b7",
"BatchSize": 1,
"EventSourceArn": "arn:aws:kinesis:us-east-1:123456789012:stream/Logging",
"FunctionArn": "arn:aws:lambda:us-east-1:123456789012:function:LoggingStream",
"LastModified": 1572309480.0,
"LastProcessingResult": "OK",
"State": "Enabled",
"StateTransitionReason": "User action"
}
]
}

您也可以使用普通的AWS API:https://docs.aws.amazon.com/lambda/latest/dg/API_ListEventSourceMappings.html

参考编号:https://docs.aws.amazon.com/cli/latest/reference/lambda/list-event-source-mappings.html

非CLI应答-转到SQS并选择您选择的队列。然后在Trigger选项卡下,有一列包含每个触发器的uuid值

相关内容

  • 没有找到相关文章

最新更新