Skip to content

Commit 38f6da2

Browse files
Merge pull request #93 from trussworks/am-update-to-tf13-and-circleci
upgrading to TF13 & changed Circleci-docker-primary to circleci
2 parents 84450d3 + e55a5da commit 38f6da2

File tree

7 files changed

+15
-13
lines changed

7 files changed

+15
-13
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
version: 2.1
22

33
references:
4-
circleci_docker_primary: &circleci_docker_primary trussworks/circleci-docker-primary:822fac1c30f3bb7d5d595bed5d2dc86265c4f2f0
4+
circleci: &circleci trussworks/circleci:6986bb9022e5a83599feb66a7128a2d0fa12732a
55

66
jobs:
77
terratest:
88
docker:
9-
- image: *circleci_docker_primary
9+
- image: *circleci
1010
steps:
1111
- checkout
1212
- restore_cache:

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ This module creates AWS CloudTrail and configures it so that logs go to cloudwat
55

66
## Terraform Versions
77

8-
Terraform 0.12. Pin module version to `~> 3.X`. Submit pull-requests to `master` branch.
8+
Terraform 0.13. Pin module version to `~> 4.X`. Submit pull-requests to `master` branch.
9+
10+
Terraform 0.12. Pin module version to `~> 3.X`. Submit pull-requests to `terraform12` branch.
911

1012
Terraform 0.11. Pin module version to `~> 1.X`. Submit pull-requests to `terraform011` branch.
1113

@@ -33,14 +35,14 @@ previous invocations of the module prior to upgrading the version.
3335

3436
| Name | Version |
3537
|------|---------|
36-
| terraform | ~> 0.12.0 |
37-
| aws | ~> 2.70 |
38+
| terraform | ~> 0.13.0 |
39+
| aws | ~> 3.0 |
3840

3941
## Providers
4042

4143
| Name | Version |
4244
|------|---------|
43-
| aws | ~> 2.70 |
45+
| aws | ~> 3.0 |
4446

4547
## Inputs
4648

examples/simple/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module "aws_cloudtrail" {
1111

1212
module "logs" {
1313
source = "trussworks/logs/aws"
14-
version = "~> 5"
14+
version = "~> 9.0.0"
1515

1616
s3_bucket_name = var.logs_bucket
1717
region = var.region

examples/simple/providers.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
provider "aws" {
2-
version = "~> 2.70"
3-
}
2+
version = "~> 3.0"
3+
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/trussworks/terraform-aws-cloudtrail
22

3-
go 1.13
3+
go 1.14
44

55
require (
66
github.com/aws/aws-sdk-go v1.34.0

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ resource "aws_cloudtrail" "main" {
253253
name = var.trail_name
254254

255255
# Send logs to CloudWatch Logs
256-
cloud_watch_logs_group_arn = aws_cloudwatch_log_group.cloudtrail.arn
256+
cloud_watch_logs_group_arn = "${aws_cloudwatch_log_group.cloudtrail.arn}:*"
257257
cloud_watch_logs_role_arn = aws_iam_role.cloudtrail_cloudwatch_role.arn
258258

259259
# Send logs to S3

versions.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
terraform {
2-
required_version = "~> 0.12.0"
2+
required_version = "~> 0.13.0"
33

44
required_providers {
5-
aws = "~> 2.70"
5+
aws = "~> 3.0"
66
}
77
}

0 commit comments

Comments
 (0)