Skip to content

Commit 615c556

Browse files
Merge pull request #2 from Flaconi/OPS-4860-adjust-tf-besnstalk-module
Ops 4860 adjust tf besnstalk module
2 parents a2bee20 + 81a756c commit 615c556

File tree

4 files changed

+30
-8
lines changed

4 files changed

+30
-8
lines changed

Diff for: README.md

+14-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
# terraform-module-template
22
Template for Terraform modules
33

4-
<!-- Uncomment and replace with your module name
5-
[![lint](https://github.com/flaconi/<MODULENAME>/workflows/lint/badge.svg)](https://github.com/flaconi/<MODULENAME>/actions?query=workflow%3Alint)
6-
[![test](https://github.com/flaconi/<MODULENAME>/workflows/test/badge.svg)](https://github.com/flaconi/<MODULENAME>/actions?query=workflow%3Atest)
7-
[![Tag](https://img.shields.io/github/tag/flaconi/<MODULENAME>.svg)](https://github.com/flaconi/<MODULENAME>/releases)
8-
-->
4+
[![lint](https://github.com/flaconi/terraform-aws-beanstalk/workflows/lint/badge.svg)](https://github.com/flaconi/terraform-aws-beanstalk/actions?query=workflow%3Alint)
5+
[![test](https://github.com/flaconi/terraform-aws-beanstalk/workflows/test/badge.svg)](https://github.com/flaconi/terraform-aws-beanstalk/actions?query=workflow%3Atest)
6+
[![Tag](https://img.shields.io/github/tag/flaconi/terraform-aws-beanstalk.svg)](https://github.com/flaconi/terraform-aws-beanstalk/releases)
97
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)
108

119
<!-- TFDOCS_HEADER_START -->
@@ -18,7 +16,7 @@ Template for Terraform modules
1816

1917
| Name | Version |
2018
|------|---------|
21-
| <a name="provider_aws"></a> [aws](#provider\_aws) | n/a |
19+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.0 |
2220

2321
<!-- TFDOCS_PROVIDER_END -->
2422

@@ -27,7 +25,8 @@ Template for Terraform modules
2725

2826
| Name | Version |
2927
|------|---------|
30-
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | ~> 1.0 |
28+
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | ~> 1.1 |
29+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |
3130

3231
<!-- TFDOCS_REQUIREMENTS_END -->
3332

@@ -98,6 +97,14 @@ Type: `string`
9897

9998
Default: `""`
10099

100+
### <a name="input_instance_type"></a> [instance\_type](#input\_instance\_type)
101+
102+
Description: Instances type
103+
104+
Type: `string`
105+
106+
Default: `"t3.micro"`
107+
101108
### <a name="input_healthcheck_url"></a> [healthcheck\_url](#input\_healthcheck\_url)
102109

103110
Description: Application Health Check URL. Elastic Beanstalk will call this URL to check the health of the application running on EC2 instances

Diff for: main.tf

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ module "elastic_beanstalk_environment" {
3737
loadbalancer_certificate_arn = module.acm.acm_certificate_arn
3838
loadbalancer_ssl_policy = var.domain_name != "" ? "ELBSecurityPolicy-2016-08" : var.loadbalancer_ssl_policy
3939

40+
instance_type = var.instance_type
41+
4042
healthcheck_url = var.healthcheck_url
4143
healthcheck_interval = var.healthcheck_interval
4244

Diff for: variables.tf

+6
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ variable "loadbalancer_ssl_policy" {
2525
description = "Specify a security policy to apply to the listener. This option is only applicable to environments with an application load balancer"
2626
}
2727

28+
variable "instance_type" {
29+
type = string
30+
default = "t3.micro"
31+
description = "Instances type"
32+
}
33+
2834
variable "healthcheck_url" {
2935
type = string
3036
default = "/healthz"

Diff for: versions.tf

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
terraform {
2-
required_version = "~> 1.0"
2+
required_version = "~> 1.1"
3+
4+
required_providers {
5+
aws = {
6+
source = "hashicorp/aws"
7+
version = ">= 3.0"
8+
}
9+
}
310
}

0 commit comments

Comments
 (0)