From 25fdde7527b6f79d4f580e29a8643126eb31ee2a Mon Sep 17 00:00:00 2001 From: Thomas Klein Date: Mon, 3 Apr 2023 12:53:33 +0200 Subject: [PATCH] added default instance type --- environment.tf | 6 ++++++ variables.tf | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/environment.tf b/environment.tf index b708bfb..a20f406 100644 --- a/environment.tf +++ b/environment.tf @@ -104,6 +104,12 @@ resource "aws_elastic_beanstalk_environment" "beanstalk_env" { value = "PT5M" } + setting { + namespace = "aws:ec2:instances" + name = "InstanceTypes" + value = var.instance_type + } + setting { namespace = "aws:ec2:vpc" name = "VPCId" diff --git a/variables.tf b/variables.tf index b0f1111..96272ca 100644 --- a/variables.tf +++ b/variables.tf @@ -63,7 +63,7 @@ variable "solution_stack_name" { variable "instance_type" { type = string description = "An AWS instance type to use for the environment. Defaults to t4g.small for production environments and t4g.micro for non-production environments" - default = null + default = "t4g.micro" } variable "profile_permissions_boundary_arn" {