Skip to content

Commit

Permalink
Merge pull request #83 from lorengordon/aws-v3
Browse files Browse the repository at this point in the history
  • Loading branch information
lorengordon authored Aug 11, 2020
2 parents cd538b3 + 24e9432 commit 20896e7
Show file tree
Hide file tree
Showing 22 changed files with 12 additions and 864 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 3.0.0
current_version = 4.0.0
commit = True
message = Bumps version to {new_version}
tag = False
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ tardigrade-ci/

# eclint
.git/

# terratest
tests/go.mod
tests/go.sum
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ Creates an AWS Cloudtrail
| Name | Version |
|------|---------|
| terraform | >= 0.12 |
| aws | >= 3.0.0 |

## Providers

| Name | Version |
|------|---------|
| aws | n/a |
| aws | >= 3.0.0 |

## Inputs

Expand Down
4 changes: 1 addition & 3 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
provider "aws" {}

### LOCALS ###
locals {
# cloudwatch log group integration
create_log_group = var.cloud_watch_logs_group_name == null
cloud_watch_logs_group_name = local.create_log_group ? "/aws/cloudtrail/${format("%v", var.cloudtrail_name)}" : var.cloud_watch_logs_group_name
cloud_watch_logs_group_arn = local.create_log_group ? join("", aws_cloudwatch_log_group.this.*.arn) : data.aws_cloudwatch_log_group.this[0].arn
cloud_watch_logs_group_arn = local.create_log_group ? "${join("", aws_cloudwatch_log_group.this.*.arn)}:*" : data.aws_cloudwatch_log_group.this[0].arn

create_log_group_role = var.cloud_watch_logs_role_arn == null
cloud_watch_logs_role_arn = local.create_log_group_role ? join("", aws_iam_role.this.*.arn) : var.cloud_watch_logs_role_arn
Expand Down
1 change: 0 additions & 1 deletion requirements/dev.txt

This file was deleted.

27 changes: 0 additions & 27 deletions tests/baseline/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions tests/baseline/versions.tf

This file was deleted.

27 changes: 0 additions & 27 deletions tests/cocreate_kms_key/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions tests/cocreate_kms_key/versions.tf

This file was deleted.

25 changes: 0 additions & 25 deletions tests/event_selector/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions tests/go.mod

This file was deleted.

627 changes: 0 additions & 627 deletions tests/go.sum

This file was deleted.

25 changes: 0 additions & 25 deletions tests/multiple_event_selectors/README.md

This file was deleted.

23 changes: 0 additions & 23 deletions tests/no_cloudtrail/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions tests/no_cloudtrail/versions.tf

This file was deleted.

28 changes: 0 additions & 28 deletions tests/premade_cwl_group/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions tests/premade_cwl_group/versions.tf

This file was deleted.

28 changes: 0 additions & 28 deletions tests/premade_cwl_role/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions tests/premade_cwl_role/versions.tf

This file was deleted.

25 changes: 0 additions & 25 deletions tests/premade_kms_key/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions tests/premade_kms_key/versions.tf

This file was deleted.

4 changes: 4 additions & 0 deletions versions.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
terraform {
required_version = ">= 0.12"

required_providers {
aws = ">= 3.0.0"
}
}

0 comments on commit 20896e7

Please sign in to comment.