Skip to content

Commit

Permalink
Update SQS example and fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaei committed Mar 26, 2024
1 parent 2690f4f commit 94e00f7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/sqs/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module "lambda" {
}

module "request_queue" {
source = "github.com/nsbno/terraform-aws-queue?ref=0.0.1"
source = "github.com/nsbno/terraform-aws-queue?ref=0.0.5"

name = "get-users"

Expand Down
6 changes: 3 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ resource "aws_appautoscaling_target" "this" {
resource "aws_appautoscaling_policy" "this" {
count = var.provisioned_concurrency != null ? 1 : 0

name = "ScaleOut"
policy_type = "TargetTrackingScaling"
name = "ScaleOut"
policy_type = "TargetTrackingScaling"

resource_id = aws_appautoscaling_target.this[0].resource_id
scalable_dimension = aws_appautoscaling_target.this[0].scalable_dimension
Expand Down Expand Up @@ -155,7 +155,7 @@ resource "aws_appautoscaling_policy" "this" {

metrics {
label = "Provisioned Concurrency Utilization with missing values"
id = "e1"
id = "e1"

expression = "FILL(m1, 0)"

Expand Down
3 changes: 2 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ variable "provisioned_concurrency" {
description = "Settings for provisioned concurrency"

nullable = true
type = object({

type = object({
minimum_capacity = number
maximum_capacity = number
target_utilization = optional(number, 0.8)
Expand Down

0 comments on commit 94e00f7

Please sign in to comment.