cloudposse / cloudposse/terraform-aws-codebuild

TF AWS provider 4.X compatibility

Open
#104 0 comments 15 reactions 0 assignees View on GitHub
bug
Dominant language
HCL
Stars
123
Forks
130
PR merge metrics
No merged PRs in 30d

Description

## Describe the Bug
Current state of module is not compatible with TF AWS Provider 4.0.0 due to breaking changes introduced
https://github.com/hashicorp/terraform-provider-aws/blob/main/CHANGELOG.md#400-february-10-2022

## Expected Behavior
Module should work in aws provider version 4.x.x

## Steps to Reproduce
1. Set aws provider version to
```
aws = {
source = "hashicorp/aws"
version = "4.2.0"
}
```
2. Try to init and apply any example

## Screenshots
```

│ Error: Value for unconfigurable attribute

│ with module.test.aws_s3_bucket.cache_bucket,
│ on .terraform/main.tf line 7, in resource "aws_s3_bucket" "cache_bucket":
│ 7: resource "aws_s3_bucket" "cache_bucket" {

│ Can't configure a value for "server_side_encryption_configuration": its value will be decided automatically based on the result of applying this configuration.


│ Error: Value for unconfigurable attribute

│ with module.test.aws_s3_bucket.cache_bucket,
│ on .terraform/main.tf line 7, in resource "aws_s3_bucket" "cache_bucket":
│ 7: resource "aws_s3_bucket" "cache_bucket" {

│ Can't configure a value for "versioning": its value will be decided automatically based on the result of applying this configuration.


│ Error: Value for unconfigurable attribute

│ with module.test.aws_s3_bucket.cache_bucket,
│ on .terraform/main.tf line 7, in resource "aws_s3_bucket" "cache_bucket":
│ 7: resource "aws_s3_bucket" "cache_bucket" {

│ Can't configure a value for "logging": its value will be decided automatically based on the result of applying this configuration.


│ Error: Value for unconfigurable attribute

│ with module.test.aws_s3_bucket.cache_bucket,
│ on .terraform/main.tf line 13, in resource "aws_s3_bucket" "cache_bucket":
│ 13: acl = "private"

│ Can't configure a value for "acl": its value will be decided automatically based on the result of applying this configuration.

```

## Environment (please complete the following information):

```
terraform -v
Terraform v1.1.6
on darwin_arm64
+ provider registry.terraform.io/hashicorp/aws v4.2.0
+ provider registry.terraform.io/hashicorp/cloudinit v2.2.0
+ provider registry.terraform.io/hashicorp/external v2.2.0
+ provider registry.terraform.io/hashicorp/helm v2.4.1
+ provider registry.terraform.io/hashicorp/kubernetes v2.8.0
+ provider registry.terraform.io/hashicorp/local v2.1.0
+ provider registry.terraform.io/hashicorp/random v3.1.0
+ provider registry.terraform.io/terraform-aws-modules/http v2.4.1
```

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the module's examples with Terraform 1.1.6 and AWS provider 4.2.0, then reproduce the reported errors in the generated .terraform/main.tf resources. Update the module so an example can initialize and apply with AWS provider 4.x without the listed unconfigurable-attribute errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, terraform
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.