This repository was archived by the owner on Jan 16, 2025. It is now read-only.
File tree 6 files changed +53
-1
lines changed
6 files changed +53
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,12 @@ variable "instance_type" {
42
42
default = " m3.medium"
43
43
}
44
44
45
+ variable "iam_instance_profile" {
46
+ description = " IAM instance profile Packer will use for the builder. An empty string (default) means no profile will be assigned."
47
+ type = string
48
+ default = " "
49
+ }
50
+
45
51
variable "root_volume_size_gb" {
46
52
type = number
47
53
default = 8
@@ -98,6 +104,7 @@ locals {
98
104
source "amazon-ebs" "githubrunner" {
99
105
ami_name = " github-runner-al2023-x86_64-${ formatdate (" YYYYMMDDhhmm" , timestamp ())} "
100
106
instance_type = var. instance_type
107
+ iam_instance_profile = var. iam_instance_profile
101
108
region = var. region
102
109
security_group_id = var. security_group_id
103
110
subnet_id = var. subnet_id
Original file line number Diff line number Diff line change @@ -42,6 +42,12 @@ variable "instance_type" {
42
42
default = " t3.medium"
43
43
}
44
44
45
+ variable "iam_instance_profile" {
46
+ description = " IAM instance profile Packer will use for the builder. An empty string (default) means no profile will be assigned."
47
+ type = string
48
+ default = " "
49
+ }
50
+
45
51
variable "root_volume_size_gb" {
46
52
type = number
47
53
default = 8
@@ -98,6 +104,7 @@ locals {
98
104
source "amazon-ebs" "githubrunner" {
99
105
ami_name = " github-runner-ubuntu-focal-amd64-${ formatdate (" YYYYMMDDhhmm" , timestamp ())} "
100
106
instance_type = var. instance_type
107
+ iam_instance_profile = var. iam_instance_profile
101
108
region = var. region
102
109
security_group_id = var. security_group_id
103
110
subnet_id = var. subnet_id
@@ -200,6 +207,7 @@ build {
200
207
" sudo chmod +x /var/lib/cloud/scripts/per-boot/start-runner.sh" ,
201
208
]
202
209
}
210
+
203
211
post-processor "manifest" {
204
212
output = " manifest.json"
205
213
strip_path = true
Original file line number Diff line number Diff line change @@ -42,6 +42,12 @@ variable "instance_type" {
42
42
default = " t4g.small"
43
43
}
44
44
45
+ variable "iam_instance_profile" {
46
+ description = " IAM instance profile Packer will use for the builder. An empty string (default) means no profile will be assigned."
47
+ type = string
48
+ default = " "
49
+ }
50
+
45
51
variable "root_volume_size_gb" {
46
52
type = number
47
53
default = 8
@@ -98,6 +104,7 @@ locals {
98
104
source "amazon-ebs" "githubrunner" {
99
105
ami_name = " github-runner-ubuntu-jammy-arm64-${ formatdate (" YYYYMMDDhhmm" , timestamp ())} "
100
106
instance_type = var. instance_type
107
+ iam_instance_profile = var. iam_instance_profile
101
108
region = var. region
102
109
security_group_id = var. security_group_id
103
110
subnet_id = var. subnet_id
@@ -200,6 +207,7 @@ build {
200
207
" sudo chmod +x /var/lib/cloud/scripts/per-boot/start-runner.sh" ,
201
208
]
202
209
}
210
+
203
211
post-processor "manifest" {
204
212
output = " manifest.json"
205
213
strip_path = true
Original file line number Diff line number Diff line change @@ -42,6 +42,12 @@ variable "instance_type" {
42
42
default = " t3.medium"
43
43
}
44
44
45
+ variable "iam_instance_profile" {
46
+ description = " IAM instance profile Packer will use for the builder. An empty string (default) means no profile will be assigned."
47
+ type = string
48
+ default = " "
49
+ }
50
+
45
51
variable "root_volume_size_gb" {
46
52
type = number
47
53
default = 8
@@ -98,6 +104,7 @@ locals {
98
104
source "amazon-ebs" "githubrunner" {
99
105
ami_name = " github-runner-ubuntu-jammy-amd64-${ formatdate (" YYYYMMDDhhmm" , timestamp ())} "
100
106
instance_type = var. instance_type
107
+ iam_instance_profile = var. iam_instance_profile
101
108
region = var. region
102
109
security_group_id = var. security_group_id
103
110
subnet_id = var. subnet_id
@@ -200,6 +207,7 @@ build {
200
207
" sudo chmod +x /var/lib/cloud/scripts/per-boot/start-runner.sh" ,
201
208
]
202
209
}
210
+
203
211
post-processor "manifest" {
204
212
output = " manifest.json"
205
213
strip_path = true
Original file line number Diff line number Diff line change @@ -24,6 +24,12 @@ variable "instance_type" {
24
24
default = " t3a.medium"
25
25
}
26
26
27
+ variable "iam_instance_profile" {
28
+ description = " IAM instance profile Packer will use for the builder. An empty string (default) means no profile will be assigned."
29
+ type = string
30
+ default = " "
31
+ }
32
+
27
33
variable "ebs_delete_on_termination" {
28
34
description = " Indicates whether the EBS volume is deleted on instance termination."
29
35
type = bool
@@ -64,6 +70,7 @@ source "amazon-ebs" "githubrunner" {
64
70
ami_name = " github-runner-windows-core-2019-${ formatdate (" YYYYMMDDhhmm" , timestamp ())} "
65
71
communicator = " winrm"
66
72
instance_type = var. instance_type
73
+ iam_instance_profile = var. iam_instance_profile
67
74
region = var. region
68
75
associate_public_ip_address = var. associate_public_ip_address
69
76
temporary_security_group_source_public_ip = var. temporary_security_group_source_public_ip
@@ -114,6 +121,7 @@ build {
114
121
})
115
122
], var. custom_shell_commands )
116
123
}
124
+
117
125
post-processor "manifest" {
118
126
output = " manifest.json"
119
127
strip_path = true
Original file line number Diff line number Diff line change @@ -18,6 +18,18 @@ variable "region" {
18
18
default = " eu-west-1"
19
19
}
20
20
21
+ variable "instance_type" {
22
+ description = " The instance type Packer will use for the builder"
23
+ type = string
24
+ default = " m4.xlarge"
25
+ }
26
+
27
+ variable "iam_instance_profile" {
28
+ description = " IAM instance profile Packer will use for the builder. An empty string (default) means no profile will be assigned."
29
+ type = string
30
+ default = " "
31
+ }
32
+
21
33
variable "security_group_id" {
22
34
description = " The ID of the security group Packer will associate with the builder to enable access"
23
35
type = string
@@ -74,7 +86,8 @@ locals {
74
86
source "amazon-ebs" "githubrunner" {
75
87
ami_name = " github-runner-windows-core-2022-${ formatdate (" YYYYMMDDhhmm" , timestamp ())} "
76
88
communicator = " winrm"
77
- instance_type = " m4.xlarge"
89
+ instance_type = var. instance_type
90
+ iam_instance_profile = var. iam_instance_profile
78
91
region = var. region
79
92
security_group_id = var. security_group_id
80
93
subnet_id = var. subnet_id
You can’t perform that action at this time.
0 commit comments