-
-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for storage variables #141
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bridgecrew has found infrastructure configuration errors in this PR ⬇️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change details
-
Error ID Change Path Resource BC_AWS_IAM_66 Fixed /main.tf module.rds_cluster.aws_rds_cluster.primary BC_AWS_IAM_66 Fixed /main.tf module.rds_cluster_aurora_mysql_serverless.aws_rds_cluster.primary BC_AWS_IAM_66 Fixed /main.tf module.rds_cluster_aurora_mysql.aws_rds_cluster.primary BC_AWS_GENERAL_38 Fixed /main.tf module.rds_cluster_aurora_postgres.aws_rds_cluster.primary BC_AWS_IAM_66 Fixed /main.tf module.rds_cluster_aurora_postgres.aws_rds_cluster.primary BC_AWS_GENERAL_69 Fixed /main.tf module.rds_cluster_aurora_postgres.aws_rds_cluster.primary BC_AWS_IAM_59 Fixed /main.tf module.rds_cluster_aurora_postgres.aws_rds_cluster.primary BC_AWS_GENERAL_38 Fixed /main.tf module.rds_cluster.aws_rds_cluster.primary BC_AWS_IAM_59 Fixed /main.tf module.rds_cluster.aws_rds_cluster.primary BC_AWS_GENERAL_69 Fixed /main.tf module.rds_cluster_aurora_mysql_serverless.aws_rds_cluster.primary BC_AWS_IAM_59 Fixed /main.tf module.rds_cluster_aurora_mysql_serverless.aws_rds_cluster.primary BC_AWS_GENERAL_38 Fixed /main.tf module.rds_cluster_aurora_mysql.aws_rds_cluster.primary BC_AWS_GENERAL_69 Fixed /main.tf module.rds_cluster_aurora_mysql.aws_rds_cluster.primary BC_AWS_IAM_59 Fixed /main.tf module.rds_cluster_aurora_mysql.aws_rds_cluster.primary
@@ -70,6 +70,9 @@ resource "aws_rds_cluster" "primary" { | |||
skip_final_snapshot = var.skip_final_snapshot | |||
apply_immediately = var.apply_immediately | |||
storage_encrypted = local.is_serverless ? null : var.storage_encrypted | |||
storage_type = var.storage_type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure Amazon RDS clusters and instances have AWS IAM authentication enabled
Resource: aws_rds_cluster.primary | ID: BC_AWS_IAM_59
How to Fix
resource "aws_rds_cluster" "default" {
cluster_identifier = "aurora-cluster-demo"
...
+ iam_database_authentication_enabled = true
}
Description
TBA. Identity and Access Management (IAM)@@ -70,6 +70,9 @@ resource "aws_rds_cluster" "primary" { | |||
skip_final_snapshot = var.skip_final_snapshot | |||
apply_immediately = var.apply_immediately | |||
storage_encrypted = local.is_serverless ? null : var.storage_encrypted | |||
storage_type = var.storage_type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure RDS cluster has IAM authentication enabled
Resource: aws_rds_cluster.primary | ID: BC_AWS_IAM_66
Error in referred variable: variable "iam_database_authentication_enabled"
How to Fix
resource "aws_rds_cluster" "enabled" {
...
+ iam_database_authentication_enabled = true
}
Description
TBDThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change details
-
Error ID Change Path Resource BC_AWS_GENERAL_96 Added /main.tf aws_rds_cluster.primary BC_AWS_GENERAL_49 Added /main.tf aws_rds_cluster.primary BC_AWS_GENERAL_38 Added /main.tf aws_rds_cluster.primary BC_AWS_IAM_66 Added /main.tf aws_rds_cluster.primary BC_AWS_GENERAL_69 Added /main.tf aws_rds_cluster.primary BC_AWS_IAM_59 Added /main.tf aws_rds_cluster.primary
@@ -70,6 +70,9 @@ resource "aws_rds_cluster" "primary" { | |||
skip_final_snapshot = var.skip_final_snapshot | |||
apply_immediately = var.apply_immediately | |||
storage_encrypted = local.is_serverless ? null : var.storage_encrypted | |||
storage_type = var.storage_type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure RDS cluster has IAM authentication enabled
Resource: module.rds_cluster.aws_rds_cluster.primary | ID: BC_AWS_IAM_66
How to Fix
resource "aws_rds_cluster" "enabled" {
...
+ iam_database_authentication_enabled = true
}
Description
TBD🎉 Fixed by commit e789db1 - Merge branch 'master' into master
@@ -70,6 +70,9 @@ resource "aws_rds_cluster" "primary" { | |||
skip_final_snapshot = var.skip_final_snapshot | |||
apply_immediately = var.apply_immediately | |||
storage_encrypted = local.is_serverless ? null : var.storage_encrypted | |||
storage_type = var.storage_type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure Amazon RDS clusters and instances have AWS IAM authentication enabled
Resource: module.rds_cluster.aws_rds_cluster.primary | ID: BC_AWS_IAM_59
How to Fix
resource "aws_rds_cluster" "default" {
cluster_identifier = "aurora-cluster-demo"
...
+ iam_database_authentication_enabled = true
}
Description
TBA. Identity and Access Management (IAM)🎉 Fixed by commit e789db1 - Merge branch 'master' into master
@@ -70,6 +70,9 @@ resource "aws_rds_cluster" "primary" { | |||
skip_final_snapshot = var.skip_final_snapshot | |||
apply_immediately = var.apply_immediately | |||
storage_encrypted = local.is_serverless ? null : var.storage_encrypted | |||
storage_type = var.storage_type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure Amazon RDS clusters and instances have AWS IAM authentication enabled
Resource: module.rds_cluster_aurora_serverlessv2_postgres_13.aws_rds_cluster.primary | ID: BC_AWS_IAM_59
How to Fix
resource "aws_rds_cluster" "default" {
cluster_identifier = "aurora-cluster-demo"
...
+ iam_database_authentication_enabled = true
}
Description
TBA. Identity and Access Management (IAM)🎉 Fixed by commit e789db1 - Merge branch 'master' into master
@@ -70,6 +70,9 @@ resource "aws_rds_cluster" "primary" { | |||
skip_final_snapshot = var.skip_final_snapshot | |||
apply_immediately = var.apply_immediately | |||
storage_encrypted = local.is_serverless ? null : var.storage_encrypted | |||
storage_type = var.storage_type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure Amazon RDS clusters and instances have AWS IAM authentication enabled
Resource: module.rds_cluster_aurora_mysql_serverless.aws_rds_cluster.primary | ID: BC_AWS_IAM_59
How to Fix
resource "aws_rds_cluster" "default" {
cluster_identifier = "aurora-cluster-demo"
...
+ iam_database_authentication_enabled = true
}
Description
TBA. Identity and Access Management (IAM)🎉 Fixed by commit e789db1 - Merge branch 'master' into master
@@ -70,6 +70,9 @@ resource "aws_rds_cluster" "primary" { | |||
skip_final_snapshot = var.skip_final_snapshot | |||
apply_immediately = var.apply_immediately | |||
storage_encrypted = local.is_serverless ? null : var.storage_encrypted | |||
storage_type = var.storage_type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure RDS cluster has IAM authentication enabled
Resource: module.rds_cluster_aurora_mysql_serverless.aws_rds_cluster.primary | ID: BC_AWS_IAM_66
How to Fix
resource "aws_rds_cluster" "enabled" {
...
+ iam_database_authentication_enabled = true
}
Description
TBD🎉 Fixed by commit e789db1 - Merge branch 'master' into master
@@ -70,6 +70,9 @@ resource "aws_rds_cluster" "primary" { | |||
skip_final_snapshot = var.skip_final_snapshot | |||
apply_immediately = var.apply_immediately | |||
storage_encrypted = local.is_serverless ? null : var.storage_encrypted | |||
storage_type = var.storage_type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure RDS clusters and instances have deletion protection enabled
Resource: module.rds_cluster_aurora_mysql_serverless.aws_rds_cluster.primary | ID: BC_AWS_GENERAL_69
How to Fix
resource "aws_rds_cluster" "default" {
...
+ deletion_protection = true
}
Description
TBA🎉 Fixed by commit e789db1 - Merge branch 'master' into master
@@ -70,6 +70,9 @@ resource "aws_rds_cluster" "primary" { | |||
skip_final_snapshot = var.skip_final_snapshot | |||
apply_immediately = var.apply_immediately | |||
storage_encrypted = local.is_serverless ? null : var.storage_encrypted | |||
storage_type = var.storage_type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure RDS cluster has IAM authentication enabled
Resource: module.rds_cluster_aurora_postgres.aws_rds_cluster.primary | ID: BC_AWS_IAM_66
How to Fix
resource "aws_rds_cluster" "enabled" {
...
+ iam_database_authentication_enabled = true
}
Description
TBD🎉 Fixed by commit e789db1 - Merge branch 'master' into master
@@ -70,6 +70,9 @@ resource "aws_rds_cluster" "primary" { | |||
skip_final_snapshot = var.skip_final_snapshot | |||
apply_immediately = var.apply_immediately | |||
storage_encrypted = local.is_serverless ? null : var.storage_encrypted | |||
storage_type = var.storage_type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure Amazon RDS clusters and instances have AWS IAM authentication enabled
Resource: module.rds_cluster_aurora_postgres.aws_rds_cluster.primary | ID: BC_AWS_IAM_59
How to Fix
resource "aws_rds_cluster" "default" {
cluster_identifier = "aurora-cluster-demo"
...
+ iam_database_authentication_enabled = true
}
Description
TBA. Identity and Access Management (IAM)🎉 Fixed by commit e789db1 - Merge branch 'master' into master
@@ -70,6 +70,9 @@ resource "aws_rds_cluster" "primary" { | |||
skip_final_snapshot = var.skip_final_snapshot | |||
apply_immediately = var.apply_immediately | |||
storage_encrypted = local.is_serverless ? null : var.storage_encrypted | |||
storage_type = var.storage_type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure all data stored in Aurora is securely encrypted at rest
Resource: module.rds_cluster_aurora_postgres.aws_rds_cluster.primary | ID: BC_AWS_GENERAL_38
How to Fix
resource "aws_rds_cluster" "example" {
...
cluster_identifier = "aurora-cluster-demo"
+ storage_encrypted = true
...
}
Description
This policy examines the resource **aws_rds_cluster** to check that encryption is set up. The property **storage_encrypted** is examined.🎉 Fixed by commit e789db1 - Merge branch 'master' into master
@@ -70,6 +70,9 @@ resource "aws_rds_cluster" "primary" { | |||
skip_final_snapshot = var.skip_final_snapshot | |||
apply_immediately = var.apply_immediately | |||
storage_encrypted = local.is_serverless ? null : var.storage_encrypted | |||
storage_type = var.storage_type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure RDS clusters and instances have deletion protection enabled
Resource: module.rds_cluster_aurora_mysql.aws_rds_cluster.primary | ID: BC_AWS_GENERAL_69
How to Fix
resource "aws_rds_cluster" "default" {
...
+ deletion_protection = true
}
Description
TBA🎉 Fixed by commit e789db1 - Merge branch 'master' into master
@@ -70,6 +70,9 @@ resource "aws_rds_cluster" "primary" { | |||
skip_final_snapshot = var.skip_final_snapshot | |||
apply_immediately = var.apply_immediately | |||
storage_encrypted = local.is_serverless ? null : var.storage_encrypted | |||
storage_type = var.storage_type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure all data stored in Aurora is securely encrypted at rest
Resource: module.rds_cluster.aws_rds_cluster.primary | ID: BC_AWS_GENERAL_38
How to Fix
resource "aws_rds_cluster" "example" {
...
cluster_identifier = "aurora-cluster-demo"
+ storage_encrypted = true
...
}
Description
This policy examines the resource **aws_rds_cluster** to check that encryption is set up. The property **storage_encrypted** is examined.🎉 Fixed by commit e789db1 - Merge branch 'master' into master
@@ -70,6 +70,9 @@ resource "aws_rds_cluster" "primary" { | |||
skip_final_snapshot = var.skip_final_snapshot | |||
apply_immediately = var.apply_immediately | |||
storage_encrypted = local.is_serverless ? null : var.storage_encrypted | |||
storage_type = var.storage_type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure all data stored in Aurora is securely encrypted at rest
Resource: module.rds_cluster_aurora_mysql.aws_rds_cluster.primary | ID: BC_AWS_GENERAL_38
How to Fix
resource "aws_rds_cluster" "example" {
...
cluster_identifier = "aurora-cluster-demo"
+ storage_encrypted = true
...
}
Description
This policy examines the resource **aws_rds_cluster** to check that encryption is set up. The property **storage_encrypted** is examined.🎉 Fixed by commit e789db1 - Merge branch 'master' into master
@@ -70,6 +70,9 @@ resource "aws_rds_cluster" "primary" { | |||
skip_final_snapshot = var.skip_final_snapshot | |||
apply_immediately = var.apply_immediately | |||
storage_encrypted = local.is_serverless ? null : var.storage_encrypted | |||
storage_type = var.storage_type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure RDS clusters and instances have deletion protection enabled
Resource: module.rds_cluster_aurora_postgres.aws_rds_cluster.primary | ID: BC_AWS_GENERAL_69
How to Fix
resource "aws_rds_cluster" "default" {
...
+ deletion_protection = true
}
Description
TBA🎉 Fixed by commit e789db1 - Merge branch 'master' into master
@@ -70,6 +70,9 @@ resource "aws_rds_cluster" "primary" { | |||
skip_final_snapshot = var.skip_final_snapshot | |||
apply_immediately = var.apply_immediately | |||
storage_encrypted = local.is_serverless ? null : var.storage_encrypted | |||
storage_type = var.storage_type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure RDS cluster has IAM authentication enabled
Resource: module.rds_cluster_aurora_serverlessv2_postgres_13.aws_rds_cluster.primary | ID: BC_AWS_IAM_66
How to Fix
resource "aws_rds_cluster" "enabled" {
...
+ iam_database_authentication_enabled = true
}
Description
TBD🎉 Fixed by commit e789db1 - Merge branch 'master' into master
@@ -70,6 +70,9 @@ resource "aws_rds_cluster" "primary" { | |||
skip_final_snapshot = var.skip_final_snapshot | |||
apply_immediately = var.apply_immediately | |||
storage_encrypted = local.is_serverless ? null : var.storage_encrypted | |||
storage_type = var.storage_type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure Amazon RDS clusters and instances have AWS IAM authentication enabled
Resource: module.rds_cluster_aurora_mysql.aws_rds_cluster.primary | ID: BC_AWS_IAM_59
How to Fix
resource "aws_rds_cluster" "default" {
cluster_identifier = "aurora-cluster-demo"
...
+ iam_database_authentication_enabled = true
}
Description
TBA. Identity and Access Management (IAM)🎉 Fixed by commit e789db1 - Merge branch 'master' into master
@@ -70,6 +70,9 @@ resource "aws_rds_cluster" "primary" { | |||
skip_final_snapshot = var.skip_final_snapshot | |||
apply_immediately = var.apply_immediately | |||
storage_encrypted = local.is_serverless ? null : var.storage_encrypted | |||
storage_type = var.storage_type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure RDS cluster has IAM authentication enabled
Resource: module.rds_cluster_aurora_mysql.aws_rds_cluster.primary | ID: BC_AWS_IAM_66
How to Fix
resource "aws_rds_cluster" "enabled" {
...
+ iam_database_authentication_enabled = true
}
Description
TBD🎉 Fixed by commit e789db1 - Merge branch 'master' into master
@@ -70,6 +70,9 @@ resource "aws_rds_cluster" "primary" { | |||
skip_final_snapshot = var.skip_final_snapshot | |||
apply_immediately = var.apply_immediately | |||
storage_encrypted = local.is_serverless ? null : var.storage_encrypted | |||
storage_type = var.storage_type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure all data stored in Aurora is securely encrypted at rest
Resource: module.rds_cluster_aurora_serverlessv2_postgres_13.aws_rds_cluster.primary | ID: BC_AWS_GENERAL_38
How to Fix
resource "aws_rds_cluster" "example" {
...
cluster_identifier = "aurora-cluster-demo"
+ storage_encrypted = true
...
}
Description
This policy examines the resource **aws_rds_cluster** to check that encryption is set up. The property **storage_encrypted** is examined.🎉 Fixed by commit e789db1 - Merge branch 'master' into master
/test all |
@nitrocode terratest passes now, however the failing |
cc: @Nuru test/bats are failing. Is this OK to merge as part of the terraform module 1.0.0 release ? |
This pull request is now in conflict. Could you fix it @matharoo? 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change details
-
Error ID Change Path Resource BC_AWS_IAM_59 Fixed /main.tf module.rds_cluster_aurora_postgres.aws_rds_cluster.primary BC_AWS_IAM_59 Fixed /main.tf module.rds_cluster.aws_rds_cluster.primary BC_AWS_GENERAL_38 Fixed /main.tf module.rds_cluster_aurora_postgres.aws_rds_cluster.primary BC_AWS_IAM_66 Fixed /main.tf module.rds_cluster.aws_rds_cluster.primary BC_AWS_IAM_66 Fixed /main.tf module.rds_cluster_aurora_mysql_serverless.aws_rds_cluster.primary BC_AWS_GENERAL_69 Fixed /main.tf module.rds_cluster_aurora_mysql_serverless.aws_rds_cluster.primary BC_AWS_IAM_59 Fixed /main.tf module.rds_cluster_aurora_mysql_serverless.aws_rds_cluster.primary BC_AWS_IAM_66 Fixed /main.tf module.rds_cluster_aurora_postgres.aws_rds_cluster.primary BC_AWS_GENERAL_69 Fixed /main.tf module.rds_cluster_aurora_postgres.aws_rds_cluster.primary BC_AWS_GENERAL_38 Fixed /main.tf module.rds_cluster.aws_rds_cluster.primary BC_AWS_IAM_59 Fixed /main.tf module.rds_cluster_aurora_serverlessv2_postgres_13.aws_rds_cluster.primary BC_AWS_IAM_66 Fixed /main.tf module.rds_cluster_aurora_mysql.aws_rds_cluster.primary BC_AWS_GENERAL_69 Fixed /main.tf module.rds_cluster_aurora_mysql.aws_rds_cluster.primary BC_AWS_IAM_59 Fixed /main.tf module.rds_cluster_aurora_mysql.aws_rds_cluster.primary BC_AWS_GENERAL_38 Fixed /main.tf module.rds_cluster_aurora_mysql.aws_rds_cluster.primary BC_AWS_GENERAL_38 Fixed /main.tf module.rds_cluster_aurora_serverlessv2_postgres_13.aws_rds_cluster.primary BC_AWS_IAM_66 Fixed /main.tf module.rds_cluster_aurora_serverlessv2_postgres_13.aws_rds_cluster.primary
/test all |
what
storage_type
,iops
andallocated_storage
.why
references
aws_rds_cluster