diff --git a/.travis.yml b/.travis.yml
index b7cf901..241026e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -13,4 +13,4 @@ script:
- make terraform/get-plugins
- make terraform/get-modules
- make terraform/lint
- - make terraform/validate
\ No newline at end of file
+ - make terraform/validate
diff --git a/LICENSE b/LICENSE
index c37833f..eb114f2 100644
--- a/LICENSE
+++ b/LICENSE
@@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.
- Copyright 2018 Cloud Posse, LLC
+ Copyright 2018-2019 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/README.md b/README.md
index b1c600b..4216902 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,7 @@
+[![README Header][readme_header_img]][readme_header_link]
-[![Cloud Posse](https://cloudposse.com/logo-300x69.svg)](https://cloudposse.com)
+[![Cloud Posse][logo]](https://cpco.io/homepage)
# terraform-aws-alb [![Build Status](https://travis-ci.org/cloudposse/terraform-aws-alb.svg?branch=master)](https://travis-ci.org/cloudposse/terraform-aws-alb) [![Latest Release](https://img.shields.io/github/release/cloudposse/terraform-aws-alb.svg)](https://github.com/cloudposse/terraform-aws-alb/releases/latest) [![Slack Community](https://slack.cloudposse.com/badge.svg)](https://slack.cloudposse.com)
@@ -10,7 +11,17 @@ Terraform module to create an ALB, default ALB listener(s), and a default ALB ta
---
-This project is part of our comprehensive ["SweetOps"](https://docs.cloudposse.com) approach towards DevOps.
+This project is part of our comprehensive ["SweetOps"](https://cpco.io/sweetops) approach towards DevOps.
+[][share_email]
+[][share_googleplus]
+[][share_facebook]
+[][share_reddit]
+[][share_linkedin]
+[][share_twitter]
+
+
+[![Terraform Open Source Modules](https://docs.cloudposse.com/images/terraform-open-source-modules.svg)][terraform_modules]
+
It's 100% Open Source and licensed under the [APACHE2](LICENSE).
@@ -21,11 +32,21 @@ It's 100% Open Source and licensed under the [APACHE2](LICENSE).
+We literally have [*hundreds of terraform modules*][terraform_modules] that are Open Source and well-maintained. Check them out!
+
+
+
+
## Usage
+
+**IMPORTANT:** The `master` branch is used in `source` just as an example. In your code, do not pin to `master` because there may be breaking changes between releases.
+Instead pin to the release tag (e.g. `?ref=tags/x.y.z`) of one of our [latest releases](https://github.com/cloudposse/terraform-aws-alb/releases).
+
+
Include this module in your existing terraform code:
```hcl
@@ -52,12 +73,12 @@ module "alb" {
```
Available targets:
- help This help screen
+ help Help screen
help/all Display help for all targets
+ help/short This help short screen
lint Lint terraform code
```
-
## Inputs
| Name | Description | Type | Default | Required |
@@ -65,6 +86,7 @@ Available targets:
| access_logs_enabled | A boolean flag to enable/disable access_logs | string | `true` | no |
| access_logs_prefix | The S3 bucket prefix | string | `` | no |
| access_logs_region | The region for the access_logs S3 bucket | string | `us-east-1` | no |
+| alb_access_logs_s3_bucket_force_destroy | A boolean that indicates all objects should be deleted from the ALB access logs S3 bucket so that the bucket can be destroyed without error | string | `false` | no |
| attributes | Additional attributes, e.g. `1` | list | `` | no |
| certificate_arn | The ARN of the default SSL certificate for HTTPS listener | string | `` | no |
| cross_zone_load_balancing_enabled | A boolean flag to enable/disable cross zone load balancing | string | `true` | no |
@@ -116,6 +138,13 @@ Available targets:
+## Share the Love
+
+Like this project? Please give it a ★ on [our GitHub](https://github.com/cloudposse/terraform-aws-alb)! (it helps us **a lot**)
+
+Are you using this project or any of our other projects? Consider [leaving a testimonial][testimonial]. =)
+
+
## Related Projects
Check out these related projects.
@@ -130,26 +159,38 @@ Check out these related projects.
File a GitHub [issue](https://github.com/cloudposse/terraform-aws-alb/issues), send us an [email][email] or join our [Slack Community][slack].
+[![README Commercial Support][readme_commercial_support_img]][readme_commercial_support_link]
+
## Commercial Support
Work directly with our team of DevOps experts via email, slack, and video conferencing.
We provide [*commercial support*][commercial_support] for all of our [Open Source][github] projects. As a *Dedicated Support* customer, you have access to our team of subject matter experts at a fraction of the cost of a full-time engineer.
-[![E-Mail](https://img.shields.io/badge/email-hello@cloudposse.com-blue.svg)](mailto:hello@cloudposse.com)
+[![E-Mail](https://img.shields.io/badge/email-hello@cloudposse.com-blue.svg)][email]
- **Questions.** We'll use a Shared Slack channel between your team and ours.
- **Troubleshooting.** We'll help you triage why things aren't working.
- **Code Reviews.** We'll review your Pull Requests and provide constructive feedback.
- **Bug Fixes.** We'll rapidly work to fix any bugs in our projects.
-- **Build New Terraform Modules.** We'll develop original modules to provision infrastructure.
+- **Build New Terraform Modules.** We'll [develop original modules][module_development] to provision infrastructure.
- **Cloud Architecture.** We'll assist with your cloud strategy and design.
- **Implementation.** We'll provide hands-on support to implement our reference architectures.
-## Community Forum
-Get access to our [Open Source Community Forum][slack] on Slack. It's **FREE** to join for everyone! Our "SweetOps" community is where you get to talk with others who share a similar vision for how to rollout and manage infrastructure. This is the best place to talk shop, ask questions, solicit feedback, and work together as a community to build *sweet* infrastructure.
+## Terraform Module Development
+
+Are you interested in custom Terraform module development? Submit your inquiry using [our form][module_development] today and we'll get back to you ASAP.
+
+
+## Slack Community
+
+Join our [Open Source Community][slack] on Slack. It's **FREE** for everyone! Our "SweetOps" community is where you get to talk with others who share a similar vision for how to rollout and manage infrastructure. This is the best place to talk shop, ask questions, solicit feedback, and work together as a community to build totally *sweet* infrastructure.
+
+## Newsletter
+
+Signup for [our newsletter][newsletter] that covers everything on our technology radar. Receive updates on what we're up to on GitHub as well as awesome new projects we discover.
## Contributing
@@ -159,7 +200,7 @@ Please use the [issue tracker](https://github.com/cloudposse/terraform-aws-alb/i
### Developing
-If you are interested in being a contributor and want to get involved in developing this project or [help out](https://github.com/orgs/cloudposse/projects/3) with our other projects, we would love to hear from you! Shoot us an [email](mailto:hello@cloudposse.com).
+If you are interested in being a contributor and want to get involved in developing this project or [help out](https://cpco.io/help-out) with our other projects, we would love to hear from you! Shoot us an [email][email].
In general, PRs are welcome. We follow the typical "fork-and-pull" Git workflow.
@@ -174,7 +215,7 @@ In general, PRs are welcome. We follow the typical "fork-and-pull" Git workflow.
## Copyright
-Copyright © 2017-2018 [Cloud Posse, LLC](https://cloudposse.com)
+Copyright © 2017-2019 [Cloud Posse, LLC](https://cpco.io/copyright)
@@ -215,26 +256,16 @@ All other trademarks referenced herein are the property of their respective owne
## About
-This project is maintained and funded by [Cloud Posse, LLC][website]. Like it? Please let us know at
+This project is maintained and funded by [Cloud Posse, LLC][website]. Like it? Please let us know by [leaving a testimonial][testimonial]!
-[![Cloud Posse](https://cloudposse.com/logo-300x69.svg)](https://cloudposse.com)
+[![Cloud Posse][logo]][website]
-We're a [DevOps Professional Services][hire] company based in Los Angeles, CA. We love [Open Source Software](https://github.com/cloudposse/)!
+We're a [DevOps Professional Services][hire] company based in Los Angeles, CA. We ❤️ [Open Source Software][we_love_open_source].
-We offer paid support on all of our projects.
+We offer [paid support][commercial_support] on all of our projects.
-Check out [our other projects][github], [apply for a job][jobs], or [hire us][hire] to help with your cloud strategy and implementation.
+Check out [our other projects][github], [follow us on twitter][twitter], [apply for a job][jobs], or [hire us][hire] to help with your cloud strategy and implementation.
- [docs]: https://docs.cloudposse.com/
- [website]: https://cloudposse.com/
- [github]: https://github.com/cloudposse/
- [commercial_support]: https://github.com/orgs/cloudposse/projects
- [jobs]: https://cloudposse.com/jobs/
- [hire]: https://cloudposse.com/contact/
- [slack]: https://slack.cloudposse.com/
- [linkedin]: https://www.linkedin.com/company/cloudposse
- [twitter]: https://twitter.com/cloudposse/
- [email]: mailto:hello@cloudposse.com
### Contributors
@@ -252,3 +283,36 @@ Check out [our other projects][github], [apply for a job][jobs], or [hire us][hi
[sarkis_avatar]: https://github.com/sarkis.png?size=150
+
+[![README Footer][readme_footer_img]][readme_footer_link]
+[![Beacon][beacon]][website]
+
+ [logo]: https://cloudposse.com/logo-300x69.svg
+ [docs]: https://cpco.io/docs
+ [website]: https://cpco.io/homepage
+ [github]: https://cpco.io/github
+ [jobs]: https://cpco.io/jobs
+ [hire]: https://cpco.io/hire
+ [slack]: https://cpco.io/slack
+ [linkedin]: https://cpco.io/linkedin
+ [twitter]: https://cpco.io/twitter
+ [testimonial]: https://cpco.io/leave-testimonial
+ [newsletter]: https://cpco.io/newsletter
+ [email]: https://cpco.io/email
+ [commercial_support]: https://cpco.io/commercial-support
+ [we_love_open_source]: https://cpco.io/we-love-open-source
+ [module_development]: https://cpco.io/module-development
+ [terraform_modules]: https://cpco.io/terraform-modules
+ [readme_header_img]: https://cloudposse.com/readme/header/img?repo=cloudposse/terraform-aws-alb
+ [readme_header_link]: https://cloudposse.com/readme/header/link?repo=cloudposse/terraform-aws-alb
+ [readme_footer_img]: https://cloudposse.com/readme/footer/img?repo=cloudposse/terraform-aws-alb
+ [readme_footer_link]: https://cloudposse.com/readme/footer/link?repo=cloudposse/terraform-aws-alb
+ [readme_commercial_support_img]: https://cloudposse.com/readme/commercial-support/img?repo=cloudposse/terraform-aws-alb
+ [readme_commercial_support_link]: https://cloudposse.com/readme/commercial-support/link?repo=cloudposse/terraform-aws-alb
+ [share_twitter]: https://twitter.com/intent/tweet/?text=terraform-aws-alb&url=https://github.com/cloudposse/terraform-aws-alb
+ [share_linkedin]: https://www.linkedin.com/shareArticle?mini=true&title=terraform-aws-alb&url=https://github.com/cloudposse/terraform-aws-alb
+ [share_reddit]: https://reddit.com/submit/?url=https://github.com/cloudposse/terraform-aws-alb
+ [share_facebook]: https://facebook.com/sharer/sharer.php?u=https://github.com/cloudposse/terraform-aws-alb
+ [share_googleplus]: https://plus.google.com/share?url=https://github.com/cloudposse/terraform-aws-alb
+ [share_email]: mailto:?subject=terraform-aws-alb&body=https://github.com/cloudposse/terraform-aws-alb
+ [beacon]: https://ga-beacon.cloudposse.com/UA-76589703-4/cloudposse/terraform-aws-alb?pixel&cs=github&cm=readme&an=terraform-aws-alb
diff --git a/docs/targets.md b/docs/targets.md
index 09c39cd..3d4be2a 100644
--- a/docs/targets.md
+++ b/docs/targets.md
@@ -2,8 +2,9 @@
```
Available targets:
- help This help screen
+ help Help screen
help/all Display help for all targets
+ help/short This help short screen
lint Lint terraform code
```
diff --git a/docs/terraform.md b/docs/terraform.md
index 8cdd8dc..c086b06 100644
--- a/docs/terraform.md
+++ b/docs/terraform.md
@@ -1,4 +1,3 @@
-
## Inputs
| Name | Description | Type | Default | Required |
@@ -6,6 +5,7 @@
| access_logs_enabled | A boolean flag to enable/disable access_logs | string | `true` | no |
| access_logs_prefix | The S3 bucket prefix | string | `` | no |
| access_logs_region | The region for the access_logs S3 bucket | string | `us-east-1` | no |
+| alb_access_logs_s3_bucket_force_destroy | A boolean that indicates all objects should be deleted from the ALB access logs S3 bucket so that the bucket can be destroyed without error | string | `false` | no |
| attributes | Additional attributes, e.g. `1` | list | `` | no |
| certificate_arn | The ARN of the default SSL certificate for HTTPS listener | string | `` | no |
| cross_zone_load_balancing_enabled | A boolean flag to enable/disable cross zone load balancing | string | `true` | no |
diff --git a/main.tf b/main.tf
index 561f03f..7c0d665 100644
--- a/main.tf
+++ b/main.tf
@@ -1,5 +1,5 @@
module "default_label" {
- source = "git::https://github.com/cloudposse/terraform-terraform-label.git?ref=tags/0.1.3"
+ source = "git::https://github.com/cloudposse/terraform-terraform-label.git?ref=tags/0.2.1"
attributes = "${var.attributes}"
delimiter = "${var.delimiter}"
name = "${var.name}"
@@ -47,14 +47,15 @@ resource "aws_security_group_rule" "https_ingress" {
}
module "access_logs" {
- source = "git::https://github.com/cloudposse/terraform-aws-lb-s3-bucket.git?ref=tags/0.1.0"
- attributes = "${var.attributes}"
- delimiter = "${var.delimiter}"
- name = "${var.name}"
- namespace = "${var.namespace}"
- stage = "${var.stage}"
- tags = "${var.tags}"
- region = "${var.access_logs_region}"
+ source = "git::https://github.com/cloudposse/terraform-aws-lb-s3-bucket.git?ref=tags/0.1.4"
+ attributes = "${compact(concat(var.attributes, list("alb", "access", "logs")))}"
+ delimiter = "${var.delimiter}"
+ name = "${var.name}"
+ namespace = "${var.namespace}"
+ stage = "${var.stage}"
+ tags = "${var.tags}"
+ region = "${var.access_logs_region}"
+ force_destroy = "${var.alb_access_logs_s3_bucket_force_destroy}"
}
resource "aws_lb" "default" {
@@ -78,7 +79,7 @@ resource "aws_lb" "default" {
}
module "default_target_group_label" {
- source = "git::https://github.com/cloudposse/terraform-terraform-label.git?ref=tags/0.1.6"
+ source = "git::https://github.com/cloudposse/terraform-terraform-label.git?ref=tags/0.2.1"
attributes = "${concat(var.attributes, list("default"))}"
delimiter = "${var.delimiter}"
name = "${var.name}"
diff --git a/variables.tf b/variables.tf
index cf6944a..04f868a 100644
--- a/variables.tf
+++ b/variables.tf
@@ -196,3 +196,8 @@ variable "health_check_matcher" {
default = "200-399"
description = "The HTTP response codes to indicate a healthy check"
}
+
+variable "alb_access_logs_s3_bucket_force_destroy" {
+ description = "A boolean that indicates all objects should be deleted from the ALB access logs S3 bucket so that the bucket can be destroyed without error"
+ default = false
+}