Skip to content

Commit

Permalink
Introduces solution_stack variable to both duracloud and management c…
Browse files Browse the repository at this point in the history
…onsole sub projects.
  • Loading branch information
dbernstein committed Oct 26, 2023
1 parent 45b2a95 commit 5fd6ff5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion duracloud/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ resource "aws_elastic_beanstalk_application_version" "default" {
resource "aws_elastic_beanstalk_configuration_template" "config" {
name = "duracloud-config"
application = aws_elastic_beanstalk_application.duracloud.name
solution_stack_name = "64bit Amazon Linux 2 v4.3.7 running Tomcat 8.5 Corretto 11"
solution_stack_name = var.solution_stack

setting {
namespace = "aws:ec2:vpc"
Expand Down
5 changes: 5 additions & 0 deletions duracloud/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ variable "duracloud_zip" {

}

variable "solution_stack" {
description = "The AWS Solution Stack to use with the Elastic Beanstalk."
default = "64bit Amazon Linux 2 v4.3.7 running Tomcat 8.5 Corretto 11"
}

variable "duracloud_instance_class" {
description = "The instance size of worker ec2 instance class"
default = "m5.large"
Expand Down
2 changes: 1 addition & 1 deletion management-console/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ resource "aws_elastic_beanstalk_application_version" "default" {
resource "aws_elastic_beanstalk_configuration_template" "config" {
name = "mc-config"
application = aws_elastic_beanstalk_application.mc.name
solution_stack_name = "64bit Amazon Linux 2 v4.3.7 running Tomcat 8.5 Corretto 11"
solution_stack_name = var.solution_stack

setting {
namespace = "aws:ec2:vpc"
Expand Down
5 changes: 5 additions & 0 deletions management-console/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ variable "mc_war" {

}

variable "solution_stack" {
description = "The AWS Solution Stack to use with the Elastic Beanstalk."
default = "64bit Amazon Linux 2 v4.3.7 running Tomcat 8.5 Corretto 11"
}


variable "mc_instance_class" {
description = "The instance size of worker ec2 instance class"
Expand Down

0 comments on commit 5fd6ff5

Please sign in to comment.