Skip to content

Commit

Permalink
fix(ec2): spelling error in Instance's subnet selection logic. (#6752)
Browse files Browse the repository at this point in the history
Co-authored-by: Rico Huijbers <rix0rrr@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
3 people committed Mar 19, 2020
1 parent cc6b0cd commit 564561a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-ec2/lib/instance.ts
Expand Up @@ -291,7 +291,7 @@ export class Instance extends Resource implements IInstance {
if (selected.length === 1) {
subnet = selected[0];
} else {
throw new Error('When specifying AZ there has to be exactly on subnet of the given type in this az');
throw new Error('When specifying AZ there has to be exactly one subnet of the given type in this az');
}
} else {
subnet = subnets[0];
Expand Down

0 comments on commit 564561a

Please sign in to comment.