Skip to content

Commit

Permalink
skip: update autotest for kinesis
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-shcherbak committed May 30, 2024
1 parent 5e40f1a commit d164be4
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 19 deletions.
22 changes: 14 additions & 8 deletions auto_policy_testing/green/kinesis/kinesis.tf
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
resource "aws_kinesis_stream" "this" {
name = "${module.naming.resource_prefix.kinesis}"
shard_count = 1
encryption_type = "KMS"
kms_key_id = data.terraform_remote_state.common.outputs.kms_key_arn
retention_period = 24 * 90 # hours * days
name = module.naming.resource_prefix.kinesis
shard_count = 1
encryption_type = "KMS"
kms_key_id = data.terraform_remote_state.common.outputs.kms_key_arn
retention_period = 24 * 90 # hours * days

shard_level_metrics = [
"ALL",
"IncomingBytes",
"OutgoingRecords",
"IteratorAgeMilliseconds",
"IncomingRecords",
"ReadProvisionedThroughputExceeded",
"WriteProvisionedThroughputExceeded",
"OutgoingBytes"
]
}

resource "aws_kinesis_video_stream" "this" {
name = "${module.naming.resource_prefix.kinesis_video}"
name = module.naming.resource_prefix.kinesis_video
data_retention_in_hours = 1
media_type = "video/h264"
}
2 changes: 1 addition & 1 deletion auto_policy_testing/green/kinesis/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
output "kinesis" {
value = {
kinesis = aws_kinesis_stream.this.arn
kinesis = aws_kinesis_stream.this.arn
kinesis-video = aws_kinesis_video_stream.this.arn
}
}
22 changes: 14 additions & 8 deletions auto_policy_testing/red/kinesis/kinesis.tf
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
resource "aws_kinesis_stream" "this" {
name = "${module.naming.resource_prefix.kinesis}"
shard_count = 1
encryption_type = "KMS"
kms_key_id = "alias/aws/kinesis"
provider = aws.provider2
resource "aws_kinesis_stream" "this1" {
provider = aws.provider2
name = "${module.naming.resource_prefix.kinesis}-1"
shard_count = 1
encryption_type = "KMS"
kms_key_id = "alias/aws/kinesis"
}

resource "aws_kinesis_stream" "this2" {
name = "${module.naming.resource_prefix.kinesis}-2"
shard_count = 1
}

resource "aws_kinesis_video_stream" "this" {
name = "${module.naming.resource_prefix.kinesis_video}"
provider = aws.provider2
name = module.naming.resource_prefix.kinesis_video
data_retention_in_hours = 1
media_type = "video/h264"
provider = aws.provider2

}
5 changes: 3 additions & 2 deletions auto_policy_testing/red/kinesis/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
output "kinesis" {
value = {
kinesis = aws_kinesis_stream.this.arn
kinesis-video = aws_kinesis_video_stream.this.arn
kinesis = aws_kinesis_stream.this1.arn
kinesis-video = aws_kinesis_video_stream.this.arn
ecc-aws-120-kinesis_server_data_at_rest_has_sse = aws_kinesis_stream.this2.arn
}
}

0 comments on commit d164be4

Please sign in to comment.