Skip to content

Commit

Permalink
Merge pull request #8 from oleksii-kalinin/feat/regex-instance-type
Browse files Browse the repository at this point in the history
Update arm checker
  • Loading branch information
RaJiska authored Jan 9, 2024
2 parents 6dc8d65 + 2c2b430 commit d30df52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
locals {
is_arm = regex("[a-zA-Z]+\\d+g[a-z]*\\..+", var.instance_type) == var.instance_type
is_arm = can(regex("[a-zA-Z]+\\d+g[a-z]*\\..+", var.instance_type))
ami_id = var.ami_id != null ? var.ami_id : data.aws_ami.main[0].id
cwagent_param_arn = var.use_cloudwatch_agent ? var.cloudwatch_agent_configuration_param_arn != null ? var.cloudwatch_agent_configuration_param_arn : aws_ssm_parameter.cloudwatch_agent_config[0].arn : null
cwagent_param_name = var.use_cloudwatch_agent ? var.cloudwatch_agent_configuration_param_arn != null ? split("/", data.aws_arn.ssm_param[0].resource)[1] : aws_ssm_parameter.cloudwatch_agent_config[0].name : null
Expand Down

0 comments on commit d30df52

Please sign in to comment.