Skip to content

Commit

Permalink
fix dynamodb auto-test
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-shcherbak committed Nov 11, 2024
1 parent cfc2159 commit 248b1eb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ env:
TF_BACKEND_STORAGE_NAME: ${{ secrets.TF_BACKEND_STORAGE_NAME }}
TF_CLI_ARGS: "-no-color"
AWS_DEFAULT_REGION: ${{ secrets.AWS_REGION }}
default_resource_priority_list: "['account', 'dynamodb', 'ebs']"
default_resource_priority_list: # "['account', 'app-flow', 'cfn', 'cloudtrail', 'distribution', 'dynamodb', 'ebs', 'ec2', 'ecs', 'network', 'sqs']"
#'[ "account", "acm", "airflow", "ami", "apigwv2", "app-elb", "app-flow", "asg", "backup", "cfn", "cloudtrail", "codebuild", "codedeploy", "codepipeline", "dax", "directory", "distribution", "dlm", "dms", "dynamodb", "ebs", "ec2", "ecr", "ecs", "efs", "eip", "eks", "elasticache", "elasticbeanstalk", "elasticsearch", "elb", "emr", "eni", "event", "firehose", "fsx", "glacier", "glue", "graphql", "hostedzone", "iam", "internet", "kafka", "key", "kinesis", "kms", "lambda", "launch", "lightsail", "log", "message", "nat", "network", "peering", "r53domain", "rds", "redshift", "rest", "route", "rrset", "s3", "sagemaker", "secrets", "security-group", "sns", "sqs", "step", "subnet", "transit", "vpc", "vpn", "waf"]'
RED: '\033[0;31m'
ACTIONS_REPO_BRANCH: "upd_aws_autotests"
Expand Down
26 changes: 15 additions & 11 deletions auto_policy_testing/red/dynamodb/dynamodb_table.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,22 @@ resource "aws_dynamodb_table_item" "this" {
ITEM
}

resource "aws_dynamodb_table" "this2" {
name = "${module.naming.resource_prefix.dynamodb_table}-2-DO-NOT-DELETE"
hash_key = "GreenTableHashKey"
billing_mode = "PROVISIONED"
read_capacity = 1
write_capacity = 1
# Tables created for rule ecc-aws-552-dynamodb_tables_unused
# Table must be older than 60 days for this rule to work
# Do not uncomment these lines, uncomment them only if you need to remove tables

attribute {
name = "GreenTableHashKey"
type = "S"
}
}
# resource "aws_dynamodb_table" "this2" {
# name = "${module.naming.resource_prefix.dynamodb_table}-2-DO-NOT-DELETE"
# hash_key = "GreenTableHashKey"
# billing_mode = "PROVISIONED"
# read_capacity = 1
# write_capacity = 1

# attribute {
# name = "GreenTableHashKey"
# type = "S"
# }
# }

# resource "aws_dynamodb_table" "this3" {
# name = "${module.naming.resource_prefix.dynamodb_table}-3-DO-NOT-DELETE"
Expand Down

0 comments on commit 248b1eb

Please sign in to comment.