I was having issues finding the service name for amazon health events (health) and privateca (acm-pca) and it would be nice to do query a service-table that could match on the service name, description, etc
Proposal
✗ policy_sentry query service-table | grep -i health
health | AWS Health APIs and Notifications
Workaround
My workaround which works if I can guess a portion of the name like health.
✗ policy_sentry initialize --fetch
✗ jq 'keys' ~/.policy_sentry/iam-definition.json | grep health
"health",
"healthlake",
This is harder with privateca where my guesses would be difficult unless I searched for ca unless there was some kind of description associated with each service.
Problem
I was having issues finding the service name for amazon health events (
health
) and privateca (acm-pca
) and it would be nice to do query a service-table that could match on the service name, description, etcProposal
Workaround
My workaround which works if I can guess a portion of the name like
health
.This is harder with
privateca
where my guesses would be difficult unless I searched forca
unless there was some kind of description associated with each service.Some extra parsing and we can do it using the
.service_name
Thank you