packer-kali_linux
packer-kali_linux copied to clipboard
[FEATURE] change instance size to smaller
Deliverable(s)
- ~set instance to small, doesn't cost as much~
- [ ] document reasoning as to why not changing instance size
Additional context Possible instances sizes:
- baremetal_0
link for figuring out all instances: https://www.packet.com/developers/api/plans/#retrieve-all-plans
current plans:
"c1.large.arm",
"baremetal_2a",
"c1.xlarge.x86",
"baremetal_3",
"c2.large.arm",
"c2.medium.x86",
"c3.medium.x86",
"c3.small.x86",
"g2.large.x86",
"m1.xlarge.x86",
"baremetal_2",
"m2.xlarge.x86",
"m3.large.x86",
"n2.xlarge.x86",
"s1.large.x86",
"baremetal_s",
"s3.xlarge.x86",
"t1.small.x86",
"baremetal_0",
"x1.small.x86",
"baremetal_1e",
"x2.xlarge.x86",
"x.large.arm"
current instance specs (c3.small.x86):
"cpus": [
{
"count": 2,
"type": "Intel Xeon Gold 6126"
}
],
"memory": {
"total": "192GB"
},
"drives": [
{
"count": 1,
"size": "150GB",
"type": "SSD"
},
{
"count": 2,
"size": "480GB",
"type": "SSD"
}
],
"nics": [
{
"count": 2,
"type": "10Gbps"
}
-
price 0.5
-
runtime takes between 30 - 40 min:
-
https://app.circleci.com/pipelines/github/elreydetoda/packer-kali_linux/268/workflows/6caf7d0c-28af-4647-8176-eb982182ea87
- ansible-bootstrap: 4m 41
- ansible-packer_build: 28m 39s
-
https://app.circleci.com/pipelines/github/elreydetoda/packer-kali_linux/246/workflows/dec4d087-e0fa-43b2-9717-398837d51a11
- ansible-bootstrap: 3m 11s
- ansible-packer_build: 23m 3s
baremetal_0 specs:
"cpus": [
{
"count": 1,
"type": "Intel Atom C2550 @ 2.4Ghz"
}
],
"memory": {
"total": "8GB"
},
"drives": [
{
"count": 1,
"size": "80GB",
"type": "SSD"
}
],
"nics": [
{
"count": 2,
"type": "1Gbps"
}
- price: 0.07
- probably good if you are doing 1 vm build.
- runtime was 1hr 22m 15s: https://app.circleci.com/pipelines/github/elreydetoda/packer-kali_linux/254/workflows/8a594cd0-da52-4e60-9786-07bc22c3a433
- ansible-bootstrap: 8m 48s
- ansible-packer_build: 1h 6m 46s
baremetal_1e
"cpus": [
{
"count": 1,
"type": "Intel(R) Xeon(R) CPU E3-1578L v5 @ 2.00GHz"
}
],
"memory": {
"total": "32GB"
},
"drives": [
{
"count": 1,
"size": "240GB",
"type": "SSD"
}
],
"nics": [
{
"count": 2,
"type": "10Gbps"
}
],
- pricing: 0.4
- runtime 1h 11m 24s: https://app.circleci.com/pipelines/github/elreydetoda/packer-kali_linux/269/workflows/bcbe4ae8-2609-4b64-b910-90175f08db5b
- commit: 378737d
- ansible-bootstrap: 7m 54s
- ansible-packer_build: 54m 8s
in conclusion, from the information above, I think it doesn't make sense to bump down the instance by $0.10 just to have it possibly take longer and then possibly cost an extra $0.40, because it hit that +1hr mark. So, updating original issue to reflect documenting my reasoning instead of actually swapping out the instance size.