Skip to content

Commit

Permalink
Ran task fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
John Dewey committed May 8, 2024
1 parent 8ae31d1 commit 0841dda
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion examples/single_account_deployment/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ locals {
image_name = "12345.dkr.ecr.us-east-1.amazonaws.com/sensor-enrichment-aws"
image_tag = "latest"
secondary_rule_name = "corelight-ec2-state-change"
regions_used = [
regions_used = [
"us-east-1",
"us-east-2",
"us-west-1",
Expand Down
2 changes: 1 addition & 1 deletion modules/enrichment/eventbridge_primary.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ resource "aws_cloudwatch_event_bus" "primary_bus" {
resource "aws_cloudwatch_event_rule" "ec2_state_change_primary_rule" {
name = var.ec2_state_change_rule_name
event_bus_name = aws_cloudwatch_event_bus.primary_bus.name
event_pattern = jsonencode({
event_pattern = jsonencode({
"source" : local.event_source,
"detail-type" : local.event_detail_type,
"detail" : {
Expand Down
4 changes: 2 additions & 2 deletions modules/enrichment/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ variable "ec2_state_change_rule_name" {
}

variable "scheduled_sync_regions" {
type = list(string)
type = list(string)
default = [
"us-east-1",
"us-east-2",
Expand All @@ -107,5 +107,5 @@ variable "scheduled_sync_regions" {
variable "tags" {
type = object({})
description = "Any tags that should be applied to resources deployed by the module"
default = {}
default = {}
}
8 changes: 4 additions & 4 deletions modules/iam/eventbridge_role.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
resource "aws_iam_role" "cross_region" {
name = var.cross_region_event_bus_role_name
name = var.cross_region_event_bus_role_name
assume_role_policy = jsonencode({
Version = "2012-10-17"
Version = "2012-10-17"
Statement = [
{
Action = [
Expand All @@ -19,9 +19,9 @@ resource "aws_iam_role" "cross_region" {
}

resource "aws_iam_policy" "event_bus_put_events_on_central_bus" {
name = var.cross_region_event_bus_policy_name
name = var.cross_region_event_bus_policy_name
policy = jsonencode({
Version = "2012-10-17"
Version = "2012-10-17"
Statement = [
{
Action = [
Expand Down
8 changes: 4 additions & 4 deletions modules/iam/lambda_role.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ resource "aws_iam_role" "lambda_role" {
name = var.lambda_iam_role_name

assume_role_policy = jsonencode({
Version = "2012-10-17"
Version = "2012-10-17"
Statement = [
{
Action = "sts:AssumeRole"
Expand All @@ -18,9 +18,9 @@ resource "aws_iam_role" "lambda_role" {
}

resource "aws_iam_policy" "lambda_access_policy" {
name = var.lambda_iam_policy_name
name = var.lambda_iam_policy_name
policy = jsonencode({
Version = "2012-10-17"
Version = "2012-10-17"
Statement = [
{
Action = [
Expand All @@ -47,7 +47,7 @@ resource "aws_iam_policy" "lambda_access_policy" {
"s3:ListObjects",
"s3:DeleteObject"
]
Effect = "Allow"
Effect = "Allow"
Resource = [
var.enrichment_bucket_arn,
"${var.enrichment_bucket_arn}/*"
Expand Down
10 changes: 5 additions & 5 deletions modules/iam/sensor_role.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
resource "aws_iam_role" "corelight_sensor_role" {
name = var.corelight_sensor_role_name
name = var.corelight_sensor_role_name
assume_role_policy = jsonencode({
Version = "2012-10-17"
Version = "2012-10-17"
Statement = [
{
Action = [
Expand All @@ -20,16 +20,16 @@ resource "aws_iam_role" "corelight_sensor_role" {
}

resource "aws_iam_policy" "corelight_sensor_policy" {
name = var.corelight_sensor_policy_name
name = var.corelight_sensor_policy_name
policy = jsonencode({
Version = "2012-10-17"
Version = "2012-10-17"
Statement = [
{
Action = [
"s3:GetObject",
"s3:ListBucket"
]
Effect = "Allow"
Effect = "Allow"
Resource = [
var.enrichment_bucket_arn,
"${var.enrichment_bucket_arn}/*"
Expand Down
2 changes: 1 addition & 1 deletion modules/iam/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@ variable "corelight_sensor_policy_name" {
variable "tags" {
type = object({})
description = "Any tags that should be applied to resources deployed by the module"
default = {}
default = {}
}
2 changes: 1 addition & 1 deletion modules/secondary_event_rule/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ variable "cross_region_iam_role_arn" {
variable "tags" {
type = object({})
description = "Any tags that should be applied to resources deployed by the module"
default = {}
default = {}
}

0 comments on commit 0841dda

Please sign in to comment.