Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
cdk-aws-iotfleetwise
Advanced tools
L2 CDK construct to provision AWS IoT Fleetwise
npm install cdk-aws-iotfleetwise
pip install cdk-aws-iotfleetwise
import {
SignalCatalog,
VehicleModel,
Vehicle,
Campaign,
CanVehicleInterface,
CanVehicleSignal,
SignalCatalogBranch,
TimeBasedCollectionScheme,
} from 'cdk-aws-iotfleetwise';
const signalCatalog = new SignalCatalog(stack, 'SignalCatalog', {
database: tsDatabaseConstruct,
table: tsHeartBeatTableConstruct,
nodes: [
new SignalCatalogBranch({
fullyQualifiedName: 'Vehicle',
}),
new SignalCatalogSensor({
fullyQualifiedName: 'Vehicle.EngineTorque',
dataType: 'DOUBLE',
}),
],
});
const model_a = new VehicleModel(stack, 'ModelA', {
signalCatalog,
name: 'modelA',
description: 'Model A vehicle',
networkInterfaces: [
new CanVehicleInterface({
interfaceId: '1',
name: 'vcan0',
}),
],
signals: [
new CanVehicleSignal({
fullyQualifiedName: 'Vehicle.EngineTorque',
interfaceId: '1',
messageId: 401,
factor: 1.0,
isBigEndian: true,
isSigned: false,
length: 8,
offset: 0.0,
startBit: 0,
}),
],
});
const vin100 = new Vehicle(stack, 'vin100', {
vehicleName: 'vin100',
vehicleModel: model_a,
createIotThing: true,
});
new Campaign(stack, 'Campaign', {
name: 'TimeBasedCampaign',
target: vin100,
collectionScheme: new TimeBasedCollectionScheme(cdk.Duration.seconds(10)),
signals: [new CampaignSignal('Vehicle.EngineTorque')],
});
To deploy a simple end-to-end example you can use the following commands
yarn install
npx projen && npx projen compile
# Define Amazon Timestream as fleetwise storage destination
npx cdk -a lib/integ.full.js deploy -c key_name=mykey
# Define Amazon S3 as fleetwise storage destination
npx cdk -a lib/integ.full.js deploy -c key_name=mykey -c use_s3=true
Where mykey
is an existing keypair name present in your account.
The deploy takes about 15 mins mostly due to compilation of the IoT FleetWise agent in the
EC2 instance that simulate the vehicle. Once deploy is finshed, data will start to show up in your Timestream table.
Warning: this construct should be considered at alpha stage and is not feature complete.
See CONTRIBUTING for more information.
This code is licensed under the MIT-0 License. See the LICENSE file.
FAQs
L2 CDK construct to provision AWS IoT Fleetwise
We found that cdk-aws-iotfleetwise demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.