Skip to content

Commit 8477df0

Browse files
authored
Merge pull request #9 from infraspecdev/docs-updates
Add examples directory reference to README
2 parents 7e99042 + 05e415d commit 8477df0

File tree

8 files changed

+40
-6
lines changed

8 files changed

+40
-6
lines changed

.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
.idea/
22
terraform.tfstate*
33
.terraform*
4-
examples/terraform.tfstate*
5-
examples/.terraform*
6-
.infracost/
4+
examples/gitlab-shell-runner-setup/terraform.tfstate*
5+
examples/gitlab-shell-runner-setup.terraform*

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ module "gitlab_shell_runner" {
1919
}
2020
```
2121

22+
## Examples
23+
24+
[Example](examples/gitlab-shell-runner-setup)
25+
2226

2327
<!-- BEGIN_TF_DOCS -->
2428
## Requirements
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<!-- BEGIN_TF_DOCS -->
2+
## Requirements
3+
4+
| Name | Version |
5+
|------|---------|
6+
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | ~> 1.3.0 |
7+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | ~> 4.49.0 |
8+
9+
## Providers
10+
11+
No providers.
12+
13+
## Modules
14+
15+
| Name | Source | Version |
16+
|------|--------|---------|
17+
| <a name="module_gitlab_shell_runner"></a> [gitlab\_shell\_runner](#module\_gitlab\_shell\_runner) | ../../ | n/a |
18+
19+
## Resources
20+
21+
No resources.
22+
23+
## Inputs
24+
25+
No inputs.
26+
27+
## Outputs
28+
29+
No outputs.
30+
<!-- END_TF_DOCS -->

examples/main.tf renamed to examples/gitlab-shell-runner-setup/main.tf

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
module "gitlab_shell_runner" {
2-
source = "../"
2+
source = "../../"
33

4-
ami_id = "ami-0addfae420fd47aab"
5-
instance_type = "t2.micro"
4+
instance_type = "t2.medium"
65
instance_count = 2
76
vpc_security_group_ids = ["sg-0b0b0b0b0b0b0b0b0"]
87
subnet_id = "subnet-0b0e1c4b5b1b1b1b1"
File renamed without changes.
File renamed without changes.
File renamed without changes.

variables.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ variable "ami_id" {
77
variable "instance_type" {
88
description = "Type of instance to provision"
99
type = string
10+
default = "t2.micro"
1011
}
1112

1213
variable "instance_count" {
1314
description = "Number of instances to provision"
1415
type = number
16+
default = 1
1517
}
1618

1719
variable "vpc_security_group_ids" {

0 commit comments

Comments
 (0)