If you use AWS ECS first time, you need to create service-linked roles.
aws iam create-service-linked-role --aws-service-name ecs.amazonaws.com
export TWITTER_BEARER_TOKEN=xxxxxxxxxxxxxxxxxxxx
npx projen
npj projen deploy
PUT _component_template/kuromoji_user_dic
{
"template": {
"settings": {
"index": {
"analysis": {
"analyzer": {
"kuromoji_user_dic": {
"type": "kuromoji",
"user_dictionary": "analyzers/F11469869",
"filter": [
"kuromoji_baseform",
"kuromoji_part_of_speech",
"cjk_width",
"ja_stop",
"kuromoji_stemmer",
"lowercase"
]
}
}
}
}
}
}
}