Skip to content

TF AWS provider 4.X compatibility #104

@ivanmartos

Description

@ivanmartos

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"
    }
  1. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug🐛 An issue with the system

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions