- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
05-21-2018 08:59 AM
Has anyone encounted an access denied error for the cloudTrailLambda getting to the Transit VPC S3 bucket?
An error occurred (AccessDenied) when calling the GetObject operation: Access Denied
06-07-2018 11:52 AM
The access policy the CFN creates. Below is what the Subscriber role policy looks like.
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"sts:AssumeRole"
],
"Resource": [
"*"
],
"Effect": "Allow",
"Sid": "STSAccumRole"
},
{
"Action": [
"lambda:Invoke",
"lambda:InvokeFunction"
],
"Resource": [
"*"
],
"Effect": "Allow",
"Sid": "InvokeLambda"
},
{
"Action": [
"iam:UpdateAssumeRolePolicy",
"iam:GetRole",
"iam:PassRole"
],
"Resource": [
"*"
],
"Effect": "Allow",
"Sid": "IAMActions"
},
{
"Action": [
"cloudformation:*"
],
"Resource": [
"*"
],
"Effect": "Allow",
"Sid": "CloudFormationActions"
},
{
"Action": [
"ec2:*"
],
"Resource": [
"*"
],
"Effect": "Allow",
"Sid": "EC2FullAccess"
},
{
"Action": [
"states:ListExecutions",
"states:StartExecution"
],
"Resource": [
"*"
],
"Effect": "Allow",
"Sid": "StateMachineActions"
},
{
"Action": [
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents"
],
"Resource": [
"*"
],
"Effect": "Allow",
"Sid": "Logs"
},
{
"Action": [
"s3:GetBucketAcl",
"s3:GetBucketLocation",
"s3:GetObject",
"s3:GetObjectAcl",
"s3:ListBucket",
"s3:PutObject",
"s3:PutObjectAcl",
"s3:PutObjectTagging",
"s3:DeleteBucket",
"s3:DeleteBucketPolicy",
"s3:DeleteObject"
],
"Resource": [
"*"
],
"Effect": "Allow",
"Sid": "S3Actions"
},
{
"Action": [
"dynamodb:CreateTable",
"dynamodb:DeleteItem",
"dynamodb:DescribeTable",
"dynamodb:GetItem",
"dynamodb:GetRecords",
"dynamodb:ListTables",
"dynamodb:PutItem",
"dynamodb:Query",
"dynamodb:Scan",
"dynamodb:TagResource",
"dynamodb:UpdateItem",
"dynamodb:UpdateTable"
],
"Resource": [
"*"
],
"Effect": "Allow",
"Sid": "DynamoDbActions"
},
{
"Action": [
"sqs:ChangeMessageVisibility",
"sqs:DeleteMessage",
"sqs:GetQueueUrl",
"sqs:ListQueues",
"sqs:ReceiveMessage",
"sqs:SendMessage"
],
"Resource": [
"*"
],
"Effect": "Allow",
"Sid": "SQSActions"
},
{
"Action": [
"sns:Publish"
],
"Resource": [
"*"
],
"Effect": "Allow",
"Sid": "SNSACtions"
}
]
}
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!