@aws-cdk/aws-ec2
Advanced tools
Comparing version 0.14.1 to 0.15.0
@@ -35,7 +35,7 @@ import { SecurityGroupRef } from "./security-group"; | ||
/** | ||
* What securityGroup this object is managing connections for | ||
* What securityGroup(s) this object is managing connections for | ||
* | ||
* @default No security | ||
* @default No security groups | ||
*/ | ||
securityGroup?: SecurityGroupRef; | ||
securityGroups?: SecurityGroupRef[]; | ||
/** | ||
@@ -57,5 +57,11 @@ * Default port range for initiating connections to and from this object | ||
* | ||
* This object can manage one or more security groups. | ||
*/ | ||
export declare class Connections { | ||
export declare class Connections implements IConnectable { | ||
readonly connections: Connections; | ||
/** | ||
* The default port configured for this connection peer, if available | ||
*/ | ||
readonly defaultPortRange?: IPortRange; | ||
/** | ||
* Underlying securityGroup for this Connections object, if present | ||
@@ -66,12 +72,14 @@ * | ||
*/ | ||
readonly securityGroup?: SecurityGroupRef; | ||
private readonly _securityGroups; | ||
/** | ||
* The rule that defines how to represent this peer in a security group | ||
*/ | ||
readonly securityGroupRule: ISecurityGroupRule; | ||
private readonly _securityGroupRules; | ||
private skip; | ||
constructor(props?: ConnectionsProps); | ||
readonly securityGroups: SecurityGroupRef[]; | ||
/** | ||
* The default port configured for this connection peer, if available | ||
* Add a security group to the list of security groups managed by this object | ||
*/ | ||
readonly defaultPortRange?: IPortRange; | ||
constructor(props: ConnectionsProps); | ||
addSecurityGroup(...securityGroups: SecurityGroupRef[]): void; | ||
/** | ||
@@ -78,0 +86,0 @@ * Allow connections to the peer on the given port |
@@ -13,22 +13,53 @@ "use strict"; | ||
* | ||
* This object can manage one or more security groups. | ||
*/ | ||
class Connections { | ||
constructor(props) { | ||
if (!props.securityGroupRule && !props.securityGroup) { | ||
throw new Error('Connections: require one of securityGroupRule or securityGroup'); | ||
constructor(props = {}) { | ||
/** | ||
* Underlying securityGroup for this Connections object, if present | ||
* | ||
* May be empty if this Connections object is not managing a SecurityGroup, | ||
* but simply representing a Connectable peer. | ||
*/ | ||
this._securityGroups = new ReactiveList(); | ||
/** | ||
* The rule that defines how to represent this peer in a security group | ||
*/ | ||
this._securityGroupRules = new ReactiveList(); | ||
this.skip = false; | ||
this.connections = this; | ||
this._securityGroups.push(...(props.securityGroups || [])); | ||
this._securityGroupRules.push(...this._securityGroups.asArray()); | ||
if (props.securityGroupRule) { | ||
this._securityGroupRules.push(props.securityGroupRule); | ||
} | ||
this.securityGroupRule = props.securityGroupRule || props.securityGroup; | ||
this.securityGroup = props.securityGroup; | ||
this.defaultPortRange = props.defaultPortRange; | ||
} | ||
get securityGroups() { | ||
return this._securityGroups.asArray(); | ||
} | ||
/** | ||
* Add a security group to the list of security groups managed by this object | ||
*/ | ||
addSecurityGroup(...securityGroups) { | ||
for (const securityGroup of securityGroups) { | ||
this._securityGroups.push(securityGroup); | ||
this._securityGroupRules.push(securityGroup); | ||
} | ||
} | ||
/** | ||
* Allow connections to the peer on the given port | ||
*/ | ||
allowTo(other, portRange, description) { | ||
if (this.securityGroup) { | ||
this.securityGroup.addEgressRule(other.connections.securityGroupRule, portRange, description); | ||
if (this.skip) { | ||
return; | ||
} | ||
if (other.connections.securityGroup) { | ||
other.connections.securityGroup.addIngressRule(this.securityGroupRule, portRange, description); | ||
} | ||
this._securityGroups.forEachAndForever(securityGroup => { | ||
other.connections._securityGroupRules.forEachAndForever(rule => { | ||
securityGroup.addEgressRule(rule, portRange, description); | ||
}); | ||
}); | ||
this.skip = true; | ||
other.connections.allowFrom(this, portRange, description); | ||
this.skip = false; | ||
} | ||
@@ -39,8 +70,13 @@ /** | ||
allowFrom(other, portRange, description) { | ||
if (this.securityGroup) { | ||
this.securityGroup.addIngressRule(other.connections.securityGroupRule, portRange, description); | ||
if (this.skip) { | ||
return; | ||
} | ||
if (other.connections.securityGroup) { | ||
other.connections.securityGroup.addEgressRule(this.securityGroupRule, portRange, description); | ||
} | ||
this._securityGroups.forEachAndForever(securityGroup => { | ||
other.connections._securityGroupRules.forEachAndForever(rule => { | ||
securityGroup.addIngressRule(rule, portRange, description); | ||
}); | ||
}); | ||
this.skip = true; | ||
other.connections.allowTo(this, portRange, description); | ||
this.skip = false; | ||
} | ||
@@ -51,5 +87,9 @@ /** | ||
allowInternally(portRange, description) { | ||
if (this.securityGroup) { | ||
this.securityGroup.addIngressRule(this.securityGroupRule, portRange, description); | ||
} | ||
this._securityGroups.forEachAndForever(securityGroup => { | ||
this._securityGroupRules.forEachAndForever(rule => { | ||
securityGroup.addIngressRule(rule, portRange, description); | ||
// FIXME: this seems required but we didn't use to have it. Research. | ||
// securityGroup.addEgressRule(rule, portRange, description); | ||
}); | ||
}); | ||
} | ||
@@ -119,2 +159,28 @@ /** | ||
exports.Connections = Connections; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29ubmVjdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJjb25uZWN0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUNBLCtEQUFnRjtBQW1EaEY7Ozs7Ozs7OztHQVNHO0FBQ0gsTUFBYSxXQUFXO0lBbUJ0QixZQUFZLEtBQXVCO1FBQ2pDLElBQUksQ0FBQyxLQUFLLENBQUMsaUJBQWlCLElBQUksQ0FBQyxLQUFLLENBQUMsYUFBYSxFQUFFO1lBQ3BELE1BQU0sSUFBSSxLQUFLLENBQUMsZ0VBQWdFLENBQUMsQ0FBQztTQUNuRjtRQUVELElBQUksQ0FBQyxpQkFBaUIsR0FBRyxLQUFLLENBQUMsaUJBQWlCLElBQUksS0FBSyxDQUFDLGFBQWMsQ0FBQztRQUN6RSxJQUFJLENBQUMsYUFBYSxHQUFHLEtBQUssQ0FBQyxhQUFhLENBQUM7UUFDekMsSUFBSSxDQUFDLGdCQUFnQixHQUFHLEtBQUssQ0FBQyxnQkFBZ0IsQ0FBQztJQUNqRCxDQUFDO0lBRUQ7O09BRUc7SUFDSSxPQUFPLENBQUMsS0FBbUIsRUFBRSxTQUFxQixFQUFFLFdBQW9CO1FB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hdWx0UG9ydCgpOiBvdGhlciByZXNvdXJjZSBoYXMgbm8gZGVmYXVsdCBwb3J0Jyk7XG4gICAgfVxuXG4gICAgdGhpcy5hbGxvd1RvKG90aGVyLCBvdGhlci5jb25uZWN0aW9ucy5kZWZhdWx0UG9ydFJhbmdlLCBkZXNjcmlwdGlvbik7XG4gIH1cblxuICAvKipcbiAgICogQWxsb3cgY29ubmVjdGlvbnMgZnJvbSB0aGUgcGVlciBvbiBvdXIgZGVmYXVsdCBwb3J0XG4gICAqXG4gICAqIEV2ZW4gaWYgdGhlIHBlZXIgaGFzIGEgZGVmYXVsdCBwb3J0LCB3ZSB3aWxsIGFsd2F5cyB1c2Ugb3VyIGRlZmF1bHQgcG9ydC5cbiAgICovXG4gIHB1YmxpYyBhbGxvd0RlZmF1bHRQb3J0VG8ob3RoZXI6IElDb25uZWN0YWJsZSwgZGVzY3JpcHRpb24/OiBzdHJpbmcpIHtcbiAgICBpZiAoIXRoaXMuZGVmYXVsdFBvcnRSYW5nZSkge1xuICAgICAgdGhyb3cgbmV3IEVycm9yKCdDYW5ub3QgY2FsbCBhbGxvd0RlZmF1bHRQb3J0VG8oKTogdGhpcyByZXNvdXJjZSBoYXMgbm8gZGVmYXVsdCBwb3J0Jyk7XG4gICAgfVxuICAgIHRoaXMuYWxsb3dUbyhvdGhlciwgdGhpcy5kZWZhdWx0UG9ydFJhbmdlLCBkZXNjcmlwdGlvbik7XG4gIH1cbn1cbiJdfQ== | ||
class ReactiveList { | ||
constructor() { | ||
this.elements = new Array(); | ||
this.listeners = new Array(); | ||
} | ||
push(...xs) { | ||
this.elements.push(...xs); | ||
for (const listener of this.listeners) { | ||
for (const x of xs) { | ||
listener(x); | ||
} | ||
} | ||
} | ||
forEachAndForever(listener) { | ||
for (const element of this.elements) { | ||
listener(element); | ||
} | ||
this.listeners.push(listener); | ||
} | ||
asArray() { | ||
return this.elements.slice(); | ||
} | ||
get length() { | ||
return this.elements.length; | ||
} | ||
} | ||
//# sourceMappingUR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TtcbiAgICAgIH1cbiAgICB9XG4gIH1cblxuICBwdWJsaWMgZm9yRWFjaEFuZEZvcmV2ZXIobGlzdGVuZXI6IEFjdGlvbjxUPikge1xuICAgIGZvciAoY29uc3QgZWxlbWVudCBvZiB0aGlzLmVsZW1lbnRzKSB7XG4gICAgICBsaXN0ZW5lcihlbGVtZW50KTtcbiAgICB9XG4gICAgdGhpcy5saXN0ZW5lcnMucHVzaChsaXN0ZW5lcik7XG4gIH1cblxuICBwdWJsaWMgYXNBcnJheSgpOiBUW10ge1xuICAgIHJldHVybiB0aGlzLmVsZW1lbnRzLnNsaWNlKCk7XG4gIH1cblxuICBwdWJsaWMgZ2V0IGxlbmd0aCgpOiBudW1iZXIge1xuICAgIHJldHVybiB0aGlzLmVsZW1lbnRzLmxlbmd0aDtcbiAgfVxufSJdfQ== |
@@ -35,2 +35,8 @@ import { Construct } from '@aws-cdk/cdk'; | ||
/** | ||
* What generation of Amazon Linux to use | ||
* | ||
* @default AmazonLinux | ||
*/ | ||
generation?: AmazonLinuxGeneration; | ||
/** | ||
* What edition of Amazon Linux to use | ||
@@ -60,5 +66,6 @@ * | ||
export declare class AmazonLinuxImage implements IMachineImageSource { | ||
private readonly edition?; | ||
private readonly virtualization?; | ||
private readonly storage?; | ||
private readonly generation; | ||
private readonly edition; | ||
private readonly virtualization; | ||
private readonly storage; | ||
constructor(props?: AmazonLinuxImageProps); | ||
@@ -71,2 +78,15 @@ /** | ||
/** | ||
* What generation of Amazon Linux to use | ||
*/ | ||
export declare enum AmazonLinuxGeneration { | ||
/** | ||
* Amazon Linux | ||
*/ | ||
AmazonLinux = "amzn", | ||
/** | ||
* Amazon Linux 2 | ||
*/ | ||
AmazonLinux2 = "amzn2" | ||
} | ||
/** | ||
* Amazon Linux edition | ||
@@ -73,0 +93,0 @@ */ |
@@ -40,2 +40,3 @@ "use strict"; | ||
constructor(props) { | ||
this.generation = (props && props.generation) || AmazonLinuxGeneration.AmazonLinux; | ||
this.edition = (props && props.edition) || AmazonLinuxEdition.Standard; | ||
@@ -50,3 +51,4 @@ this.virtualization = (props && props.virtualization) || AmazonLinuxVirt.HVM; | ||
const parts = [ | ||
'amzn-ami', | ||
this.generation, | ||
'ami', | ||
this.edition !== AmazonLinuxEdition.Standard ? this.edition : undefined, | ||
@@ -67,2 +69,16 @@ this.virtualization, | ||
/** | ||
* What generation of Amazon Linux to use | ||
*/ | ||
var AmazonLinuxGeneration; | ||
(function (AmazonLinuxGeneration) { | ||
/** | ||
* Amazon Linux | ||
*/ | ||
AmazonLinuxGeneration["AmazonLinux"] = "amzn"; | ||
/** | ||
* Amazon Linux 2 | ||
*/ | ||
AmazonLinuxGeneration["AmazonLinux2"] = "amzn2"; | ||
})(AmazonLinuxGeneration = exports.AmazonLinuxGeneration || (exports.AmazonLinuxGeneration = {})); | ||
/** | ||
* Amazon Linux edition | ||
@@ -210,2 +226,2 @@ */ | ||
exports.LinuxOS = LinuxOS; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFjaGluZS1pbWFnZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIm1hY2hpbmUtaW1hZ2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxzQ0FBc0U7QUFZdEU7Ozs7OztHQU1HO0FBQ0gsTUFBYSxZQUFZO0lBQ3ZCLFlBQTZCLE9BQXVCO1FBQXZCLFlBQU8sR0FBUCxPQUFPLENBQWdCO0lBQ3BELENBQUM7SUFFRDs7T0FFRztJQUNJLFFBQVEsQ0FBQyxNQUFpQjtRQUMvQixNQUFNLFdBQVcsR0FBRyxJQUFJLDBCQUFvQixDQUFDLE1BQU0sRUFBRTtZQUNuRCxhQUFhLEVBQUUsSUFBSSxDQUFDLGtCQUFrQixDQUFDLElBQUksQ0FBQyxPQUFPLENBQUM7U0FDckQsQ0FBQyxDQUFDO1FBRUgsTUFBTSxHQUFHLEdBQUcsV0FBVyxDQUFDL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XNlckRhdGEoc2NyaXB0czogc3RyaW5nW10pOiBzdHJpbmcge1xuICAgIHJldHVybiAnIyEvYmluL2Jhc2hcXG4nICsgc2NyaXB0cy5qb2luKCdcXG4nKTtcbiAgfVxuXG4gIGdldCB0eXBlKCk6IE9wZXJhdGluZ1N5c3RlbVR5cGUge1xuICAgIHJldHVybiBPcGVyYXRpbmdTeXN0ZW1UeXBlLkxpbnV4O1xuICB9XG59XG4iXX0= |
@@ -13,3 +13,3 @@ "use strict"; | ||
this.canInlineRule = false; | ||
this.connections = new connections_1.Connections({ securityGroup: this }); | ||
this.connections = new connections_1.Connections({ securityGroups: [this] }); | ||
} | ||
@@ -254,2 +254,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VjdXJpdHktZ3JvdXAuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzZWN1cml0eS1ncm91cC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHNDQUFxRjtBQUNyRiwrQ0FBMEQ7QUFDMUQsbURBQWlEO0FBV2pEOztHQUVHO0FBQ0gsTUFBc0IsZ0JBQWlCLFNBQVEsZUFBUztJQUF4RDs7UUFTa0Isa0JBQWEsR0FBRyxLQUFLLENBQUM7UUFDdEIsZ0JBQVcsR0FBRyxJQUFJLHlCQUFXLENBQUMsRUFBRSxhQUFhLEVBQUUsSUFBSSxFQUFFLENBQUMsQ0FBQztJQTREekUsQ0FBQztJQXJFQzs7T0FFRztJQUNJLE1BQU0sQ0FBQyxNQUFNLENBQUMsTUFBaUIsRUFBRSxFQUFVLEVBQUUsS0FBNEI7UUFDOUUsT0FBTyxJQUFJLHFCQUFxQixDQUFDLE1BQU0sRUFBRSxFQUFFLEVBQUUsS0FBSyxDQUFDLENBQUM7SUFDdEQsQ0FBQztJQVdNLGNBQWMsQ0FBQyxJQUF3QixFQUFFLFVBQXNCLEVBQUUsV0FBb0I7UUFDMUY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AgICYmIGEudG9Qb3J0ID09PSBiLnRvUG9ydFxuICAgICYmIGEuaXBQcm90b2NvbCA9PT0gYi5pcFByb3RvY29sXG4gICAgJiYgYS5kZXN0aW5hdGlvblByZWZpeExpc3RJZCA9PT0gYi5kZXN0aW5hdGlvblByZWZpeExpc3RJZFxuICAgICYmIGEuZGVzdGluYXRpb25TZWN1cml0eUdyb3VwSWQgPT09IGIuZGVzdGluYXRpb25TZWN1cml0eUdyb3VwSWQ7XG59XG5cbi8qKlxuICogV2hldGhlciB0aGlzIHJ1bGUgcmVmZXJzIHRvIGFsbCB0cmFmZmljXG4gKi9cbmZ1bmN0aW9uIGlzQWxsVHJhZmZpY1J1bGUocnVsZTogYW55KSB7XG4gIHJldHVybiBydWxlLmNpZHJJcCA9PT0gJzAuMC4wLjAvMCcgJiYgcnVsZS5pcFByb3RvY29sID09PSAnLTEnO1xufVxuIl19 |
{ | ||
"name": "@aws-cdk/aws-ec2", | ||
"version": "0.14.1", | ||
"version": "0.15.0", | ||
"description": "CDK Constructs for AWS EC2", | ||
@@ -55,13 +55,16 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@aws-cdk/assert": "^0.14.1", | ||
"cdk-build-tools": "^0.14.1", | ||
"cdk-integ-tools": "^0.14.1", | ||
"cfn2ts": "^0.14.1", | ||
"pkglint": "^0.14.1" | ||
"@aws-cdk/assert": "^0.15.0", | ||
"cdk-build-tools": "^0.15.0", | ||
"cdk-integ-tools": "^0.15.0", | ||
"cfn2ts": "^0.15.0", | ||
"pkglint": "^0.15.0" | ||
}, | ||
"dependencies": { | ||
"@aws-cdk/aws-iam": "^0.14.1", | ||
"@aws-cdk/aws-iam": "^0.15.0", | ||
"@aws-cdk/cdk": "^0.15.0" | ||
}, | ||
"homepage": "https://github.com/awslabs/aws-cdk", | ||
"peerDependencies": { | ||
"@aws-cdk/cdk": "^0.14.1" | ||
}, | ||
"homepage": "https://github.com/awslabs/aws-cdk" | ||
} | ||
} |
@@ -201,3 +201,3 @@ ## AWS Compute and Networking Construct Library | ||
security groups. If you want to allow connections between two constructs that | ||
have security groups, you have to add an **Egress* rule to one Security Group, | ||
have security groups, you have to add an **Egress** rule to one Security Group, | ||
and an **Ingress** rule to the other. The connections object will automatically | ||
@@ -274,1 +274,20 @@ take care of this for you: | ||
``` | ||
### Machine Images (AMIs) | ||
AMIs control the OS that gets launched when you start your EC2 instance. The EC2 | ||
library contains constructs to select the AMI you want to use. | ||
Depending on the type of AMI, you select it a different way. | ||
The latest version of Amazon Linux and Microsoft Windows images are | ||
selectable by instantiating one of these classes: | ||
[example of creating images](test/example.images.lit.ts) | ||
> NOTE: The Amazon Linux images selected will be cached in your `cdk.json`, so that your | ||
> AutoScalingGroups don't automatically change out from under you when you're making unrelated | ||
> changes. To update to the latest version of Amazon Linux, remove the cache entry from the `context` | ||
> section of your `cdk.json`. | ||
> | ||
> We will add command-line options to make this step easier in the future. |
import { Test } from 'nodeunit'; | ||
declare const _default: { | ||
'security group can allows all outbound traffic by default'(test: Test): void; | ||
'no new outbound rule is added if we are allowing all traffic anyway'(test: Test): void; | ||
'security group disallow outbound traffic by default'(test: Test): void; | ||
'bogus outbound rule disappears if another rule is added'(test: Test): void; | ||
'all outbound rule cannot be added after creation'(test: Test): void; | ||
'peering between two security groups does not recursive infinitely'(test: Test): void; | ||
'(imported) SecurityGroup can be used as target of .allowTo()'(test: Test): void; | ||
'peer between all types of peers and port range types'(test: Test): void; | ||
'security groups added to connections after rule still gets rule'(test: Test): void; | ||
'when security groups are added to target they also get the rule'(test: Test): void; | ||
'multiple security groups allows internally between them'(test: Test): void; | ||
}; | ||
export = _default; |
@@ -11,169 +11,125 @@ "use strict"; | ||
module.exports = { | ||
'security group can allows all outbound traffic by default'(test) { | ||
'peering between two security groups does not recursive infinitely'(test) { | ||
// GIVEN | ||
const stack = new cdk_1.Stack(); | ||
const stack = new cdk_1.Stack(undefined, 'TestStack', { env: { account: '12345678', region: 'dummy' } }); | ||
const vpc = new lib_1.VpcNetwork(stack, 'VPC'); | ||
const sg1 = new lib_1.SecurityGroup(stack, 'SG1', { vpc }); | ||
const sg2 = new lib_1.SecurityGroup(stack, 'SG2', { vpc }); | ||
const conn1 = new SomethingConnectable(new lib_1.Connections({ securityGroups: [sg1] })); | ||
const conn2 = new SomethingConnectable(new lib_1.Connections({ securityGroups: [sg2] })); | ||
// WHEN | ||
new lib_1.SecurityGroup(stack, 'SG1', { vpc, allowAllOutbound: true }); | ||
// THEN | ||
assert_1.expect(stack).to(assert_1.haveResource('AWS::EC2::SecurityGroup', { | ||
SecurityGroupEgress: [ | ||
{ | ||
CidrIp: "0.0.0.0/0", | ||
Description: "Allow all outbound traffic by default", | ||
IpProtocol: "-1" | ||
} | ||
], | ||
})); | ||
conn1.connections.allowTo(conn2, new lib_1.TcpPort(80), 'Test'); | ||
// THEN -- it finishes! | ||
test.done(); | ||
}, | ||
'no new outbound rule is added if we are allowing all traffic anyway'(test) { | ||
'(imported) SecurityGroup can be used as target of .allowTo()'(test) { | ||
// GIVEN | ||
const stack = new cdk_1.Stack(); | ||
const vpc = new lib_1.VpcNetwork(stack, 'VPC'); | ||
const sg1 = new lib_1.SecurityGroup(stack, 'SomeSecurityGroup', { vpc, allowAllOutbound: false }); | ||
const somethingConnectable = new SomethingConnectable(new lib_1.Connections({ securityGroups: [sg1] })); | ||
const securityGroup = lib_1.SecurityGroupRef.import(stack, 'ImportedSG', { securityGroupId: 'sg-12345' }); | ||
// WHEN | ||
const sg = new lib_1.SecurityGroup(stack, 'SG1', { vpc, allowAllOutbound: true }); | ||
sg.addEgressRule(new lib_1.AnyIPv4(), new lib_1.TcpPort(86), 'This does not show up'); | ||
// THEN | ||
assert_1.expect(stack).to(assert_1.haveResource('AWS::EC2::SecurityGroup', { | ||
SecurityGroupEgress: [ | ||
{ | ||
CidrIp: "0.0.0.0/0", | ||
Description: "Allow all outbound traffic by default", | ||
IpProtocol: "-1" | ||
}, | ||
], | ||
somethingConnectable.connections.allowTo(securityGroup, new lib_1.TcpAllPorts(), 'Connect there'); | ||
// THEN: rule to generated security group to connect to imported | ||
assert_1.expect(stack).to(assert_1.haveResource("AWS::EC2::SecurityGroupEgress", { | ||
GroupId: { "Fn::GetAtt": ["SomeSecurityGroupEF219AD6", "GroupId"] }, | ||
IpProtocol: "tcp", | ||
Description: "Connect there", | ||
DestinationSecurityGroupId: "sg-12345", | ||
FromPort: 0, | ||
ToPort: 65535 | ||
})); | ||
// THEN: rule to imported security group to allow connections from generated | ||
assert_1.expect(stack).to(assert_1.haveResource("AWS::EC2::SecurityGroupIngress", { | ||
IpProtocol: "tcp", | ||
Description: "Connect there", | ||
FromPort: 0, | ||
GroupId: "sg-12345", | ||
SourceSecurityGroupId: { "Fn::GetAtt": ["SomeSecurityGroupEF219AD6", "GroupId"] }, | ||
ToPort: 65535 | ||
})); | ||
test.done(); | ||
}, | ||
'security group disallow outbound traffic by default'(test) { | ||
'security groups added to connections after rule still gets rule'(test) { | ||
// GIVEN | ||
const stack = new cdk_1.Stack(); | ||
const vpc = new lib_1.VpcNetwork(stack, 'VPC'); | ||
const sg1 = new lib_1.SecurityGroup(stack, 'SecurityGroup1', { vpc, allowAllOutbound: false }); | ||
const sg2 = new lib_1.SecurityGroup(stack, 'SecurityGroup2', { vpc, allowAllOutbound: false }); | ||
const connections = new lib_1.Connections({ securityGroups: [sg1] }); | ||
// WHEN | ||
new lib_1.SecurityGroup(stack, 'SG1', { vpc, allowAllOutbound: false }); | ||
connections.allowFromAnyIPv4(new lib_1.TcpPort(88)); | ||
connections.addSecurityGroup(sg2); | ||
// THEN | ||
assert_1.expect(stack).to(assert_1.haveResource('AWS::EC2::SecurityGroup', { | ||
SecurityGroupEgress: [ | ||
GroupDescription: "SecurityGroup1", | ||
SecurityGroupIngress: [ | ||
{ | ||
CidrIp: "255.255.255.255/32", | ||
Description: "Disallow all traffic", | ||
FromPort: 252, | ||
IpProtocol: "icmp", | ||
ToPort: 86 | ||
CidrIp: "0.0.0.0/0", | ||
FromPort: 88, | ||
ToPort: 88 | ||
} | ||
], | ||
] | ||
})); | ||
test.done(); | ||
}, | ||
'bogus outbound rule disappears if another rule is added'(test) { | ||
// GIVEN | ||
const stack = new cdk_1.Stack(); | ||
const vpc = new lib_1.VpcNetwork(stack, 'VPC'); | ||
// WHEN | ||
const sg = new lib_1.SecurityGroup(stack, 'SG1', { vpc, allowAllOutbound: false }); | ||
sg.addEgressRule(new lib_1.AnyIPv4(), new lib_1.TcpPort(86), 'This replaces the other one'); | ||
// THEN | ||
assert_1.expect(stack).to(assert_1.haveResource('AWS::EC2::SecurityGroup', { | ||
SecurityGroupEgress: [ | ||
GroupDescription: "SecurityGroup2", | ||
SecurityGroupIngress: [ | ||
{ | ||
CidrIp: "0.0.0.0/0", | ||
Description: "This replaces the other one", | ||
FromPort: 86, | ||
IpProtocol: "tcp", | ||
ToPort: 86 | ||
FromPort: 88, | ||
ToPort: 88 | ||
} | ||
], | ||
] | ||
})); | ||
test.done(); | ||
}, | ||
'all outbound rule cannot be added after creation'(test) { | ||
'when security groups are added to target they also get the rule'(test) { | ||
// GIVEN | ||
const stack = new cdk_1.Stack(); | ||
const vpc = new lib_1.VpcNetwork(stack, 'VPC'); | ||
const sg1 = new lib_1.SecurityGroup(stack, 'SecurityGroup1', { vpc, allowAllOutbound: false }); | ||
const sg2 = new lib_1.SecurityGroup(stack, 'SecurityGroup2', { vpc, allowAllOutbound: false }); | ||
const sg3 = new lib_1.SecurityGroup(stack, 'SecurityGroup3', { vpc, allowAllOutbound: false }); | ||
const connections1 = new lib_1.Connections({ securityGroups: [sg1] }); | ||
const connections2 = new lib_1.Connections({ securityGroups: [sg2] }); | ||
const connectable = new SomethingConnectable(connections2); | ||
// WHEN | ||
const sg = new lib_1.SecurityGroup(stack, 'SG1', { vpc, allowAllOutbound: false }); | ||
test.throws(() => { | ||
sg.addEgressRule(new lib_1.AnyIPv4(), new lib_1.AllTraffic(), 'All traffic'); | ||
}, /Cannot add/); | ||
test.done(); | ||
}, | ||
'peering between two security groups does not recursive infinitely'(test) { | ||
// GIVEN | ||
const stack = new cdk_1.Stack(undefined, 'TestStack', { env: { account: '12345678', region: 'dummy' } }); | ||
const vpc = new lib_1.VpcNetwork(stack, 'VPC'); | ||
const sg1 = new lib_1.SecurityGroup(stack, 'SG1', { vpc }); | ||
const sg2 = new lib_1.SecurityGroup(stack, 'SG2', { vpc }); | ||
const conn1 = new SomethingConnectable(new lib_1.Connections({ securityGroup: sg1 })); | ||
const conn2 = new SomethingConnectable(new lib_1.Connections({ securityGroup: sg2 })); | ||
// WHEN | ||
conn1.connections.allowTo(conn2, new lib_1.TcpPort(80), 'Test'); | ||
connections1.allowTo(connectable, new lib_1.TcpPort(88)); | ||
connections2.addSecurityGroup(sg3); | ||
// THEN | ||
assert_1.expect(stack).to(assert_1.haveResource('AWS::EC2::SecurityGroupIngress', { | ||
GroupId: { "Fn::GetAtt": ["SecurityGroup23BE86BB7", "GroupId"] }, | ||
SourceSecurityGroupId: { "Fn::GetAtt": ["SecurityGroup1F554B36F", "GroupId"] }, | ||
FromPort: 88, | ||
ToPort: 88 | ||
})); | ||
assert_1.expect(stack).to(assert_1.haveResource('AWS::EC2::SecurityGroupIngress', { | ||
GroupId: { "Fn::GetAtt": ["SecurityGroup3E5E374B9", "GroupId"] }, | ||
SourceSecurityGroupId: { "Fn::GetAtt": ["SecurityGroup1F554B36F", "GroupId"] }, | ||
FromPort: 88, | ||
ToPort: 88 | ||
})); | ||
test.done(); | ||
}, | ||
'(imported) SecurityGroup can be used as target of .allowTo()'(test) { | ||
'multiple security groups allows internally between them'(test) { | ||
// GIVEN | ||
const stack = new cdk_1.Stack(); | ||
const vpc = new lib_1.VpcNetwork(stack, 'VPC'); | ||
const sg1 = new lib_1.SecurityGroup(stack, 'SomeSecurityGroup', { vpc, allowAllOutbound: false }); | ||
const somethingConnectable = new SomethingConnectable(new lib_1.Connections({ securityGroup: sg1 })); | ||
const securityGroup = lib_1.SecurityGroupRef.import(stack, 'ImportedSG', { securityGroupId: 'sg-12345' }); | ||
const sg1 = new lib_1.SecurityGroup(stack, 'SecurityGroup1', { vpc, allowAllOutbound: false }); | ||
const sg2 = new lib_1.SecurityGroup(stack, 'SecurityGroup2', { vpc, allowAllOutbound: false }); | ||
const connections = new lib_1.Connections({ securityGroups: [sg1] }); | ||
// WHEN | ||
somethingConnectable.connections.allowTo(securityGroup, new lib_1.TcpAllPorts(), 'Connect there'); | ||
// THEN: rule to generated security group to connect to imported | ||
assert_1.expect(stack).to(assert_1.haveResource("AWS::EC2::SecurityGroupEgress", { | ||
GroupId: { "Fn::GetAtt": ["SomeSecurityGroupEF219AD6", "GroupId"] }, | ||
IpProtocol: "tcp", | ||
Description: "Connect there", | ||
DestinationSecurityGroupId: "sg-12345", | ||
FromPort: 0, | ||
ToPort: 65535 | ||
connections.allowInternally(new lib_1.TcpPort(88)); | ||
connections.addSecurityGroup(sg2); | ||
// THEN | ||
assert_1.expect(stack).to(assert_1.haveResource('AWS::EC2::SecurityGroupIngress', { | ||
GroupId: { "Fn::GetAtt": ["SecurityGroup1F554B36F", "GroupId"] }, | ||
SourceSecurityGroupId: { "Fn::GetAtt": ["SecurityGroup1F554B36F", "GroupId"] }, | ||
FromPort: 88, | ||
ToPort: 88 | ||
})); | ||
// THEN: rule to imported security group to allow connections from generated | ||
assert_1.expect(stack).to(assert_1.haveResource("AWS::EC2::SecurityGroupIngress", { | ||
IpProtocol: "tcp", | ||
Description: "Connect there", | ||
FromPort: 0, | ||
GroupId: "sg-12345", | ||
SourceSecurityGroupId: { "Fn::GetAtt": ["SomeSecurityGroupEF219AD6", "GroupId"] }, | ||
ToPort: 65535 | ||
})); | ||
test.done(); | ||
}, | ||
'peer between all types of peers and port range types'(test) { | ||
// GIVEN | ||
const stack = new cdk_1.Stack(undefined, 'TestStack', { env: { account: '12345678', region: 'dummy' } }); | ||
const vpc = new lib_1.VpcNetwork(stack, 'VPC'); | ||
const sg = new lib_1.SecurityGroup(stack, 'SG', { vpc }); | ||
const peers = [ | ||
new lib_1.SecurityGroup(stack, 'PeerGroup', { vpc }), | ||
new lib_1.AnyIPv4(), | ||
new lib_1.AnyIPv6(), | ||
new lib_1.PrefixList('pl-012345'), | ||
]; | ||
const ports = [ | ||
new lib_1.TcpPort(1234), | ||
new lib_1.TcpPortFromAttribute("tcp-test-port!"), | ||
new lib_1.TcpAllPorts(), | ||
new lib_1.TcpPortRange(80, 90), | ||
new lib_1.UdpPort(2345), | ||
new lib_1.UdpPortFromAttribute("udp-test-port!"), | ||
new lib_1.UdpAllPorts(), | ||
new lib_1.UdpPortRange(85, 95), | ||
new lib_1.IcmpTypeAndCode(5, 1), | ||
new lib_1.IcmpAllTypeCodes(8), | ||
new lib_1.IcmpAllTypesAndCodes(), | ||
new lib_1.IcmpPing(), | ||
new lib_1.AllTraffic() | ||
]; | ||
// WHEN | ||
for (const peer of peers) { | ||
for (const port of ports) { | ||
sg.connections.allowTo(peer, port); | ||
} | ||
} | ||
// THEN -- no crash | ||
test.done(); | ||
} | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC5jb25uZWN0aW9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInRlc3QuY29ubmVjdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDRDQUF1RDtBQUN2RCxzQ0FBcUM7QUFHckMsZ0NBc0JnQjtBQThNaEIsTUFBTSxvQkFBb0I7SUFDeEIsWUFBNEIsV0FBd0I7UUFBeEIsZ0JBQVcsR0FBWCxXQUFXLENBQWE7SUFDcEQsQ0FBQztDQUNGO0FBL01ELGlCQUFTO0lBQ1AsMkRBQTJELENBQUMsSUFBVTtRQUNwRSxRQUFRO1FBQ1IsTUFBTSxLQUFLLEdBQUcsSUFBSSxXQUFLLEVBQUUsQ0FBQztRQUMxQixNQUFNLEdBQUcsR0FBRyxJQUFJLGdCQUFVLENBQUMsS0FBSyxFQUFFLEtBQUssQ0FBQy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c3RhY2spLnRvKGhhdmVSZXNvdXJjZSgnQVdTOjpFQzI6OlNlY3VyaXR5R3JvdXBJbmdyZXNzJywge1xuICAgICAgR3JvdXBJZDogeyBcIkZuOjpHZXRBdHRcIjogWyBcIlNlY3VyaXR5R3JvdXAxRjU1NEIzNkZcIiwgXCJHcm91cElkXCIgXSB9LFxuICAgICAgU291cmNlU2VjdXJpdHlHcm91cElkOiB7IFwiRm46OkdldEF0dFwiOiBbIFwiU2VjdXJpdHlHcm91cDFGNTU0QjM2RlwiLCBcIkdyb3VwSWRcIiBdIH0sXG4gICAgICBGcm9tUG9ydDogODgsXG4gICAgICBUb1BvcnQ6IDg4XG4gICAgfSkpO1xuXG4gICAgdGVzdC5kb25lKCk7XG4gIH0sXG59O1xuXG5jbGFzcyBTb21ldGhpbmdDb25uZWN0YWJsZSBpbXBsZW1lbnRzIElDb25uZWN0YWJsZSB7XG4gIGNvbnN0cnVjdG9yKHB1YmxpYyByZWFkb25seSBjb25uZWN0aW9uczogQ29ubmVjdGlvbnMpIHtcbiAgfVxufVxuIl19 |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2372809
41
14103
292
3
+ Added@aws-cdk/aws-iam@0.15.2(transitive)
+ Added@aws-cdk/cdk@0.15.2(transitive)
+ Added@aws-cdk/cx-api@0.15.2(transitive)
- Removed@aws-cdk/aws-iam@0.14.1(transitive)
- Removed@aws-cdk/cdk@0.14.1(transitive)
- Removed@aws-cdk/cx-api@0.14.1(transitive)
Updated@aws-cdk/aws-iam@^0.15.0
Updated@aws-cdk/cdk@^0.15.0