Enabling logs on a ALB (Gov region)

0

Hello all, I'm trying to enable the logs on a ALB (AWS GovCloud US-West), but when I tried to add the policy to the S3 bucket, it doesn't work, I was trying to use the policy suggested on the documentation, and using 048591011584 as elb-account-id, as per documentation, but when I tried to add the policy to the S3 bucket, I got "Invalid principal in policy"

{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::048591011584:root" }, "Action": "s3:PutObject", "Resource": "arn:aws:s3:::bucket-name/prefix/AWSLogs/your-aws-account-id/*" } ] } what am I doing wrong?

1개 답변
0

Usually you receive "Invalid principal in policy" when you are trying to put the value of principal which is invalid. To resolve this issue kindly check the following

  • Your bucket policy uses supported values for a Principal element.
  • The Principal element is formatted correctly.
  • If the Principal is an AWS Identity and Access Management (IAM) user or role, then confirm that the user or role wasn't deleted. For details, you can also check the following Knowledge center article. https://repost.aws/knowledge-center/s3-invalid-principal-in-policy-error

Also, In AWS GovCloud (US) Regions, ARNs have an identifier that is different from the one in other standard AWS Regions. Kindly check if the resource ARN matches the GovCloud standard. https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/using-govcloud-arns.html

AWS
East
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠