Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.idea/
terraform.tfstate*
.terraform*
examples/terraform.tfstate*
examples/.terraform*
.infracost/
examples/gitlab-shell-runner-setup/terraform.tfstate*
examples/gitlab-shell-runner-setup.terraform*
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ module "gitlab_shell_runner" {
}
```

## Examples

[Example](examples/gitlab-shell-runner-setup)


<!-- BEGIN_TF_DOCS -->
## Requirements
Expand Down
30 changes: 30 additions & 0 deletions examples/gitlab-shell-runner-setup/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!-- BEGIN_TF_DOCS -->
## Requirements

| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | ~> 1.3.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | ~> 4.49.0 |

## Providers

No providers.

## Modules

| Name | Source | Version |
|------|--------|---------|
| <a name="module_gitlab_shell_runner"></a> [gitlab\_shell\_runner](#module\_gitlab\_shell\_runner) | ../../ | n/a |

## Resources

No resources.

## Inputs

No inputs.

## Outputs

No outputs.
<!-- END_TF_DOCS -->
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
module "gitlab_shell_runner" {
source = "../"
source = "../../"

ami_id = "ami-0addfae420fd47aab"
instance_type = "t2.micro"
instance_type = "t2.medium"
instance_count = 2
vpc_security_group_ids = ["sg-0b0b0b0b0b0b0b0b0"]
subnet_id = "subnet-0b0e1c4b5b1b1b1b1"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ variable "ami_id" {
variable "instance_type" {
description = "Type of instance to provision"
type = string
default = "t2.micro"
}

variable "instance_count" {
description = "Number of instances to provision"
type = number
default = 1
}

variable "vpc_security_group_ids" {
Expand Down