Skip to content
This repository has been archived by the owner on Oct 8, 2022. It is now read-only.

Module creates S3 bucket with insufficient permissions/policy #2

Open
boldandbusted opened this issue Mar 26, 2019 · 1 comment
Open

Comments

@boldandbusted
Copy link

boldandbusted commented Mar 26, 2019

Howdy. Here's my stanza that seem to present the problem:

module "cloudtrail" {
  source  = "azavea/cloudtrail/aws"
  version = "0.1.0"

  project = "company"
  environment = "dev"
  region = "us-west-2"
  create_s3_bucket = true
  s3_bucket_name = "someone-dev-awscloudtraillogs"
  include_global_service_events = true
  is_multi_region_trail = true
  is_organization_trail = false
}

Presents with:

Error: Error applying plan:

1 error(s) occurred:

* module.cloudtrail.aws_cloudtrail.trail: 1 error(s) occurred:                                                            

* aws_cloudtrail.trail: InsufficientS3BucketPolicyException: Incorrect S3 bucket policy is detected for bucket: someone-dev-awscloudtraillogs
        status code: 400, request id: 4cf790f8-da72-4980-a180-67b7570d1c80                                                

Terraform does not automatically rollback in the face of errors.                                                          
Instead, your Terraform state file has been partially updated with                                                        
any resources that successfully completed. Please address the error                                                       
above and apply again to incrementally change your infrastructure.                                                        

Happy to provide more info so you can replicate the problem. Thanks in advance.

@boldandbusted boldandbusted changed the title Module creates S3 bucket with insufficient permissions Module creates S3 bucket with insufficient permissions/policy Mar 26, 2019
@hectcastro hectcastro added this to the Operations Sprint: 3/29-4/11 milestone Mar 26, 2019
@hectcastro hectcastro modified the milestones: Operations Sprint: 3/29-4/11, Operations Sprint: 4/12-4/25, Operations Sprint: 4/26-5/9 Apr 11, 2019
@hectcastro hectcastro modified the milestones: Operations Sprint: 4/26-5/9, Operations Sprint: 5/10-5/23 May 9, 2019
@hectcastro hectcastro modified the milestones: Operations Sprint: 5/10-5/23, Operations Sprint: 5/24-6/6 May 23, 2019
@hectcastro hectcastro modified the milestones: Operations Sprint: 5/24-6/6, Operations Sprint: 6/20-6/27 Jun 6, 2019
@rbreslow rbreslow modified the milestones: Operations Sprint: 6/20-6/27, Operations Sprint: 6/28-7/11 Jun 27, 2019
@charlyrai
Copy link

Hi hectcastro,

I am also getting the same error. Is there any solution provided by you?

@hectcastro hectcastro modified the milestones: Operations Sprint: 6/28-7/11, Operations Sprint: 7/12-7/25 Jul 11, 2019
@hectcastro hectcastro modified the milestones: Operations Sprint: 7/12-7/25, Operations Sprint: 7/26-8/8 Jul 25, 2019
@hectcastro hectcastro modified the milestones: Operations Sprint: 7/26-8/8, Operations Sprint: 8/9-8/22 Aug 8, 2019
@hectcastro hectcastro modified the milestones: Operations Sprint: 8/9-8/22, Operations Sprint: 8/23-9/5 Aug 22, 2019
@rbreslow rbreslow modified the milestones: Operations Sprint: 8/23-9/5, Operations Sprint: 9/6-9/19 Sep 5, 2019
@hectcastro hectcastro removed this from the Operations Sprint: 9/6-9/19 milestone Sep 19, 2019
@hectcastro hectcastro removed the queue label Sep 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants