I currently have an access policy for an Elasticsearch domain that looks like the following:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "es:*",
"Resource": "arn:aws:es:ES_DOMAIN_HERE/*",
"Condition": {
"IpAddress": {
"aws:SourceIp": [
"**.**.***.***",
"**.***.***.***",
"**.***.***.**",
"***.***.***.**",
...
]
}
}
}
]
}
It is a pain to remember what each of the white listed IPs are for, and maintaining the list of IPs would be much easier if I could annotate the policy with a description of the IP. I imagine something like the below:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "es:*",
"Resource": "arn:aws:es:ES_DOMAIN_HERE/*",
"Condition": {
"IpAddress": {
"aws:SourceIp": [
"**.**.***.***",
"**.***.***.***",
"**.***.***.**",
"***.***.***.**",
...
]
}
},
"meta": {
"IpAddress": {
"**.**.***.***" : "INACTIVE - Test Server",
"**.***.***.***" : "General Server",
"**.***.***.**" : "Main Office",
"***.***.***.**" : "Remote Server",
...
}
}
}
]
}
How do I add annotations or metadata to my access policy?