diff options
author | pmikus <peter.mikus@protonmail.ch> | 2023-12-15 11:18:19 +0000 |
---|---|---|
committer | Peter Mikus <peter.mikus@protonmail.ch> | 2024-01-18 09:02:16 +0000 |
commit | 4ef4d31db9aaa76fd67e1c9a7a05df43dc8b067a (patch) | |
tree | 3f4ad5ba1d257d16990263f78b37f9dfd3d800b1 /fdio.infra.terraform | |
parent | 25bb104313dd7e0bc19805d196f9f5f2037a7890 (diff) |
feat(terraform): Migrate C-DASH to M7g.2xlarge
Signed-off-by: Peter Mikus <peter.mikus@protonmail.ch>
Change-Id: Idc39227487a89b7e637c8e2193be27fae088322d
Diffstat (limited to 'fdio.infra.terraform')
5 files changed, 22 insertions, 19 deletions
diff --git a/fdio.infra.terraform/terraform-aws-fdio-csit-dash-app-base/variables.tf b/fdio.infra.terraform/terraform-aws-fdio-csit-dash-app-base/variables.tf index 7647ecfc91..653a92b970 100644 --- a/fdio.infra.terraform/terraform-aws-fdio-csit-dash-app-base/variables.tf +++ b/fdio.infra.terraform/terraform-aws-fdio-csit-dash-app-base/variables.tf @@ -1,7 +1,7 @@ variable "region" { description = "AWS Region." type = string - default = "eu-central-1" + default = "eu-north-1" } variable "vault_provider_address" { @@ -30,7 +30,7 @@ variable "vault_name" { variable "application_bucket" { description = "The name of the bucket." type = string - default = "elasticbeanstalk-eu-central-1-407116685360" + default = "elasticbeanstalk-eu-north-1-407116685360" } variable "application_description" { @@ -42,7 +42,7 @@ variable "application_description" { variable "application_name" { description = "Name of the Beanstalk Application." type = string - default = "fdio-csit-dash-app" + default = "fdio-csit-dash-app-m7g" } variable "application_source" { @@ -54,5 +54,5 @@ variable "application_source" { variable "application_version" { description = "Application version string." type = number - default = 41 + default = 1 } diff --git a/fdio.infra.terraform/terraform-aws-fdio-csit-dash-app-base/versions.tf b/fdio.infra.terraform/terraform-aws-fdio-csit-dash-app-base/versions.tf index 60ce8b4b30..53074269c1 100644 --- a/fdio.infra.terraform/terraform-aws-fdio-csit-dash-app-base/versions.tf +++ b/fdio.infra.terraform/terraform-aws-fdio-csit-dash-app-base/versions.tf @@ -2,11 +2,11 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 5.7.0" + version = ">= 5.31.0" } vault = { - version = ">= 3.2.1" + version = ">= 3.23.0" } } - required_version = ">= 1.4.2" + required_version = ">= 1.5.4" } diff --git a/fdio.infra.terraform/terraform-aws-fdio-csit-dash-env/main.tf b/fdio.infra.terraform/terraform-aws-fdio-csit-dash-env/main.tf index 2b0abd8929..9f115cd6c6 100644 --- a/fdio.infra.terraform/terraform-aws-fdio-csit-dash-env/main.tf +++ b/fdio.infra.terraform/terraform-aws-fdio-csit-dash-env/main.tf @@ -11,8 +11,8 @@ module "elastic_beanstalk_application" { source = "../terraform-aws-elastic-beanstalk-application" # application - application_description = "FD.io CDASH" - application_name = "fdio-csit-dash-app" + application_description = "FD.io CDASH M7G" + application_name = "fdio-csit-dash-app-m7g" appversion_lifecycle_service_role_arn = "arn:aws:iam::407116685360:role/aws-service-role/elasticbeanstalk.amazonaws.com/AWSServiceRoleForElasticBeanstalk" appversion_lifecycle_max_count = 10 appversion_lifecycle_delete_source_from_s3 = false @@ -21,6 +21,9 @@ module "elastic_beanstalk_application" { module "elastic_beanstalk_environment" { source = "../terraform-aws-elastic-beanstalk-environment" + # environment + application_name = "fdio-csit-dash-app-m7g" + # vpc vpc_cidr_block = "10.0.0.0/16" vpc_enable_dns_hostnames = true @@ -28,22 +31,22 @@ module "elastic_beanstalk_environment" { vpc_instance_tenancy = "default" # subnet - subnet_a_availability_zone = "eu-central-1a" + subnet_a_availability_zone = "eu-north-1a" subnet_a_cidr_block = "10.0.0.0/20" - subnet_b_availability_zone = "eu-central-1b" + subnet_b_availability_zone = "eu-north-1b" subnet_b_cidr_block = "10.0.16.0/20" # environment environment_application = module.elastic_beanstalk_application.application_name environment_description = module.elastic_beanstalk_application.application_description - environment_name = "fdio-csit-dash-env" - environment_solution_stack_name = "64bit Amazon Linux 2023 v4.0.3 running Python 3.11" + environment_name = "fdio-csit-dash-env-m7g" + environment_solution_stack_name = "64bit Amazon Linux 2023 v4.0.6 running Python 3.11" environment_tier = "WebServer" environment_wait_for_ready_timeout = "25m" environment_version_label = "" # aws:ec2:instances - instances_instance_types = "t3a.2xlarge" + instances_instance_types = "m7g.2xlarge" # aws:ec2:vpc associate_public_ip_address = true @@ -54,7 +57,7 @@ module "elastic_beanstalk_environment" { # aws:elasticbeanstalk:environment environment_loadbalancer_type = "application" - environment_loadbalancer_ssl_certificate_id = "arn:aws:acm:eu-central-1:407116685360:certificate/737ad419-36f1-460d-919a-9110b0aac26a" + environment_loadbalancer_ssl_certificate_id = "arn:aws:acm:eu-north-1:407116685360:certificate/3ef3c6ae-f1d4-49f0-a8cd-5d090991bf73" # aws:elasticbeanstalk:environment:process:default environment_process_default_healthcheck_interval = 10 diff --git a/fdio.infra.terraform/terraform-aws-fdio-csit-dash-env/variables.tf b/fdio.infra.terraform/terraform-aws-fdio-csit-dash-env/variables.tf index a18b043d00..d7ff1d19ff 100644 --- a/fdio.infra.terraform/terraform-aws-fdio-csit-dash-env/variables.tf +++ b/fdio.infra.terraform/terraform-aws-fdio-csit-dash-env/variables.tf @@ -1,7 +1,7 @@ variable "region" { description = "AWS Region." type = string - default = "eu-central-1" + default = "eu-north-1" } variable "vault_provider_address" { diff --git a/fdio.infra.terraform/terraform-aws-fdio-csit-dash-env/versions.tf b/fdio.infra.terraform/terraform-aws-fdio-csit-dash-env/versions.tf index 88edb12035..4230f463ed 100644 --- a/fdio.infra.terraform/terraform-aws-fdio-csit-dash-env/versions.tf +++ b/fdio.infra.terraform/terraform-aws-fdio-csit-dash-env/versions.tf @@ -2,15 +2,15 @@ terraform { backend "consul" { address = "10.30.51.24:8500" scheme = "http" - path = "terraform/dash" + path = "terraform/dash_m7g" } required_providers { aws = { source = "hashicorp/aws" - version = ">= 5.7.0" + version = ">= 5.31.0" } vault = { - version = ">= 3.12.0" + version = ">= 3.23.0" } } required_version = ">= 1.5.4" |