Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cdk-ec2spot

Package Overview
Dependencies
Maintainers
1
Versions
430
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cdk-ec2spot - npm Package Compare versions

Comparing version 0.0.33 to 0.0.34

78

API.md

@@ -82,2 +82,55 @@ # API Reference

#### createFleet(id, options) <a id="cdk-ec2spot-provider-createfleet"></a>
Create EC2 Spot Fleet.
```ts
createFleet(id: string, options: SpotFleetOptions): CfnSpotFleet
```
* **id** (<code>string</code>) fleet id.
* **options** (<code>[SpotFleetOptions](#cdk-ec2spot-spotfleetoptions)</code>) spot fleet options.
* **instanceProfile** (<code>[CfnInstanceProfile](#aws-cdk-aws-iam-cfninstanceprofile)</code>) *No description* __*Optional*__
* **instanceType** (<code>[InstanceType](#aws-cdk-aws-ec2-instancetype)</code>) *No description* __*Optional*__
* **machineImage** (<code>[IMachineImage](#aws-cdk-aws-ec2-imachineimage)</code>) *No description* __*Optional*__
* **spotOptions** (<code>[SpotOptions](#cdk-ec2spot-spotoptions)</code>) *No description* __*Optional*__
* **userData** (<code>[UserData](#aws-cdk-aws-ec2-userdata)</code>) *No description* __*Optional*__
* **vpc** (<code>[IVpc](#aws-cdk-aws-ec2-ivpc)</code>) The vpc for the AutoScalingGroup.
* **defaultCapacitySize** (<code>number</code>) default capacity size for the Auto Scaling Group. __*Default*__: 1
* **terminateInstancesWithExpiration** (<code>boolean</code>) Whether to terminate the fleet with expiration. __*Default*__: true
* **validFrom** (<code>string</code>) The timestamp of the beginning of the valid duration. __*Default*__: now
* **validUntil** (<code>string</code>) The timestamp of the beginning of the valid duration. __*Default*__: unlimited
* **vpcSubnet** (<code>[SubnetSelection](#aws-cdk-aws-ec2-subnetselection)</code>) VPC subnet selection. __*Default*__: ec2.SubnetType.PRIVATE
__Returns__:
* <code>[CfnSpotFleet](#aws-cdk-aws-ec2-cfnspotfleet)</code>
#### createInstance(id, optons) <a id="cdk-ec2spot-provider-createinstance"></a>
```ts
createInstance(id: string, optons: SpotInstanceProps): SpotInstance
```
* **id** (<code>string</code>) *No description*
* **optons** (<code>[SpotInstanceProps](#cdk-spot-one-spotinstanceprops)</code>) *No description*
* **additionalUserData** (<code>Array<string></code>) Additional commands for user data. __*Default*__: no additional user data
* **assignEip** (<code>boolean</code>) Auto assign a new EIP on this instance if `eipAllocationId` is not defined. __*Default*__: true
* **customAmiId** (<code>string</code>) custom AMI ID. __*Default*__: The latest Amaozn Linux 2 AMI ID
* **defaultInstanceType** (<code>[InstanceType](#aws-cdk-aws-ec2-instancetype)</code>) default EC2 instance type. __*Default*__: t3.large
* **ebsVolumeSize** (<code>number</code>) default EBS volume size for the spot instance. __*Default*__: 60;
* **eipAllocationId** (<code>string</code>) Allocation ID for your existing Elastic IP Address. __*Optional*__
* **instanceInterruptionBehavior** (<code>[InstanceInterruptionBehavior](#cdk-spot-one-instanceinterruptionbehavior)</code>) The behavior when a Spot Instance is interrupted. __*Default*__: InstanceInterruptionBehavior.TERMINATE
* **instanceProfile** (<code>[CfnInstanceProfile](#aws-cdk-aws-iam-cfninstanceprofile)</code>) instance profile for the resource. __*Default*__: create a new one
* **instanceRole** (<code>[IRole](#aws-cdk-aws-iam-irole)</code>) IAM role for the spot instance. __*Optional*__
* **keyName** (<code>string</code>) SSH key name. __*Default*__: no ssh key will be assigned
* **securityGroup** (<code>[SecurityGroup](#aws-cdk-aws-ec2-securitygroup)</code>) Security group for the spot fleet. __*Default*__: allows TCP 22 SSH ingress rule
* **targetCapacity** (<code>number</code>) number of the target capacity. __*Default*__: 1
* **vpc** (<code>[IVpc](#aws-cdk-aws-ec2-ivpc)</code>) VPC for the spot fleet. __*Default*__: new VPC will be created
* **vpcSubnet** (<code>[SubnetSelection](#aws-cdk-aws-ec2-subnetselection)</code>) VPC subnet for the spot fleet. __*Default*__: public subnet
__Returns__:
* <code>[SpotInstance](#cdk-spot-one-spotinstance)</code>
#### createInstanceProfile(id) <a id="cdk-ec2spot-provider-createinstanceprofile"></a>

@@ -115,27 +168,2 @@

#### createSpotFleet(id, options) <a id="cdk-ec2spot-provider-createspotfleet"></a>
Create EC2 Spot Fleet.
```ts
createSpotFleet(id: string, options: SpotFleetOptions): CfnSpotFleet
```
* **id** (<code>string</code>) fleet id.
* **options** (<code>[SpotFleetOptions](#cdk-ec2spot-spotfleetoptions)</code>) spot fleet options.
* **instanceProfile** (<code>[CfnInstanceProfile](#aws-cdk-aws-iam-cfninstanceprofile)</code>) *No description* __*Optional*__
* **instanceType** (<code>[InstanceType](#aws-cdk-aws-ec2-instancetype)</code>) *No description* __*Optional*__
* **machineImage** (<code>[IMachineImage](#aws-cdk-aws-ec2-imachineimage)</code>) *No description* __*Optional*__
* **spotOptions** (<code>[SpotOptions](#cdk-ec2spot-spotoptions)</code>) *No description* __*Optional*__
* **userData** (<code>[UserData](#aws-cdk-aws-ec2-userdata)</code>) *No description* __*Optional*__
* **vpc** (<code>[IVpc](#aws-cdk-aws-ec2-ivpc)</code>) The vpc for the AutoScalingGroup.
* **defaultCapacitySize** (<code>number</code>) default capacity size for the Auto Scaling Group. __*Default*__: 1
* **terminateInstancesWithExpiration** (<code>boolean</code>) Whether to terminate the fleet with expiration. __*Default*__: true
* **validFrom** (<code>string</code>) The timestamp of the beginning of the valid duration. __*Default*__: now
* **validUntil** (<code>string</code>) The timestamp of the beginning of the valid duration. __*Default*__: unlimited
* **vpcSubnet** (<code>[SubnetSelection](#aws-cdk-aws-ec2-subnetselection)</code>) VPC subnet selection. __*Default*__: ec2.SubnetType.PRIVATE
__Returns__:
* <code>[CfnSpotFleet](#aws-cdk-aws-ec2-cfnspotfleet)</code>
#### getOrCreateVpc(scope) <a id="cdk-ec2spot-provider-getorcreatevpc"></a>

@@ -142,0 +170,0 @@

@@ -5,2 +5,9 @@ # Changelog

### [0.0.34](https://github.com/pahud/cdk-ec2spot/compare/v0.0.33...v0.0.34) (2021-02-19)
### Features
* Spot instance support ([#49](https://github.com/pahud/cdk-ec2spot/issues/49)) ([d2f83af](https://github.com/pahud/cdk-ec2spot/commit/d2f83af51585dc46df9385ade3cbe5e30e48b925))
### [0.0.33](https://github.com/pahud/cdk-ec2spot/compare/v0.0.32...v0.0.33) (2021-02-18)

@@ -7,0 +14,0 @@

@@ -5,2 +5,3 @@ import * as autoscaling from '@aws-cdk/aws-autoscaling';

import * as cdk from '@aws-cdk/core';
import * as spotone from 'cdk-spot-one';
/**

@@ -202,3 +203,3 @@ * @stability stable

*/
createSpotFleet(id: string, options: SpotFleetOptions): ec2.CfnSpotFleet;
createFleet(id: string, options: SpotFleetOptions): ec2.CfnSpotFleet;
/**

@@ -212,2 +213,6 @@ * Create AutoScaling Group.

createAutoScalingGroup(id: string, options: AutoScalingGroupOptions): autoscaling.AutoScalingGroup;
/**
* @stability stable
*/
createInstance(id: string, optons: spotone.SpotInstanceProps): spotone.SpotInstance;
}

@@ -10,2 +10,3 @@ "use strict";

const cdk = require("@aws-cdk/core");
const spotone = require("cdk-spot-one");
/**

@@ -130,3 +131,3 @@ * @stability stable

*/
createSpotFleet(id, options) {
createFleet(id, options) {
var _b, _c, _d;

@@ -206,6 +207,12 @@ const lt = this.createLaunchTemplate(id, {

}
/**
* @stability stable
*/
createInstance(id, optons) {
return new spotone.SpotInstance(this, id, optons);
}
}
exports.Provider = Provider;
_a = JSII_RTTI_SYMBOL_1;
Provider[_a] = { fqn: "cdk-ec2spot.Provider", version: "0.0.33" };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSx3REFBd0Q7QUFDeEQsd0NBQXdDO0FBQ3hDLHdDQUF3QztBQUN4QyxxQ0FBcUM7Ozs7QUFFckMsSUFBWSxnQkFHWDtBQUhELFdBQVksZ0JBQWdCO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ICAgICAgICAgICAgICAgICAgXG4gIHJlYWRvbmx5IGRlZmF1bHRDYXBhY2l0eVNpemU/OiBudW1iZXI7XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgU3BvdEZsZWV0T3B0aW9ucyBleHRlbmRzIEF1dG9TY2FsaW5nR3JvdXBPcHRpb25zIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHJlYWRvbmx5IHZwY1N1Ym5ldD86IGVjMi5TdWJuZXRTZWxlY3Rpb247XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICByZWFkb25seSB2YWxpZEZyb20/OiBzdHJpbmc7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICByZWFkb25seSB2YWxpZFVudGlsPzogc3RyaW5nO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHJlYWRvbmx5IHRlcm1pbmF0ZUluc3RhbmNlc1dpdGhFeHBpcmF0aW9uPzogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNsYXNzIFByb3ZpZGVyIGV4dGVuZHMgY2RrLkNvbnN0cnVjdCB7XG4gIHByaXZhdGUgcmVhZG9ubHkgZGVmYXVsdEluc3RhbmNlVHlwZTogZWMyLkluc3RhbmNlVHlwZSA9IG5ldyBlYzIuSW5zdGFuY2VUeXBlKCd0My5sYXJnZScpO1xuICBjb25zdHJ1Y3RvcihzY29wZTogY2RrLkNvbnN0cnVjdCwgaWQ6IHN0cmluZykge1xuICAgIHN1cGVyKHNjb3BlLCBpZCk7XG4g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0aW9ucy51c2VyRGF0YS5yZW5kZXIoKSkgOiB1bmRlZmluZWQsXG4gICAgICAgIGluc3RhbmNlTWFya2V0T3B0aW9uczoge1xuICAgICAgICAgIG1hcmtldFR5cGU6ICdzcG90JyxcbiAgICAgICAgICBzcG90T3B0aW9uczoge1xuICAgICAgICAgICAgYmxvY2tEdXJhdGlvbk1pbnV0ZXM6IG9wdGlvbnMuc3BvdE9wdGlvbnM/LmJsb2NrRHVyYXRpb25NaW51dGVzPy52YWx1ZU9mKCksXG4gICAgICAgICAgICBpbnN0YW5jZUludGVycnVwdGlvbkJlaGF2aW9yOiBvcHRpb25zLnNwb3RPcHRpb25zPy5pbnN0YW5jZUludGVycnVwdGlvbkJlaGF2aW9yPy52YWx1ZU9mKCksXG4gICAgICAgICAgICBtYXhQcmljZTogb3B0aW9ucy5zcG90T3B0aW9ucz8ubWF4UHJpY2UsXG4gICAgICAgICAgICBzcG90SW5zdGFuY2VUeXBlOiBvcHRpb25zLnNwb3RPcHRpb25zPy5zcG90SW5zdGFuY2VUeXBlPy52YWx1ZU9mKCksXG4gICAgICAgICAgfSxcbiAgICAgICAgfSxcbiAgICAgICAgaWFtSW5zdGFuY2VQcm9maWxlOiB7XG4gICAgICAgICAgYXJuOiBpbnN0YW5jZVByb2ZpbGVBcm4sXG4gICAgICAgIH0sXG4gICAgICAgIHRhZ1NwZWNpZmljYXRpb25zOiBbXG4gICAgICAgICAge1xuICAgICAgICAgICAgcmVzb3VyY2VUeXBlOiAnaW5zdGFuY2UnLFxuICAgICAgICAgICAgdGFnczogW1xuICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAga2V5OiAnTmFtZScsXG4gICAgICAgICAgICAgICAgdmFsdWU6IGAke3RoaXMubm9kZS5wYXRofS8ke2lkfWAsXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBdLFxuICAgICAgICAgIH0sXG4gICAgICAgIF0sXG4gICAgICB9LFxuICAgIH0pO1xuICB9XG4gICAgICAgICAgICAg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G9TY2FsaW5nR3JvdXBPcHRpb25zIGV4dGVuZHMgTGF1bmNoVGVtcGxhdGVPcHRpb25zIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcmVhZG9ubHkgdnBjOiBlYzIuSVZwYztcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHJlYWRvbmx5IGRlZmF1bHRDYXBhY2l0eVNpemU/OiBudW1iZXI7XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgU3BvdEZsZWV0T3B0aW9ucyBleHRlbmRzIEF1dG9TY2FsaW5nR3JvdXBPcHRpb25zIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHJlYWRvbmx5IHZwY1N1Ym5ldD86IGVjMi5TdWJuZXRTZWxlY3Rpb247XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICByZWFkb25seSB2YWxpZEZyb20/OiBzdHJpbmc7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICByZWFkb25seSB2YWxpZFVudGlsPzogc3RyaW5nO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHJlYWRvbmx5IHRlcm1pbmF0ZUluc3RhbmNlc1dpdGhFeHBpcmF0aW9uPzogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNsYXNzIFByb3ZpZGVyIGV4dGVuZHMgY2RrLkNvbn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nczogW1xuICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAga2V5OiAnTmFtZScsXG4gICAgICAgICAgICAgICAgdmFsdWU6IGAke3RoaXMubm9kZS5wYXRofS8ke2lkfWAsXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBdLFxuICAgICAgICAgIH0sXG4gICAgICAgIF0sXG4gICAgICB9LFxuICAgIH0pO1xuICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICBwdWJsaWMgY3JlYXRlRmxlZXQoaWQ6IHN0cmluZywgb3B0aW9uczogU3BvdEZsZWV0T3B0aW9ucyk6IGVjMi5DZm5TcG90RmxlZXQge1xuICAgIGNvbnN0IGx0ID0gdGhpcy5jcmVhdGVMYXVuY2hUZW1wbGF0ZShpZCwge1xuICAgICAgaW5zdGFuY2VQcm9maWxlOiBvcHRpb25zLmluc3RhbmNlUHJvZmlsZSxcbiAgICAgIGluc3RhbmNlVHlwZTogb3B0aW9ucy5pbnN0YW5jZVR5cGUsXG4gICAgICBtYWNoaW5lSW1hZ2U6IG9wdGlvbnMubWFjaGluZUltYWdlLFxuICAgICAgc3BvdE9wdGlvbnM6IG9wdGlvbnMuc3BvdE9wdGlvbnMsXG4gICAgICB1c2VyRGF0YTogb3B0aW9ucy51c2VyRGF0YSxcbiAgICB9KTtcblxuICAgIGNvbnN0IHNwb3RGbGVldFJvbGUgPSBuZXcgaWFtLlJvbGUodGhpcywgJ0ZsZWV0Um9sZScsIHtcbiAgICAgIGFzc3VtZWRCeTogbmV3IGlhbS5TZXJ2aWNlUHJpbmNpcGFsKCdzcG90ZmxlZXQuYW1hem9uYXdzLmNvbScpLFxuICAgICAgbWFuYWdlZFBvbGljaWVzOiBbXG4gICAgICAgIGlhbS5NYW5hZ2VkUG9saWN5LmZyb21Bd3NNYW5hZ2VkUG9saWN5TmFtZS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B7XG4gICAgcmV0dXJuIG5ldyBzcG90b25lLlNwb3RJbnN0YW5jZSh0aGlzLCBpZCwgb3B0b25zKTtcbiAgfVxufVxuIl19

@@ -17,2 +17,3 @@ "use strict";

const vpc = provider.getOrCreateVpc(stack);
// create a autoscaling group with spot instances
provider.createAutoScalingGroup('SpotASG', {

@@ -23,3 +24,4 @@ vpc,

});
provider.createSpotFleet('SpotFleet', {
// create a spot fleet
provider.createFleet('SpotFleet', {
vpc,

@@ -29,2 +31,4 @@ defaultCapacitySize: 2,

});
// create single spot instance
provider.createInstance('SpotInstance', { vpc });
this.stack = [stack];

@@ -35,2 +39,2 @@ }

new IntegTesting();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZGVmYXVsdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9pbnRlZy5kZWZhdWx0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLHdDQUF3QztBQUN4QyxxQ0FBcUM7QUFDckMsbUNBQW1DO0FBRW5DLE1BQWEsWUFBWTtJQUd2QjtRQUNFLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO1FBRTFCLE1BQU0sR0FBRyxHQUFHO1lBQ1YsTUFBTSxFQUFFLE9BQU8sQ0FBQyxHQUFHLENBQUMsa0JBQWtCLElBQUksV0FBVztZQUNyRCxPQUFPLEVBQUUsT0FBTyxDQUFDLEdBQUcsQ0FBQyxtQkFBbUIsSUFBSSxjQUFjO1NBQzNELENBQUM7UUFFRixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLGFBQWEsRUFBRSxFQUFFLEdBQUcsRUFBRSxDQUFDLENBQUM7UUFFekQsTUFBTSxRQUFRLEdBQUcsSUFBSSxPQUFPLENBQUMsUUFBUSxDQUFDLEtBQUss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Jywge1xuICAgICAgdnBjLFxuICAgICAgZGVmYXVsdENhcGFjaXR5U2l6ZTogMixcbiAgICAgIGluc3RhbmNlVHlwZTogbmV3IGVjMi5JbnN0YW5jZVR5cGUoJ201LmxhcmdlJyksXG4gICAgfSk7XG5cbiAgICAvLyBjcmVhdGUgYSBzcG90IGZsZWV0XG4gICAgcHJvdmlkZXIuY3JlYXRlRmxlZXQoJ1Nwb3RGbGVldCcsIHtcbiAgICAgIHZwYyxcbiAgICAgIGRlZmF1bHRDYXBhY2l0eVNpemU6IDIsXG4gICAgICBpbnN0YW5jZVR5cGU6IG5ldyBlYzIuSW5zdGFuY2VUeXBlKCd0My5sYXJnZScpLFxuICAgIH0pO1xuXG4gICAgLy8gY3JlYXRlIHNpbmdsZSBzcG90IGluc3RhbmNlXG4gICAgcHJvdmlkZXIuY3JlYXRlSW5zdGFuY2UoJ1Nwb3RJbnN0YW5jZScsIHsgdnBjIH0pO1xuXG4gICAgdGhpcy5zdGFjayA9IFtzdGFja107XG4gIH1cbn1cblxubmV3IEludGVnVGVzdGluZygpO1xuIl19

@@ -49,3 +49,3 @@ {

"json-schema": "^0.3.0",
"projen": "^0.16.5",
"projen": "^0.15.18",
"standard-version": "^9.0.0",

@@ -60,2 +60,3 @@ "ts-jest": "^26.4.4",

"@aws-cdk/core": "^1.73.0",
"cdk-spot-one": "^0.6.156",
"constructs": "^3.2.27"

@@ -67,3 +68,4 @@ },

"@aws-cdk/aws-iam": "^1.73.0",
"@aws-cdk/core": "^1.73.0"
"@aws-cdk/core": "^1.73.0",
"cdk-spot-one": "^0.6.156"
},

@@ -76,3 +78,3 @@ "bundledDependencies": [],

"license": "Apache-2.0",
"version": "0.0.33",
"version": "0.0.34",
"jest": {

@@ -79,0 +81,0 @@ "testMatch": [

@@ -7,3 +7,3 @@ [![NPM version](https://badge.fury.io/js/cdk-ec2spot.svg)](https://badge.fury.io/js/cdk-ec2spot)

CDK construct library that allows you to create EC2 Spot instances with AWS AutoScaling Group or SpotFleet
CDK construct library that allows you to create EC2 Spot instances with `AWS AutoScaling Group`, `Spot Fleet` or just single `Spot Instance`.

@@ -31,7 +31,7 @@ # Sample

In addition to EC2 AutoScaling Group, you may use `createSpotFleet()` to create an EC2 Spot Fleet:
In addition to EC2 AutoScaling Group, you may use `createFleet()` to create an EC2 Spot Fleet:
```ts
provider.createSpotFleet('SpotFleet', {
provider.createFleet('SpotFleet', {
vpc,

@@ -42,1 +42,9 @@ defaultCapacitySize: 2,

```
# Single Spot Instnce
If you just need single spot instance without any autoscaling group or spot fleet, use `createInstance()`:
```ts
provider.createInstance('SpotInstance', { vpc })
```
{
"version": "0.0.33"
"version": "0.0.34"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc