-
Notifications
You must be signed in to change notification settings - Fork 4.5k
(synthetics): add Runtime property for syn-python-selenium-1.0 to create synthetics canary #15138
Copy link
Copy link
Closed
Labels
@aws-cdk/aws-syntheticsRelated to Amazon CloudWatch SyntheticsRelated to Amazon CloudWatch Syntheticseffort/mediumMedium work item – several days of effortMedium work item – several days of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p1
Description
I want to use CDK to create synthetic canary in python and selenium. However, when I try to write some code, i found the there is no matching runtime property.
Not found syn-python-selenium-1.0 from the API docs: - https://docs.aws.amazon.com/cdk/api/latest/python/aws_cdk.aws_synthetics/Runtime.html - https://docs.aws.amazon.com/cdk/api/latest/typescript/api/aws-synthetics/runtime.html#aws_synthetics_Runtime
Is there anyway I can create this type canary by CDK?
Use Case
const canary = new synthetics.Canary(this, 'MyCanary', {
schedule: synthetics.Schedule.rate(Duration.minutes(5)),
test: Test.custom({
// code: synthetics.Code.fromAsset(path.join(__dirname, 'lambda')),
code: synthetics.Code.fromInline(
fs
.readFileSync(path.join(__dirname, '../../lambda/app.py'))
.toString()
),
handler: 'index.handler',
}),
runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_3_1,
});
The synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_3_1 in above code is for NodeJS and Puppeteer
Proposed Solution
Other
- 👋 I may be able to implement this feature request
-
⚠️ This feature might incur a breaking change
This is a 🚀 Feature Request
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-syntheticsRelated to Amazon CloudWatch SyntheticsRelated to Amazon CloudWatch Syntheticseffort/mediumMedium work item – several days of effortMedium work item – several days of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p1