Possible to use nest json when configuring rule target constant input

0

Good Morning,

What I am trying to accomplish is to have a Cloudwatch rule that is scheduled to run daily that will go into an Athena database and create a new partition in several tables for that day using a constant target input. It is for a single database with several different tables and different s3 locations. Is it possible to set up the input using nested json and if so is this proper format--

{
"albPathFragment": "/AWSLogs/409148389496/elasticloadbalancing/",
"database": "site-reliability",
{
"table": "ha_east_rest_osp_alb",
"location": "xxxx-elblogs/Alb-Logs",
"region": "us-east-1"
},
{
"table": "ha_west_rest_osp_alb"
"location": "xxxx-elblogs-uw2/Alb-Logs",
"region": "us-west-2"
}
}

TIA,
Bill

已提問 4 年前檢視次數 263 次
1 個回答
0

Figured out what the issue was - my json wasn't formatted correctly. When formatted correctly works like a charm

已回答 4 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南