-
Notifications
You must be signed in to change notification settings - Fork 1
/
codedeploy.tf
44 lines (38 loc) · 1.38 KB
/
codedeploy.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
resource "aws_codedeploy_app" "codedeploy_app_WEB" {
name = "70491-codedeploy-app-WEB"
compute_platform = "Server"
}
resource "aws_codedeploy_deployment_group" "codedeploy_group_WEB" {
app_name = aws_codedeploy_app.codedeploy_app_WEB.name
deployment_group_name = "70491-codedeploy-group_WEB"
deployment_config_name = "CodeDeployDefault.AllAtOnce"
service_role_arn = aws_iam_role.codedeploy_role.arn
autoscaling_groups = [aws_autoscaling_group.web_autoscaling_group.name]
deployment_style {
deployment_type = "IN_PLACE"
}
load_balancer_info {
target_group_info {
name = aws_lb_target_group.ec2_web_target_group.name
}
}
}
resource "aws_codedeploy_app" "codedeploy_app_WAS" {
name = "70491-codedeploy-app-WAS"
compute_platform = "Server"
}
resource "aws_codedeploy_deployment_group" "codedeploy_group_WAS" {
app_name = aws_codedeploy_app.codedeploy_app_WAS.name
deployment_group_name = "70491-codedeploy-group_WAS"
deployment_config_name = "CodeDeployDefault.AllAtOnce"
service_role_arn = aws_iam_role.codedeploy_role.arn
autoscaling_groups = [aws_autoscaling_group.was_autoscaling_group.name]
deployment_style {
deployment_type = "IN_PLACE"
}
load_balancer_info {
target_group_info {
name = aws_lb_target_group.ec2_was_target_group.name
}
}
}