Skip to content

Commit cfc2159

Browse files
upd
1 parent 8a61693 commit cfc2159

File tree

5 files changed

+22
-17
lines changed

5 files changed

+22
-17
lines changed

.github/workflows/auto-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ env:
2424
TF_BACKEND_STORAGE_NAME: ${{ secrets.TF_BACKEND_STORAGE_NAME }}
2525
TF_CLI_ARGS: "-no-color"
2626
AWS_DEFAULT_REGION: ${{ secrets.AWS_REGION }}
27-
default_resource_priority_list: "['account', 'app-flow', 'cfn', 'cloudtrail', 'distribution', 'dynamodb-table', 'ebs', 'ec2', 'ecs', 'network', 'sqs']"
27+
default_resource_priority_list: "['account', 'dynamodb', 'ebs']"
2828
#'[ "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"]'
2929
RED: '\033[0;31m'
30-
ACTIONS_REPO_BRANCH: "main"
30+
ACTIONS_REPO_BRANCH: "upd_aws_autotests"
3131

3232
permissions:
3333
contents: "read"
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Removing this resource from Terraform has no effect to the encryption configuration within X-Ray.
2-
# resource "aws_xray_encryption_config" "this" {
3-
# type = "KMS"
4-
# key_id = data.terraform_remote_state.common.outputs.kms_key_arn
5-
# }
2+
resource "aws_xray_encryption_config" "this" {
3+
type = "KMS"
4+
key_id = data.terraform_remote_state.common.outputs.kms_key_arn
5+
}
66

7-
# resource "null_resource" "disable_xray_encryption" {
8-
# provisioner "local-exec" {
9-
# when = destroy
10-
# command = "aws xray put-encryption-config --type NONE"
11-
# }
7+
resource "null_resource" "disable_xray_encryption" {
8+
provisioner "local-exec" {
9+
when = destroy
10+
command = "aws xray put-encryption-config --type NONE"
11+
}
1212

13-
# depends_on = [aws_xray_encryption_config.this]
14-
# }
13+
depends_on = [aws_xray_encryption_config.this]
14+
}

auto_policy_testing/red/ebs/ebs.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ resource "aws_ebs_volume" "this" {
55
size = 4
66
type = "io1"
77
iops = 100
8+
encrypted = false
89

910
tags = {
1011
Name = "${module.naming.resource_prefix.ebs_volume}"
@@ -30,6 +31,7 @@ resource "aws_ebs_snapshot" "this" {
3031
provider = aws.provider2
3132
}
3233

34+
3335
resource "null_resource" "this" {
3436
provisioner "local-exec" {
3537
command = "aws ec2 modify-snapshot-attribute --snapshot-id ${aws_ebs_snapshot.this.id} --attribute createVolumePermission --operation-type add --group-names all"

terraform/ecc-aws-022-ebs_volumes_too_old_snapshots/iam/022-policy.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"Action": [
77
"ec2:DescribeSnapshots",
88
"ec2:DescribeImages",
9-
"autoscaling:DescribeAutoScalingGroups"
9+
"autoscaling:DescribeAutoScalingGroups",
10+
"ec2:DescribeLaunchTemplateVersions"
1011
],
1112
"Effect": "Allow",
1213
"Resource": "*"

terraform/ecc-aws-118-ecs_cluster_have_empty_roles_for_service_task_definitions/iam/118-policy.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
"Statement": [
44
{
55
"Effect": "Allow",
6-
"Action": [
6+
"Action": [
77
"ecs:ListTaskDefinitions",
8-
"ecs:DescribeTaskDefinition"
8+
"ecs:DescribeTaskDefinition",
9+
"ecs:ListClusters",
10+
"ecs:ListServices"
911
],
1012
"Resource": "*"
1113
}
1214
]
13-
}
15+
}

0 commit comments

Comments
 (0)