AWS Transit VPC GitHub Solution Question #2 - Access Denied

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

AWS Transit VPC GitHub Solution Question #2 - Access Denied

L2 Linker

Has anyone encounted an access denied error for the cloudTrailLambda getting to the Transit VPC S3 bucket?

 

 

[INFO] 2018-05-21T15:52:58.460Z 085dd5fc-5d0f-11e8-ba39-23960ea84bc5 Starting new HTTPS connection (1):
 
maskednamed-transitvpccloudtrail-us-east-1-acctnumber.s3.amazonaws.com
 

An error occurred (AccessDenied) when calling the GetObject operation: Access Denied

15 REPLIES 15

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"
}
]
}

  • 6423 Views
  • 15 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!