Open
Description
Describe the Bug
Version 4.0.0 of the aws terraform provider introduced breaking changes for s3 bucket configurations which are used within this module, please refer to the upgrade notes here: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/guides/version-3-upgrade
Expected Behavior
lifecycle rules, acls, origin configuration etc are applied or updated.
Steps to Reproduce
Steps to reproduce the behavior:
Simply attempt to call the module with version 4.0.0 of the aws provider.
Errors:
Errors from our terraform GitOps repo
Error: Unsupported attribute
on .terraform/modules/portal_cdn.logs/main.tf line 30, in resource "aws_s3_bucket" "default":
30: for_each = var.enable_glacier_transition ? [1] : []
This object does not have an attribute named "enable_glacier_transition".
Error: Unsupported attribute
on .terraform/modules/portal_cdn.logs/main.tf line 44, in resource "aws_s3_bucket" "default":
44: for_each = var.enable_glacier_transition ? [1] : []
This object does not have an attribute named "enable_glacier_transition".
Error: Value for unconfigurable attribute
with module.portal_cdn.aws_s3_bucket.origin,
on .terraform/modules/portal_cdn/main.tf line 232, in resource "aws_s3_bucket" "origin":
232: resource "aws_s3_bucket" "origin" {
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.portal_cdn.aws_s3_bucket.origin,
on .terraform/modules/portal_cdn/main.tf line 232, in resource "aws_s3_bucket" "origin":
232: resource "aws_s3_bucket" "origin" {
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.portal_cdn.aws_s3_bucket.origin,
on .terraform/modules/portal_cdn/main.tf line 232, in resource "aws_s3_bucket" "origin":
232: resource "aws_s3_bucket" "origin" {
Can't configure a value for "cors_rule": its value will be decided
automatically based on the result of applying this configuration.
Error: Value for unconfigurable attribute
with module.portal_cdn.aws_s3_bucket.origin,
on .terraform/modules/portal_cdn/main.tf line 232, in resource "aws_s3_bucket" "origin":
232: resource "aws_s3_bucket" "origin" {
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.portal_cdn.aws_s3_bucket.origin,
on .terraform/modules/portal_cdn/main.tf line 232, in resource "aws_s3_bucket" "origin":
232: resource "aws_s3_bucket" "origin" {
Can't configure a value for "website": its value will be decided
automatically based on the result of applying this configuration.
Error: Value for unconfigurable attribute
with module.portal_cdn.aws_s3_bucket.origin,
on .terraform/modules/portal_cdn/main.tf line 241, in resource "aws_s3_bucket" "origin":
241: acl = "private"
Can't configure a value for "acl": its value will be decided automatically
based on the result of applying this configuration.
</details>
## Additional Context
Add any other context about the problem here.
Activity