@@ -68,20 +68,28 @@ kitchen verify aws-codedeploy-agent-ubuntu-1604
6868
6969To test the cookbook on AWS instances use:
7070
71+ Configure the access to your AWS account using the AWS CLI:
7172``` bash
72- KITCHEN_YAML=.kitchen-aws.yml bundle exec kitchen list
73- KITCHEN_YAML=.kitchen-aws.yml bundle exec kitchen verify aws-codedeploy-agent-ubuntu-1604-aws
74- KITCHEN_YAML=.kitchen-aws.yml bundle exec kitchen verify aws-codedeploy-agent-ubuntu-1404-aws
75- KITCHEN_YAML=.kitchen-aws.yml bundle exec kitchen verify aws-codedeploy-agent-ubuntu-1204-aws
76- KITCHEN_YAML=.kitchen-aws.yml bundle exec kitchen verify aws-codedeploy-agent-debian-8-aws
77- KITCHEN_YAML=.kitchen-aws.yml bundle exec kitchen verify aws-codedeploy-agent-centos-7-aws
78- KITCHEN_YAML=.kitchen-aws.yml bundle exec kitchen verify aws-codedeploy-agent-amazon-linux
73+ aws configure --profile=AWS_CLI_PROFILE
74+ ```
75+
76+ copy the .kitchen-aws.yml to .kitchen-aws.local.yml and configure to suite your AWS account.
77+
78+ ``` bash
79+ AWS_PROFILE=AWS_CLI_PROFILE KITCHEN_YAML=.kitchen-aws.local.yml bundle exec kitchen list
80+
81+ AWS_PROFILE=AWS_CLI_PROFILE KITCHEN_YAML=.kitchen-aws.local.yml bundle exec kitchen verify aws-codedeploy-agent-ubuntu-1604-aws
82+ AWS_PROFILE=AWS_CLI_PROFILE KITCHEN_YAML=.kitchen-aws.local.yml bundle exec kitchen verify aws-codedeploy-agent-ubuntu-1404-aws
83+ AWS_PROFILE=AWS_CLI_PROFILE KITCHEN_YAML=.kitchen-aws.local.yml bundle exec kitchen verify aws-codedeploy-agent-ubuntu-1204-aws
84+ AWS_PROFILE=AWS_CLI_PROFILE KITCHEN_YAML=.kitchen-aws.local.yml bundle exec kitchen verify aws-codedeploy-agent-debian-8-aws
85+ AWS_PROFILE=AWS_CLI_PROFILE KITCHEN_YAML=.kitchen-aws.local.yml bundle exec kitchen verify aws-codedeploy-agent-centos-7-aws
86+ AWS_PROFILE=AWS_CLI_PROFILE KITCHEN_YAML=.kitchen-aws.local.yml bundle exec kitchen verify aws-codedeploy-agent-amazon-linux
7987```
8088
8189To test all at once:
8290
8391``` bash
84- AWS_PROFILE=continuousphp-ami KITCHEN_YAML=.kitchen-aws.local.yml bundle exec kitchen verify -c 5
92+ AWS_PROFILE=AWS_CLI_PROFILE KITCHEN_YAML=.kitchen-aws.local.yml bundle exec kitchen verify -c 5
8593```
8694
8795Refer to the [ kitchen-ec2] ( https://github.com/test-kitchen/kitchen-ec2 ) documentation
0 commit comments