-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Brandon O'Connor
committed
Mar 9, 2017
1 parent
ce4634b
commit 76984f5
Showing
6 changed files
with
58 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,9 +34,9 @@ For an example of using ALB with ECS look no further than the [hashicorp example | |
- `alb_id` | ||
|
||
## Usage example: | ||
A full example set is contained in the [examples directory](examples/). Here's the gist: | ||
1. Set the input variables from above in [variables.tf](examples/variables.tf). | ||
2. Define the ALB module using the following in your [main.tf](examples/main.tf): | ||
A full example set is contained in the [example directory](example/). Here's the gist: | ||
1. Set the input variables from above in [variables.tf](example/variables.tf). | ||
2. Define the ALB module using the following in your [main.tf](example/main.tf): | ||
``` | ||
module "my_web_alb" { | ||
source = "github.com/brandoconnor/tf_aws_alb" | ||
|
@@ -73,4 +73,4 @@ The [Change log](CHANGELOG.md) captures all important release notes. | |
Created and maintained by [Brandon O'Connor](https://github.com/brandoconnor) - [email protected]. | ||
|
||
## License | ||
MIT Licensed. See [LICENSE](LICENSE.md) for full details. | ||
MIT Licensed. See [LICENSE](LICENSE) for full details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
module "external_alb" { | ||
/*source = "github.com/brandoconnor/tf_aws_alb"*/ | ||
source = "../" | ||
source = "github.com/brandoconnor/tf_aws_alb" | ||
alb_name = "${var.alb_name}" | ||
backend_port = "${var.instance_port}" | ||
backend_protocol = "${var.instance_protocol}" | ||
health_check_target = "${var.health_check_target}" | ||
alb_security_groups = "${join(",", var.security_group_id_list)}" | ||
log_bucket = "${var.log_bucket_name}-${var.aws_region}" | ||
log_prefix = "${var.log_prefix}" | ||
ssl_certificate_id = "${var.ssl_cert_arn}" | ||
subnet_azs = "${join(",", var.public_subnet_ids)}" | ||
certificate_arn = "${var.certificate_arn}" | ||
subnets = "${join(",", var.public_subnet_ids)}" | ||
vpc_id = "${var.vpc_id}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
output "alb_id" { | ||
value = "${aws_alb.alb.id}" | ||
value = "${aws_alb.main.id}" | ||
} | ||
|
||
output "alb_name" { | ||
value = "${aws_alb.alb.name}" | ||
output "alb_dns_name" { | ||
value = "${aws_alb.main.dns_name}" | ||
} | ||
|
||
output "alb_dns_name" { | ||
value = "${aws_alb.alb.dns_name}" | ||
output "alb_zone_id" { | ||
value = "${aws_alb.main.zone_id}" | ||
} | ||
|
||
output "target_group_arn" { | ||
value = "${aws_alb_target_group.target_group.arn}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters