Research
Security News
Malicious PyPI Package ‘pycord-self’ Targets Discord Developers with Token Theft and Backdoor Exploit
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
aws-evidently-l2
Advanced tools
This is a fork of https://github.com/aws/aws-cdk-rfcs/issues/428 implemention (https://github.com/ljuti/aws-cdk/tree/construct/aws-evidently/packages/%40aws-cdk/aws-evidently)
This is a fork of https://github.com/aws/aws-cdk-rfcs/issues/428 implemention (https://github.com/ljuti/aws-cdk/tree/construct/aws-evidently/packages/%40aws-cdk/aws-evidently)
A Project is an AWS Evidently project where you group and track features, launches and experiments.
A Feature is an AWS Evidently feature, a set of behaviour in your application that you wish to launch or test.
A Launch is an AWS Evidently launch which you use to schedule or incrementally release a feature.
An Experiment is an AWS Evidently experiment that helps you make feature design decisions based on evidence and data.
In an AWS News Blog article, author @sebsto demonstrates how to use AWS Evidently with a web application example.
Let's see how we would use the construct library to replace AWS Console tasks of the example.
import * as evidently from 'aws-cdk-lib/aws_evidently';
const project = new evidently.Project(this, 'GuestbookWebApp', {
projectName: 'AWSNewsBlog',
description: 'AWSNewsBlogDemo',
});
const editable = new evidently.Variation({
variationName: 'editable',
valueType: VariationObjectValueType.BOOLEAN,
value: true,
});
const readonly = new evidently.Variation({
variationName: 'readonly',
valueType: VariationObjectValueType.BOOLEAN,
value: false,
});
const feature = new evidently.Feature(this, 'EditableGuestbook', {
project: project,
featureName: 'Editing',
variations: [
editable,
readonly,
],
entityOverrides: [
new EntityOverride({
entityId: 'seb',
variation: editable,
});
],
});
const editableGroup = new evidently.LaunchGroup({
groupName: 'Editable',
feature: feature,
variation: editable,
});
const readonlyGroup = new evidently.LaunchGroup({
groupName: 'Readonly',
feature: feature,
variation: readonly,
});
const launchConfiguration = new StepConfig({
groupsToWeight: [
{
group: editableGroup,
splitWeight: SplitWeight.50_PCT,
}
],
startTime: <timestamp>,
});
const launch = new evidently.Launch(this, 'EditableGuestbook', {
launchName: 'EditableGuestbook',
description: 'Launch the editable guest book feature',
groups: [
editableGroup,
readonlyGroup,
],
scheduledSplitsConfig: [launchConfiguration],
});
const goal = new evidently.MetricGoal({
desiredChange: MetricGoalDesiredChange.INCREASE,
entityIdKey: 'user',
eventPattern: 'eventbridge-pattern',
metricName: 'Edits',
valueKey: 'edits',
});
const treatmentOne = new evidently.Treatment({
feature: feature,
treatmentName: 'editing',
variation: editable,
});
const treatmentTwo = new evidently.Treatment({
feature: feature,
treatmentName: 'readonly',
variation: readonly,
});
const config = new evidently.OnlineAbConfig({
controlTreatmentName: treatmentOne.treatmentName,
treatmentWeights: [
new evidently.TreatmentToWeight({
splitWeight: 20000,
treatment: treatmentOne,
}),
new evidently.TreatmentToWeight({
splitWeight: 80000,
treatment: treatmentTwo,
}),
],
});
const experiment = new evidently.Experiment({
project: project,
experimentName: 'EditableGuestBook',
metricGoals: [goal],
onlineAbConfig: config,
treatments: [
treatmentOne,
treatmentTwo,
],
});
BatchEvaluateFeatureCommand
and EvaluateFeatureCommand
to get the feature flags values. For instance in your cdk code :
this.unauthenticatedRole.attachInlinePolicy(
new Policy(this, "EvidentlyPolicy", {
statements: [
new PolicyStatement({
actions: [
"evidently:EvaluateFeature",
"evidently:BatchEvaluateFeature",
],
resources: [
`arn:aws:evidently:${Stack.of(this).region}:${Stack.of(this).account}:project/${this.featureFlagStore.project.projectName}/feature/*`,
],
effect: Effect.ALLOW,
}),
],
})
);
```
@ljuti
FAQs
This is a fork of https://github.com/aws/aws-cdk-rfcs/issues/428 implemention (https://github.com/ljuti/aws-cdk/tree/construct/aws-evidently/packages/%40aws-cdk/aws-evidently)
The npm package aws-evidently-l2 receives a total of 242 weekly downloads. As such, aws-evidently-l2 popularity was classified as not popular.
We found that aws-evidently-l2 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.
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.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.