Skip to content

Commit 6626f08

Browse files
Updated the Testing with AWS CLI and local .kitchen.yml
1 parent 68295e8 commit 6626f08

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

README.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,20 +68,28 @@ kitchen verify aws-codedeploy-agent-ubuntu-1604
6868

6969
To 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

8189
To 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

8795
Refer to the [kitchen-ec2](https://github.com/test-kitchen/kitchen-ec2) documentation

0 commit comments

Comments
 (0)