Skip to content

Commit 0d732e2

Browse files
authored
Merge pull request #14 from 3scale-sre/feat/architecture-tag
cfg: add architecture label to ec2 instances
2 parents 6a23a72 + a1c17b3 commit 0d732e2

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ resource "aws_instance" "this" {
2929
tags = merge(
3030
var.tags,
3131
tomap({ "Name" = format("%s-%s-bck-storage0%s-0%s", var.environment, var.project, var.shard_id, count.index + var.index_offset + 1) }),
32+
tomap({ "architecture" = var.instance_architecture }),
3233
)
3334

3435
lifecycle {

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ variable "instance_type" {
7676
description = "AWS EC2 instance type"
7777
}
7878

79+
variable "instance_architecture" {
80+
type = string
81+
default = "x86_64"
82+
description = "AWS EC2 instance processor architecture"
83+
}
84+
7985
variable "root_volume_size" {
8086
type = string
8187
default = "50"

0 commit comments

Comments
 (0)