-
Notifications
You must be signed in to change notification settings - Fork 0
/
.kitchen.ec2.yml
48 lines (44 loc) · 1.19 KB
/
.kitchen.ec2.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
---
# The following environment variables are required:
# - AWS_ACCESS_KEY_ID
# - AWS_SECRET_ACCESS_KEY
# - AWS_SSH_KEY_ID
# - AWS_REGION
#
# Optional environment variables:
# - AWS_SECURITY_GROUP
# - AWS_SUBNET
# - KITCHEN_NO_CONCURRENCY set it to true if you do not want concurrency
driver:
name: ec2
instance_type: t2.micro
associate_public_ip: true
iam_profile_name: test-kitchen
region: <%= ENV['AWS_REGION'] || 'us-west-2' %>
tags:
created-by: <%= ENV['AWS_SSH_KEY_ID'] %>
subnet_filter:
tag: 'Name'
value: <%= ENV['AWS_SUBNET'] || 'chef-testing-opensource-vpc-subnet' %>
security_group_filter:
tag: 'Name'
value: <%= ENV['AWS_SECURITY_GROUP'] || 'chef-testing-opensource-vpc-security-group' %>
block_device_mappings:
- device_name: /dev/sda1
ebs:
volume_type: gp2
delete_on_termination: true
transport:
ssh_key: <%= ENV['HOME'] %>/.ssh/id_rsa
platforms:
- name: centos-6
driver:
image_id: ami-05cf2265
- name: centos-7
driver:
image_id: ami-d2c924b2
- name: windows-2012r2
driver:
image_id: ami-b871aad8
suites:
<%= require 'erubis'; Erubis::Eruby.new(File.read('.kitchen_suites.yml')).evaluate %>