1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
1
To specify that a parameter use a path to reference a JSON node in the input, end the parameter name with .$ (from doc).
In your case:
"Step Name": {
"Type": "Task",
"Resource": "arn:aws:states:::sns:publish",
"Parameters": {
"TopicArn": "${TopicARN}",
"Message": {
"id.$": "$.id",
"param1.$": "$.param1",
"param2.$": "$.param2",
"metadata.$": "$"
},
"MessageAttributes": {
"type": {
"DataType": "String",
"StringValue.$": "$.type"
},
"id": {
"DataType": "String",
"StringValue.$": "$.id"
}
}
},
"End": true
}
관련 콘텐츠
- AWS 공식업데이트됨 일 년 전
That's exactly what I was looking for, now sure how I missed it. Thanks!