The Chef SDK contains Test Kitchen, that can launch server instances to test your Chef cookbooks. Test Kitchen uses the “chef_zero” provisioner to use your workstation as the virtual Chef server.
To switch Test Kitchen to launch instances in another AWS account
- In the .kitchen.yml file update the
- availability_zone
- subnet_id
- aws_ssh_key_id (if different in each account)
- security_group_ids. Make sure the management ports are open:
- for Linux: port 22 for SSH, or
- for Windows: port 5985 – 5986 for WinRM and port 3389 for Remote Desktop
- ssh_key (if different in each account)
- In the default.rb attribute file update the
- …[‘aws_profile’]
- In the ~/.aws/credentials file update the
- [default] section