我正在尝试创建一个 AWS 事件规则,仅当具有特定后缀的文件上传到 S3 存储桶时才会触发该规则。
{
"source": [
"aws.s3"
],
"detail-type": [
"AWS API Call via CloudTrail"
],
"detail": {
"eventSource": [
"s3.amazonaws.com"
],
"eventName": [
"PutObject",
"CompleteMultipartUpload"
],
"requestParameters": {
"bucketName": [
"bucket-name"
],
"key": [
{ "suffix": ".csv" }
]
}
}
}
Run Code Online (Sandbox Code Playgroud)
据我了解,AWS具有可以使用的基于内容的过滤,但文档没有显示使用后缀的能力,仅显示其他模式中的前缀:https ://docs.aws.amazon.com/eventbridge/latest/userguide /content-filtering-with-event-patterns.html
理想情况下,我可以在此处执行此操作,而无需中间 Lambda,因为我的事件目标是 ECS Fargate 任务。
amazon-s3 amazon-web-services amazon-cloudwatch amazon-cloudtrail aws-event-bridge
mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:latest尝试通过以下方式启动容器时使用以下图像:
docker run --name azure-cosmosdb-emulator --memory 2GB --interactive --tty -p 8081:8081 -p 8900:8900 -p 8901:8901 -p 8902:8902 -p 10250:10250 -p 10251:10251 -p 10252:10252 -p 10253:10253 -p 10254:10254 -p 10255:10255 -p 10256:10256 -p 10350:10350 mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator
Run Code Online (Sandbox Code Playgroud)
我在上述所有内容中都遇到相同的错误:
2022-11-15 16:34:08 Error: The evaluation period has expired.
2022-11-15 16:34:08 ./cosmosdb-emulator: ERROR: PAL initialization failed. Error: 104
Run Code Online (Sandbox Code Playgroud)
我尝试删除容器/图像并拉最新的但无济于事
据我了解,Azure Durable 函数使用一系列 Azure 存储队列和表来管理编排和状态。
最大活动响应是否会受到队列或存储属性限制 (64 Kb) 的限制?
活动结果到底存储在哪里?
.net c# azure-storage azure-functions azure-durable-functions
我正在使用 terraform 创建一个 CloudWatch 事件触发器,其启动类型为 ECS Fargate,事件源为 S3。当我使用该input_transformer字段将存储桶和密钥传递到 ECS 任务时,我的事件规则导致调用失败。
这是aws_cloudwatch_event_rule:
resource "aws_cloudwatch_event_rule" "event_rule" {
name = "dev-gnss-source-put-rule-tf"
description = "Capture S3 events on uploads bucket"
event_pattern = <<PATTERN
{
"source": [
"aws.s3"
],
"detail-type": [
"AWS API Call via CloudTrail"
],
"detail": {
"eventSource": [
"s3.amazonaws.com"
],
"eventName": [
"PutObject"
],
"requestParameters": {
"bucketName": [
"example-bucket-name"
]
}
}
}
PATTERN
}
Run Code Online (Sandbox Code Playgroud)
这是aws_cloudwatch_event_target:
resource "aws_cloudwatch_event_target" "event_target" {
target_id = "dev-gnss-upload-event-target-tf"
arn = "example-cluster-arn" …Run Code Online (Sandbox Code Playgroud)