-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathapi-test-example.yaml
More file actions
113 lines (106 loc) · 2.89 KB
/
api-test-example.yaml
File metadata and controls
113 lines (106 loc) · 2.89 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
---
name: hello
userdata:
type: local
path: scripts/userdata.sh
autoscaling: &autoscaling_policy
- name: scale_out
adjustment_type: ChangeInCapacity
scaling_adjustment: 1
cooldown: 60
- name: scale_in
adjustment_type: ChangeInCapacity
scaling_adjustment: -1
cooldown: 180
alarms: &autoscaling_alarms
- name: scale_out_on_util
namespace: AWS/EC2
metric: CPUUtilization
statistic: Average
comparison: GreaterThanOrEqualToThreshold
threshold: 50
period: 120
evaluation_periods: 2
alarm_actions:
- scale_out
- name: scale_in_on_util
namespace: AWS/EC2
metric: CPUUtilization
statistic: Average
comparison: LessThanOrEqualToThreshold
threshold: 30
period: 300
evaluation_periods: 3
alarm_actions:
- scale_in
# Tags should be like "key=value"
tags:
- project=test
- repo=hello-deploy
stacks:
- stack: artd
polling_interval: 30s
account: dev
env: dev
assume_role: ""
replacement_type: BlueGreen
iam_instance_profile: 'app-hello-profile'
ansible_tags: all
ebs_optimized: true
api_test_enabled: true
api_test_template: api-test-dev
instance_market_options:
market_type: spot
spot_options:
block_duration_minutes: 180
instance_interruption_behavior: terminate # terminate / stop / hibernate
max_price: 0.3
spot_instance_type: one-time # one-time or persistent
block_devices:
- device_name: /dev/xvda
volume_size: 10
volume_type: "gp2"
delete_on_termination: false # root volume will be preserved
- device_name: /dev/xvdb
volume_type: "st1"
volume_size: 500
delete_on_termination: true # data volume will be deleted
- device_name: /dev/xvdc
snapshot_id: snap-1234567890abcdef0 # volume created from snapshot
volume_size: 100
volume_type: "gp3"
delete_on_termination: false # preserve snapshot-based volume
capacity:
min: 1
max: 2
desired: 1
autoscaling: *autoscaling_policy
alarms: *autoscaling_alarms
lifecycle_callbacks:
pre_terminate_past_cluster:
- service hello stop
regions:
- region: ap-northeast-2
instance_type: t3.medium
ssh_key: test-master-key
ami_id: ami-01288945bd24ed49a
use_public_subnets: true
vpc: vpc-artd_apnortheast2
detailed_monitoring_enabled: false
security_groups:
- hello-artd_apnortheast2
- default-artd_apnortheast2
healthcheck_target_group: hello-artdapne2-ext
availability_zones:
- ap-northeast-2a
- ap-northeast-2b
- ap-northeast-2c
target_groups:
- hello-artdapne2-ext
api_test_templates:
- name: api-test-dev
duration: 1m
request_per_second: 10
apis:
- method: GET
url: https://hello.example.com