forked from sous-chefs/aws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.kitchen.yml
164 lines (144 loc) · 4.37 KB
/
.kitchen.yml
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
driver_config:
name: ec2
aws_ssh_key_id: <%= ENV['AWS_KEYPAIR_NAME'] %>
region: us-west-2
availability_zone: us-west-2a
transport:
ssh_key: <%= ENV['EC2_SSH_KEY_PATH'] %>
provisioner:
name: chef_zero
deprecations_as_errors: true
verifier:
name: inspec
platforms:
- name: amazon-2017-09
driver_config:
image_id: ami-da4694a2
instance_type: t1.micro
transport:
username: ec2-user
suites:
- name: cfn_stack
run_list:
- recipe[aws_test::cfn_stack]
attributes:
aws_test:
key_id: <%= ENV['AWS_ACCESS_KEY_ID'] %>
access_key: <%= ENV['AWS_SECRET_ACCESS_KEY'] %>
- name: dynamo_table
run_list:
- recipe[aws_test::dynamodb_table]
attributes:
aws_test:
key_id: <%= ENV['AWS_ACCESS_KEY_ID'] %>
access_key: <%= ENV['AWS_SECRET_ACCESS_KEY'] %>
- name: ebs_volume
run_list:
- recipe[aws_test::ebs_volume]
attributes:
aws_test:
key_id: <%= ENV['AWS_ACCESS_KEY_ID'] %>
access_key: <%= ENV['AWS_SECRET_ACCESS_KEY'] %>
- name: elastic_ip
run_list:
- recipe[aws_test::elastic_ip]
attributes:
aws_test:
key_id: <%= ENV['AWS_ACCESS_KEY_ID'] %>
access_key: <%= ENV['AWS_SECRET_ACCESS_KEY'] %>
elastic_ip: <%= ENV['AWS_ELASTIC_IP'] || '54.148.151.62' %>
- name: elb
run_list:
- recipe[aws_test::elb]
attributes:
aws_test:
key_id: <%= ENV['AWS_ACCESS_KEY_ID'] %>
access_key: <%= ENV['AWS_SECRET_ACCESS_KEY'] %>
- name: resource_tag
run_list:
- recipe[aws_test::resource_tag]
attributes:
aws_test:
key_id: <%= ENV['AWS_ACCESS_KEY_ID'] %>
access_key: <%= ENV['AWS_SECRET_ACCESS_KEY'] %>
- name: s3_file
run_list:
- recipe[aws_test::s3_file]
attributes:
aws_test:
key_id: <%= ENV['AWS_ACCESS_KEY_ID'] %>
access_key: <%= ENV['AWS_SECRET_ACCESS_KEY'] %>
bucket: <%= ENV['AWS_S3_BUCKET'] || 'aws-cookbook-2' %>
bucket_west: <%= ENV['AWS_S3_BUCKET_WEST'] || 'aws-cookbook-west' %>
s3key: <%= ENV['AWS_S3_KEY'] || 'a_file' %>
- name: instance_monitoring
run_list:
- recipe[aws_test::instance_monitoring]
attributes:
aws_test:
key_id: <%= ENV['AWS_ACCESS_KEY_ID'] %>
access_key: <%= ENV['AWS_SECRET_ACCESS_KEY'] %>
- name: instance_term_protection
run_list:
- recipe[aws_test::instance_term_protection]
attributes:
aws_test:
key_id: <%= ENV['AWS_ACCESS_KEY_ID'] %>
access_key: <%= ENV['AWS_SECRET_ACCESS_KEY'] %>
- name: iam_user
run_list:
- recipe[aws_test::iam_user]
attributes:
aws_test:
key_id: <%= ENV['AWS_ACCESS_KEY_ID'] %>
access_key: <%= ENV['AWS_SECRET_ACCESS_KEY'] %>
- name: iam_group
run_list:
- recipe[aws_test::iam_group]
attributes:
aws_test:
key_id: <%= ENV['AWS_ACCESS_KEY_ID'] %>
access_key: <%= ENV['AWS_SECRET_ACCESS_KEY'] %>
- name: iam_role
run_list:
- recipe[aws_test::iam_role]
attributes:
aws_test:
key_id: <%= ENV['AWS_ACCESS_KEY_ID'] %>
access_key: <%= ENV['AWS_SECRET_ACCESS_KEY'] %>
- name: iam_policy
run_list:
- recipe[aws_test::iam_policy]
attributes:
aws_test:
key_id: <%= ENV['AWS_ACCESS_KEY_ID'] %>
access_key: <%= ENV['AWS_SECRET_ACCESS_KEY'] %>
- name: route53
run_list:
- recipe[aws_test::route53]
attributes:
aws_test:
key_id: <%= ENV['AWS_ACCESS_KEY_ID'] %>
access_key: <%= ENV['AWS_SECRET_ACCESS_KEY'] %>
- name: cloudwatch_alarm
run_list:
- recipe[aws_test::cloudwatch_alarm]
attributes:
aws_test:
key_id: <%= ENV['AWS_ACCESS_KEY_ID'] %>
access_key: <%= ENV['AWS_SECRET_ACCESS_KEY'] %>
cloudwatch:
period: <%= ENV['CLOUDWATCH_PERIOD'] %>
evaluation_periods: <%= ENV['CLOUDWATCH_EVALUATION_PERIODS'] %>
threshold: <%= ENV['CLOUDWATCH_THRESHOLD'] %>
comparison_operator: <%= ENV['CLOUDWATCH_COMPARISON_OPERATOR'] %>
metric_name: <%= ENV['CLOUDWATCH_METRIC_NAME'] %>
namespace: <%= ENV['CLOUDWATCH_NAMESPACE'] %>
statistic: <%= ENV['CLOUDWATCH_STATISTIC'] %>
- name: secondary_ip
run_list:
- recipe[aws_test::secondary_ip]
attributes:
aws_test:
key_id: <%= ENV['AWS_ACCESS_KEY_ID'] %>
access_key: <%= ENV['AWS_SECRET_ACCESS_KEY'] %>