File tree Expand file tree Collapse file tree 4 files changed +56
-3
lines changed
modules/ec2-instance-cycle Expand file tree Collapse file tree 4 files changed +56
-3
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,13 @@ clean:
1010 rm -rf .terraform/
1111
1212test :
13- $(TERRAFORM ) init && $(TERRAFORM ) validate
13+ $(TERRAFORM ) init && $(TERRAFORM ) validate && \
14+ $(TERRAFORM ) init modules/ec2-instance-cycle && $(TERRAFORM ) validate modules/ec2-instance-cycle
1415
1516docs :
16- docker run --rm -v " ${PWD} :/work" tmknom/terraform-docs markdown ./ > ./README.md
17+ docker run --rm -v " ${PWD} :/work" tmknom/terraform-docs markdown ./ > ./README.md && \
18+ docker run --rm -v " ${PWD} :/work" tmknom/terraform-docs markdown ./modules/ec2-instance-cycle > ./modules/ec2-instance-cycle/README.md
1719
1820format :
19- $(TERRAFORM ) fmt -list=true ./
21+ $(TERRAFORM ) fmt -list=true ./ && \
22+ $(TERRAFORM ) fmt -list=true ./modules/ec2-instance-cycle
Original file line number Diff line number Diff line change 1+ ## Requirements
2+
3+ No requirements.
4+
5+ ## Providers
6+
7+ No provider.
8+
9+ ## Inputs
10+
11+ | Name | Description | Type | Default | Required |
12+ | ------| -------------| ------| ---------| :--------:|
13+ | environment | Environment variables to configure the Lambda function | ` map(string) ` | ` {} ` | no |
14+ | function\_ name | Name of the Lambda function | ` string ` | ` "ec2-instance-cycle" ` | no |
15+ | role | IAM role assumed by the Lambda function | ` string ` | ` "ec2-lambda-role" ` | no |
16+ | runtime | A runtime to use for the function (leave blank to use default runtime) | ` any ` | ` null ` | no |
17+
18+ ## Outputs
19+
20+ No output.
21+
Original file line number Diff line number Diff line change 1+ module "function" {
2+ source = " ../.."
3+
4+ function_name = var. function_name
5+ template = " ec2-instance-cycle"
6+ runtime = var. runtime
7+ role = var. role
8+ environment = var. environment
9+ }
Original file line number Diff line number Diff line change 1+ variable "function_name" {
2+ description = " Name of the Lambda function"
3+ default = " ec2-instance-cycle"
4+ }
5+
6+ variable "runtime" {
7+ description = " A runtime to use for the function (leave blank to use default runtime)"
8+ default = null
9+ }
10+
11+ variable "environment" {
12+ description = " Environment variables to configure the Lambda function"
13+ type = map (string )
14+ default = {}
15+ }
16+
17+ variable "role" {
18+ description = " IAM role assumed by the Lambda function"
19+ default = " ec2-lambda-role"
20+ }
You can’t perform that action at this time.
0 commit comments