diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..0bca29a --- /dev/null +++ b/.travis.yml @@ -0,0 +1,16 @@ +addons: + apt: + packages: + - git + - make + - curl + +install: + - make init + +script: + - make terraform:install + - make terraform:get-plugins + - make terraform:get-modules + - make terraform:lint + - make terraform:validate diff --git a/LICENSE b/LICENSE index 6b9d898..808ecf3 100644 --- a/LICENSE +++ b/LICENSE @@ -186,7 +186,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2017 Cloud Posse, LLC + Copyright 2017-2018 Cloud Posse, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b0f7470 --- /dev/null +++ b/Makefile @@ -0,0 +1,6 @@ +SHELL := /bin/bash + +-include $(shell curl -sSL -o .build-harness "https://git.io/build-harness"; echo .build-harness) + +lint: + $(SELF) terraform:install terraform:get-modules terraform:get-plugins terraform:lint terraform:validate diff --git a/README.md b/README.md index 68e39c0..941c857 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ -# terraform-aws-s3-log-storage +# terraform-aws-s3-log-storage [![Build Status](https://travis-ci.org/cloudposse/terraform-aws-s3-log-storage.svg?branch=master)](https://travis-ci.org/cloudposse/terraform-aws-s3-log-storage) -This module creates an S3 bucket suitable for receiving logs from other `AWS` services such as `S3`, `CloudFront`, and `CloudTrails`, which generate an enormous amount of log data. It implements a configurable log retention policy, which allows you to efficiently manage logs across different storage classes (_e.g._ `Glacier`) and ultimately expire the data altogether. +This module creates an S3 bucket suitable for receiving logs from other `AWS` services such as `S3`, `CloudFront`, and `CloudTrails`, which generate an enormous amount of log data. + +It implements a configurable log retention policy, which allows you to efficiently manage logs across different storage classes (_e.g._ `Glacier`) and ultimately expire the data altogether. ## Usage diff --git a/main.tf b/main.tf index 6c161fb..aa16351 100644 --- a/main.tf +++ b/main.tf @@ -1,5 +1,5 @@ module "default_label" { - source = "git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.2.1" + source = "git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.3.1" namespace = "${var.namespace}" stage = "${var.stage}" name = "${var.name}"