Skip to content

Commit

Permalink
Merge pull request #93 from trussworks/am-update-to-tf13-and-circleci
Browse files Browse the repository at this point in the history
upgrading to TF13 & changed Circleci-docker-primary to circleci
  • Loading branch information
mdrummerboy09 authored Sep 4, 2020
2 parents 84450d3 + e55a5da commit 38f6da2
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
version: 2.1

references:
circleci_docker_primary: &circleci_docker_primary trussworks/circleci-docker-primary:822fac1c30f3bb7d5d595bed5d2dc86265c4f2f0
circleci: &circleci trussworks/circleci:6986bb9022e5a83599feb66a7128a2d0fa12732a

jobs:
terratest:
docker:
- image: *circleci_docker_primary
- image: *circleci
steps:
- checkout
- restore_cache:
Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ This module creates AWS CloudTrail and configures it so that logs go to cloudwat

## Terraform Versions

Terraform 0.12. Pin module version to `~> 3.X`. Submit pull-requests to `master` branch.
Terraform 0.13. Pin module version to `~> 4.X`. Submit pull-requests to `master` branch.

Terraform 0.12. Pin module version to `~> 3.X`. Submit pull-requests to `terraform12` branch.

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

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

| Name | Version |
|------|---------|
| terraform | ~> 0.12.0 |
| aws | ~> 2.70 |
| terraform | ~> 0.13.0 |
| aws | ~> 3.0 |

## Providers

| Name | Version |
|------|---------|
| aws | ~> 2.70 |
| aws | ~> 3.0 |

## Inputs

Expand Down
2 changes: 1 addition & 1 deletion examples/simple/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module "aws_cloudtrail" {

module "logs" {
source = "trussworks/logs/aws"
version = "~> 5"
version = "~> 9.0.0"

s3_bucket_name = var.logs_bucket
region = var.region
Expand Down
4 changes: 2 additions & 2 deletions examples/simple/providers.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
provider "aws" {
version = "~> 2.70"
}
version = "~> 3.0"
}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/trussworks/terraform-aws-cloudtrail

go 1.13
go 1.14

require (
github.com/aws/aws-sdk-go v1.34.0
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ resource "aws_cloudtrail" "main" {
name = var.trail_name

# Send logs to CloudWatch Logs
cloud_watch_logs_group_arn = aws_cloudwatch_log_group.cloudtrail.arn
cloud_watch_logs_group_arn = "${aws_cloudwatch_log_group.cloudtrail.arn}:*"
cloud_watch_logs_role_arn = aws_iam_role.cloudtrail_cloudwatch_role.arn

# Send logs to S3
Expand Down
4 changes: 2 additions & 2 deletions versions.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_version = "~> 0.12.0"
required_version = "~> 0.13.0"

required_providers {
aws = "~> 2.70"
aws = "~> 3.0"
}
}

0 comments on commit 38f6da2

Please sign in to comment.