Skip to content

Commit

Permalink
Terraform formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
christophetd committed Jan 21, 2022
1 parent 25c0dfb commit a7f22ef
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ data "aws_ami" "amazon-2" {
most_recent = true

filter {
name = "name"
name = "name"
values = ["amzn2-ami-hvm-*-x86_64-ebs"]
}
owners = ["amazon"]
Expand Down Expand Up @@ -75,7 +75,7 @@ resource "aws_iam_role" "instance-role" {
}
EOF
inline_policy {
name = "inline"
name = "inline"
policy = <<EOF
{
"Version": "2012-10-17",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ locals {
}

resource "random_string" "secrets" {
count = local.num_secrets
length = 16
count = local.num_secrets
length = 16
min_lower = 16
}

resource "aws_secretsmanager_secret" "secrets" {
count = local.num_secrets
name = "stratus-red-team-secret-${count.index}"
name = "stratus-red-team-secret-${count.index}"
}

resource "aws_secretsmanager_secret_version" "secret-values" {
count = local.num_secrets
count = local.num_secrets
secret_id = aws_secretsmanager_secret.secrets[count.index].id
secret_string = random_string.secrets[count.index].result
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ provider "aws" {
}

resource "aws_cloudtrail" "trail" {
name = "my-cloudtrail-trail-2"
name = "my-cloudtrail-trail-2"
s3_bucket_name = aws_s3_bucket.cloudtrail.id
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ provider "aws" {
}

resource "aws_cloudtrail" "trail" {
name = "my-cloudtrail-trail"
name = "my-cloudtrail-trail"
s3_bucket_name = aws_s3_bucket.cloudtrail.id
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ data "aws_ami" "amazon-2" {
most_recent = true

filter {
name = "name"
name = "name"
values = ["amzn2-ami-hvm-*-x86_64-ebs"]
}
owners = ["amazon"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ resource "aws_ebs_volume" "volume" {
size = 1

tags = {
Name = "StratusRedTeamVolumeForAmi"
Name = "StratusRedTeamVolumeForAmi"
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ resource "aws_ebs_volume" "volume" {
size = 1

tags = {
Name = "StratusRedTeamVolume"
Name = "StratusRedTeamVolume"
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ provider "aws" {
}

resource "aws_vpc" "vpc" {
cidr_block = "10.0.0.0/16"
cidr_block = "10.0.0.0/16"
tags = {
Name = "StratusRedTeamVpc",
}
Expand All @@ -31,11 +31,11 @@ resource "aws_security_group" "allow_tls" {
vpc_id = aws_vpc.vpc.id

ingress {
description = "TLS from Internet"
from_port = 443
to_port = 443
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
description = "TLS from Internet"
from_port = 443
to_port = 443
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
}

egress {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ resource "random_string" "suffix" {
}

resource "aws_s3_bucket" "bucket" {
bucket = "stratus-red-team-lambda-function-code-${random_string.suffix.result}"
acl = "private"
bucket = "stratus-red-team-lambda-function-code-${random_string.suffix.result}"
acl = "private"
force_destroy = true
}
resource "aws_s3_bucket_object" "code" {
Expand Down

0 comments on commit a7f22ef

Please sign in to comment.