Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos in ec2 instancesbyRegion example #1762

Merged
merged 2 commits into from
Feb 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions example/service/ec2/instancesbyRegion/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ This is an example using the AWS SDK for Go to list ec2 instances instance state


```sh
# To fetch the stopped instance of all region use below:
# To fetch the stopped and running instances of all region use below:
./filter_ec2_by_region --state running --state stopped

# To fetch the stopped and running instance for region us-west-1 and eu-west-1 use below:
# To fetch the stopped and running instances for region us-west-1 and eu-west-1 use below:
./filter_ec2_by_region --state running --state stopped --region us-west-1 --region=eu-west-1
```

Expand Down
4 changes: 2 additions & 2 deletions example/service/ec2/instancesbyRegion/instancesByRegion.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ func main() {
if err != nil {
fmt.Println("Error", err)
} else {
fmt.Printf("\n\n\nFetching instace details for region: %s with criteria: %s**\n ", region, instanceCriteria)
fmt.Printf("\n\n\nFetching instance details for region: %s with criteria: %s**\n ", region, instanceCriteria)
if len(result.Reservations) == 0 {
fmt.Printf("There is no instance for the for region %s with the matching Criteria:%s \n", region, instanceCriteria)
fmt.Printf("There is no instance for the region: %s with the matching criteria:%s \n", region, instanceCriteria)
}
for _, reservation := range result.Reservations {

Expand Down