Skip to content

(synthetics): add Runtime property for syn-python-selenium-1.0 to create synthetics canary #15138

@zhangyuwanzi

Description

@zhangyuwanzi

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

Metadata

Metadata

Assignees

Labels

@aws-cdk/aws-syntheticsRelated to Amazon CloudWatch Syntheticseffort/mediumMedium work item – several days of effortfeature-requestA feature should be added or improved.p1

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions