Skip to content

Commit b5e90e3

Browse files
committed
Add example for module usage
1 parent 979bb08 commit b5e90e3

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed

.gitignore

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

examples/main.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module "gitlab_shell_runner" {
2+
source = "../"
3+
4+
ami_id = "ami-0addfae420fd47aab"
5+
instance_type = "t2.micro"
6+
instance_count = 2
7+
vpc_security_group_ids = ["sg-0b0b0b0b0b0b0b0b0"]
8+
subnet_id = "subnet-0b0e1c4b5b1b1b1b1"
9+
gitlab_url = "https://gitlab.example.com"
10+
runner_registration_token = "runner-registration-token-here"
11+
ssh_public_key = "ssh-public-key-here"
12+
}

examples/variables.tf

Whitespace-only changes.

examples/versions.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
terraform {
2+
required_providers {
3+
aws = {
4+
source = "hashicorp/aws"
5+
version = "~> 4.49.0"
6+
}
7+
}
8+
9+
required_version = "~> 1.3.0"
10+
}

0 commit comments

Comments
 (0)