Skip to content

Commit c42523e

Browse files
authoredJun 21, 2019
refactor(ec2): API cleanups, more control over UserData (aws#2954)
Clean up EC2 APIs, hide all free-floating subclasses and introduce static factory functions (`Peer` and `Port`). Start extensibility campaign for UserData. There are now classes for Linux and Windows-formatted UserData, and users can supply their own instance and/or subclass when creating an ASG. Simplify the user of `IMachineImage`. Fixes aws#2674. BREAKING CHANGES: * **ec2**: `TcpPort` etc have moved to factory method on the `Port` class. * **ec2**: `InstanceTypePair` has moved to factory method on `InstanceType`. * **ec2**: `natDependencies` and `internetDependencies` removed, replaced with `internetConnectivityEstablished`. * **ec2**: removed `selectSubnetIds`. * **ec2**: removed `isPublicSubnets`. * **ec2**: `VpnConnection` is now a `Resource`. * **ec2**: `VpcNetworkProvider` is no longer available directly, use `Vpc.fromLookup()` instead. * **ec2**: `routeTableId` is now a `IRouteTable` object. * **ec2**: `AnyIPv4` etc have move as factory functions onto `Peer`. * **ec2**: `IMachineImageSource` => `IMachineImage`. * **ec2** : `MachineImage` => `MachineImageConfig`.
1 parent c221181 commit c42523e

File tree

82 files changed

+1193
-1051
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+1193
-1051
lines changed
 

‎NOTICE

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
AWS Cloud Development Kit (AWS CDK)
22
Copyright 2018-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+

‎packages/@aws-cdk/assert/package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)