Git Product home page Git Product logo

learn-terraform-code-organization's Introduction

Learn Terraform Code Organization

This repo is a companion repo to the Learn Terraform Code Organization tutorial. It contains Terraform configuration you can use to learn best practices for Terraform as your organization grows.

learn-terraform-code-organization's People

Contributors

duplo83 avatar hashicorp-copywrite[bot] avatar im2nguyen avatar judithpatudith avatar robin-norwood avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

learn-terraform-code-organization's Issues

Permission / policy issues with ACLs

I'm going through the associated tutorial, and when trying to first terraform apply, I get errors similar to the following:

Error: error creating S3 bucket ACL for dev-cheaply-evident-pegasus: AccessDenied: Access Denied
│ 	status code: 403, request id: XM0QQ8XGMJHK355W, host id: 87PG4bLH4dxdn7GG+Qb5Nqc/Tm8RKkDBjvrm0MGASA+UMXDPKTT1laPUcHV9OPdspKmVOHmeAnY=
│ 
│   with aws_s3_bucket_acl.dev,
│   on main.tf line 44, in resource "aws_s3_bucket_acl" "dev":
│   44: resource "aws_s3_bucket_acl" "dev" {
│ 
╵
╷
│ Error: Error putting S3 policy: AccessDenied: Access Denied
│ 	status code: 403, request id: XM0WHJHQ6YJ1CXJ0, host id: W+Bd+wGIZxDLgs5K43crACkmGxjJwsmE9qd6q6lpQZfE7qf4mqgpbiuw4WdsvsjMzXj5hdDf8To=
│ 
│   with aws_s3_bucket_policy.dev,
│   on main.tf line 50, in resource "aws_s3_bucket_policy" "dev":
│   50: resource "aws_s3_bucket_policy" "dev" {
│ 
╵
╷
│ Error: Error uploading object to S3 bucket (dev-cheaply-evident-pegasus): AccessControlListNotSupported: The bucket does not allow ACLs
│ 	status code: 400, request id: XM0M6JM26PJ1ZW0M, host id: TD46TnS4xeKAHeD+57zN0CEmwPQxupBlIHywxOewtQieh6yB+BPnzdmfVTcy+RUx//QFmzWMKHg=
│ 
│   with aws_s3_object.dev,
│   on main.tf line 72, in resource "aws_s3_object" "dev":
│   72: resource "aws_s3_object" "dev" {
│ 
╵
╷
│ Error: error creating S3 bucket ACL for prod-cheaply-evident-pegasus: AccessDenied: Access Denied
│ 	status code: 403, request id: XM0PS4QAK4JB92CX, host id: eBYWtYMMLqEh64Kiyq9PvEy0QEtp/N5x/hvUBv8fnpVwhxAxmGgxOnWB2b7kIv3yAmn/insvU68=
│ 
│   with aws_s3_bucket_acl.prod,
│   on main.tf line 98, in resource "aws_s3_bucket_acl" "prod":
│   98: resource "aws_s3_bucket_acl" "prod" {
│ 
╵
╷
│ Error: Error putting S3 policy: AccessDenied: Access Denied
│ 	status code: 403, request id: XM0WKGF56GT5T6ZX, host id: 3HYsLK1yJG+W9uAMhiMFmIW0IR4ojq1gBsa+3NPByk6j13n2s3FMhK+/smEUg+EtqohQ35G0kZc=
│ 
│   with aws_s3_bucket_policy.prod,
│   on main.tf line 104, in resource "aws_s3_bucket_policy" "prod":
│  104: resource "aws_s3_bucket_policy" "prod" {
│ 
╵
╷
│ Error: Error uploading object to S3 bucket (prod-cheaply-evident-pegasus): AccessControlListNotSupported: The bucket does not allow ACLs
│ 	status code: 400, request id: XM0HV5GF57F8AT7Z, host id: 84XQuStr9dhP8v/AtjYZethK7S0x65xbAeyYrUj8Vk393f7MWw9IvbIeF5t4qqg+FuNCsSjhTUQ=
│ 
│   with aws_s3_object.prod,
│   on main.tf line 126, in resource "aws_s3_object" "prod":
│  126: resource "aws_s3_object" "prod" {

I did verify that the buckets (prod-cheaply-evident-pegasus and dev-cheaply-evident-pegasus) are created through the AWS console. Here's what the "Permissions" tab shows for the dev-cheaply-evident-pegasus bucket, in case it's helpful:

This bucket has the bucket owner enforced setting applied for Object Ownership
When bucket owner enforced is applied, use bucket policies to control access. Learn more

Grantee Objects Bucket ACL
Bucket owner (your AWS account) List, Write Read, Write
Everyone (public access) - -
Authenticated users group (anyone with an AWS account) - -
S3 log delivery group - -

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.