I'm pretty new with AWS for devs. I worked with elb and created a policy for access logs as described here: https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-access-logs.html
one of the permissions is: { "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::elb-account-id:root" }, "Action": "s3:PutObject", "Resource": "arn:aws:s3:::bucket-name/prefix/AWSLogs/your-aws-account-id/*" },
and the elb-account-id is taken from the table in the documentation i have attached.
I tried to search online but i couldn't find an answer-
- Is this table relevant only for elb or for other services too?
- can i get this list (or the account id for my region) somehow by code?
thanks for your help.