Support AWS provider version 4.0.0
See original GitHub issueDescribe the issue
The latest AWS provider version 4.0.0 introduces multiple breaking changes, especially regarding the aws_s3_bucket
resource
Examples The following snippet is based on version 4.0.0 and will make the following checks fail
- aws-s3-enable-bucket-encryption
- aws-s3-enable-versioning
- aws-s3-encryption-customer-key
resource "aws_s3_bucket" "example" {
bucket = "example"
}
resource "aws_s3_bucket_acl" "example" {
bucket = aws_s3_bucket.example.id
acl = "private"
}
resource "aws_s3_bucket_server_side_encryption_configuration" "example" {
bucket = aws_s3_bucket.example.id
rule {
apply_server_side_encryption_by_default {
kms_master_key_id = aws_kms_key.example.arn
sse_algorithm = "aws:kms"
}
}
}
resource "aws_s3_bucket_versioning" "example" {
bucket = aws_s3_bucket.example.id
versioning_configuration {
status = "Enabled"
}
}
resource "aws_kms_key" "example" {
description = "example"
enable_key_rotation = true
multi_region = false
}
Version (please complete the following information):
- Checkov Version 2.0.823 (probably more versions)
Additional context See the migration guide.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:18
- Comments:17 (3 by maintainers)
Top Results From Across the Web
Terraform AWS Provider Version 4 Upgrade Guide
Version 4.0.0 of the AWS Provider will be the last major version to support EC2-Classic resources as AWS plans to fully retire EC2-Classic...
Read more >Terraform AWS Provider 4.0 Refactors S3 Bucket Resource
Version 4.0 of the HashiCorp Terraform AWS provider brings usability improvements to data sources and attribute validations along with a ...
Read more >HashiCorp Terraform AWS Provider Introduces Significant ...
HashiCorp has announced the release of version 4.0 of their Terraform AWS provider. This release introduces significant, breaking changes to ...
Read more >Terraform AWS Provider Support - Snyk User Docs
Version 4.0.0 of the AWS Terraform Provider introduced changes in how S3 services are defined. With v4.0 the definition of S3 services is...
Read more >Terraform AWS Provider Error: Value for unconfigurable ...
Version 4.0.0 of the AWS Provider will be the last major version to support EC2-Classic resources as AWS plans to fully retire EC2-Classic ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@okamosy I tested it with the given resources and the check passes, not sure what else you have there, which is somehow interferes, but from my testing I can say it works
Hi @HorizonNet thanks for creating the issue 💪
We will use it to track our effort to become compliant with the recent changes in the new provider version.