@condensetech/cdk-lib
Advanced tools
Comparing version 0.0.21 to 0.0.22
import * as ec2 from 'aws-cdk-lib/aws-ec2'; | ||
import * as elb from 'aws-cdk-lib/aws-elasticloadbalancingv2'; | ||
import { Construct } from 'constructs'; | ||
import { HostedZoneAttributes, IEntrypoint } from '../interfaces'; | ||
import { HostedZoneAttributes, IEntrypoint, INetworking } from '../interfaces'; | ||
export interface EntrypointProps { | ||
vpc: ec2.IVpc; | ||
hostedZoneProps: HostedZoneAttributes; | ||
domainName: string; | ||
wildcardCertificate?: boolean; | ||
readonly networking: INetworking; | ||
readonly entrypointName?: string; | ||
readonly hostedZoneProps: HostedZoneAttributes; | ||
readonly domainName: string; | ||
readonly wildcardCertificate?: boolean; | ||
readonly entrypointSecurityGroupName?: string; | ||
} | ||
@@ -11,0 +13,0 @@ export declare class Entrypoint extends Construct implements IEntrypoint { |
@@ -24,9 +24,12 @@ "use strict"; | ||
this.securityGroup = new ec2.SecurityGroup(this, 'SecurityGroup', { | ||
vpc: props.vpc, | ||
vpc: props.networking.vpc, | ||
allowAllOutbound: true, | ||
securityGroupName: props.entrypointSecurityGroupName ?? | ||
(props.entrypointName ? `${props.entrypointName}-sg` : undefined), | ||
}); | ||
this.alb = new elb.ApplicationLoadBalancer(this, 'Alb', { | ||
vpc: props.vpc, | ||
vpc: props.networking.vpc, | ||
internetFacing: true, | ||
securityGroup: this.securityGroup, | ||
loadBalancerName: props.entrypointName, | ||
}); | ||
@@ -62,2 +65,2 @@ this.alb.addListener('HTTP', { | ||
exports.Entrypoint = Entrypoint; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW50cnlwb2ludC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9jb25zdHJ1Y3RzL2VudHJ5cG9pbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsK0VBQXdGO0FBQ3hGLDJDQUEyQztB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2 +8,3 @@ import { Construct } from 'constructs'; | ||
readonly natGateways?: number; | ||
readonly bastionName?: string; | ||
readonly bastionHostEnabled?: boolean; | ||
@@ -10,0 +11,0 @@ readonly bastionHostAmi?: ec2.IMachineImage; |
@@ -15,2 +15,3 @@ "use strict"; | ||
vpc: this.vpc, | ||
instanceName: props.bastionName ?? (props.vpcName ? `${props.vpcName}-bastion` : undefined), | ||
machineImage: props.bastionHostAmi ?? | ||
@@ -69,2 +70,2 @@ ec2.MachineImage.latestAmazonLinux2023({ | ||
exports.Networking = Networking; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmV0d29ya2luZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9jb25zdHJ1Y3RzL25ldHdvcmtpbmcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsMkNBQXVDO0FBQ3ZDLG1DQUFtQztBQUNuQywyQ0FBMkM7QUFhM0MsTUFBYSxVQUFXLFNBQVEsc0JBQVM7SUFLdkMsWUFBWSxLQUFnQixFQUFFLEVBQVUsRUFBRSxLQUFzQjtRQUM5RCxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBRWpCLElBQUksQ0FBQyxpQkFBaUIsR0FBRyxLQUFLLENBQUMsV0FBVyxLQUFLLENBQUMsQ0FBQztRQUNqRCxJQUFJLENBQUMsR0FBRyxHQUFHLElBQUksQ0FBQyxRQUFRLENBQUMsS0FBSyxDQUFDLENBQUM7UUFDaEMsSUFBSSxLQUFLLENBQUMsa0JBQWtCLEVBQUU7WUFDNUIsSUFBSSxDQUFDLFdBQVcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxnQkFBZ0IsQ0FBQyxLQUFLLEVBQUUsU0FBUyxFQUFFO2dCQUM1RCxHQUFHLEVBQUUsSUFBSSxDQUFDLEdBQUc7Z0JBQ2IsWUFBWSxFQUNW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ge1xuICAgICAgaXBBZGRyZXNzZXM6IHByb3BzLmlwQWRkcmVzc2VzLFxuICAgICAgdnBjTmFtZTogcHJvcHMudnBjTmFtZSxcbiAgICAgIHN1Ym5ldENvbmZpZ3VyYXRpb24sXG4gICAgICBuYXRHYXRld2F5czogcHJvcHMubmF0R2F0ZXdheXMsXG4gICAgICBtYXhBenM6IHByb3BzLm1heEF6cyxcbiAgICB9KTtcbiAgfVxufVxuIl19 |
{ | ||
"name": "@condensetech/cdk-lib", | ||
"version": "0.0.21", | ||
"version": "0.0.22", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
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
71368
627