blob: 909d6fca4ddb6331641a83bdcef0f1aa990a0e4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
locals {
tags = {
"Name" = "${var.application_name}"
"Environment" = "${var.application_name}"
}
}
resource "aws_elastic_beanstalk_application" "application" {
name = var.application_name
description = var.application_description
tags = local.tags
dynamic "appversion_lifecycle" {
for_each = var.appversion_lifecycle_service_role_arn != "" ? ["true"] : []
content {
service_role = var.appversion_lifecycle_service_role_arn
max_count = var.appversion_lifecycle_max_count
delete_source_from_s3 = var.appversion_lifecycle_delete_source_from_s3
}
}
}
|