diff options
author | Peter Mikus <pmikus@cisco.com> | 2022-05-17 12:32:47 +0200 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2022-05-17 10:46:39 +0000 |
commit | d24fe3f719a8c0c084544a794fae1d00fd3aa05c (patch) | |
tree | 4a36d4da45372743064366bbc71276f439806c22 /fdio.infra.terraform/terraform-aws-elastic-beanstalk-environment/main.tf | |
parent | 6cc6259b97d3a67072aeb65ee9fd7704af2eb013 (diff) |
fix(uti): Terraform settings
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Change-Id: Ica539512f3129391551938541d00d9e9d1560af3
Diffstat (limited to 'fdio.infra.terraform/terraform-aws-elastic-beanstalk-environment/main.tf')
-rw-r--r-- | fdio.infra.terraform/terraform-aws-elastic-beanstalk-environment/main.tf | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/fdio.infra.terraform/terraform-aws-elastic-beanstalk-environment/main.tf b/fdio.infra.terraform/terraform-aws-elastic-beanstalk-environment/main.tf index 7fbf50c711..fd570ab575 100644 --- a/fdio.infra.terraform/terraform-aws-elastic-beanstalk-environment/main.tf +++ b/fdio.infra.terraform/terraform-aws-elastic-beanstalk-environment/main.tf @@ -422,6 +422,39 @@ resource "aws_elastic_beanstalk_environment" "environment" { value = aws_iam_instance_profile.ec2_iam_instance_profile.name } + # aws:autoscaling:updatepolicy:rollingupdate + setting { + namespace = "aws:autoscaling:updatepolicy:rollingupdate" + name = "RollingUpdateEnabled" + value = var.autoscaling_updatepolicy_rolling_update_enabled + } + + setting { + namespace = "aws:autoscaling:updatepolicy:rollingupdate" + name = "RollingUpdateType" + value = var.autoscaling_updatepolicy_rolling_update_type + } + + setting { + namespace = "aws:autoscaling:updatepolicy:rollingupdate" + name = "MinInstancesInService" + value = var.autoscaling_updatepolicy_min_instance_in_service + } + + # aws:elasticbeanstalk:command + setting { + namespace = "aws:elasticbeanstalk:command" + name = "DeploymentPolicy" + value = var.command_deployment_policy + } + + # aws:autoscaling:updatepolicy:rollingupdate + setting { + namespace = "aws:autoscaling:updatepolicy:rollingupdate" + name = "MaxBatchSize" + value = var.updatepolicy_max_batch_size + } + # aws:elasticbeanstalk:healthreporting:system setting { namespace = "aws:elasticbeanstalk:healthreporting:system" |