Saravanan666/pypi-org huggingface dataset:
Package: cdk-amazon-chime-resources
cdk-amazon-chime-resourcesAn AWS Cloud Development Kit (AWS CDK) construct library that allows you to provision Amazon Chime resources with npm and pypi.BackgroundAmazon Chime resources (Amazon Chime Messaging and Amazon Chime PSTN resources) are not natively available in AWS CloudFormation or AWS CDK. Therefore, in order to create these resources with AWS CDK, an AWS Lambda backed custom resource must be used. In an effort to simplify that process, this AWS CDK construct has been created. This AWS CDK construct will create a custom resource and associated Lambda and expose constructs that can be used to create corresponding resources. This construct includes resources for both Amazon Chime Messaging and Amazon Chime PSTN.ResourcesAmazon Chime SDK PSTN ResourcesAmazon Chime SDK Messaging ResourcesAmazon Chime SDK Media Insights ResourcesInstallingTo add to your AWS CDK package.json file:yarn add cdk-amazon-chime-resourcesVersion 3 UpgradeVersion 3.0 is a potentially breaking change that involves multiple upgrades and changes. Version 3.0 revises the deployment to streamline and make more efficient the multiple configurations. This should result in an increased speed of deployment. All namespaces were updated to the currentchime-sdk-voice,chime-sdk-messaging,chime-sdk-identity, orchime-sdk-media-pipelinesnamespace. Along with these changes, IAM policies were reduced where possible. If you encounter issues, please open an Issue.Potential Breaking Change with Streaming Messaging DataAs part of the namespace change, this has been updated:constappInstance=newMessagingAppInstance(this,'appInstance',{name:'MessagingAppInstanceExample',});appInstance.streaming([{dataType:MessagingDataType.CHANNEL,resourceArn:kinesisStream.streamArn,},]);Not Supported YetThis is a work in progress.Features that are not supported yet:Amazon Chime Voice Connector GroupsAmazon Chime Voice Connector Emergency CallingUpdates to created resourcesContributingSeeCONTRIBUTINGfor more information.LicenseThis project is licensed under the Apache-2.0 License.
Package: cdk-apex-cname
CDK Apex Cname - Route53A CDK utility construct to allowing setting an domain apex (in Route53) to resolve to a cname record of a resource
not in Route 53.UsageTypescriptFirst install the packagenpm install cdk-apex-cnameThen you can use the Apex CNAME in your code:# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826fromcdk_apex_cnameimportCdkApexCnameCdkApexCname(self,"CdkApexCname",apex_name="apex.com",record_name="cname.example.com",hosted_zone_id="ZONE1234",apex_cname_rule_cron="cron(0 * ? * * *)")
Package: cdk-apisix
cdk-apisixCDK construct library to generate serverlessApache APISIXworkload on AWS Fargatesample# Example automatically generated from non-compiling source. May contain errors.fromcdk_apisiximportApisix# create a standard apisix serviceapisix=Apisix(stack,"apisix-demo")# create a sample webservice with apisix in the same Amazon ECS clusterapisix.create_web_service("flask",environment={"PLATFORM":"Apache APISIX on AWS Fargate"},image=ContainerImage.from_registry("public.ecr.aws/pahudnet/flask-docker-sample"))deploy with required context variablescdkdeploy\-cADMIN_KEY_ADMIN=***********\-cADMIN_KEY_VIEWER=***********\-cDASHBOARD_ADMIN_PASSWORD=***********\-cDASHBOARD_USER_PASSWORD=***********custom container image from local assets# Example automatically generated from non-compiling source. May contain errors.Apisix(stack,"apisix-demo",apisix_container=ContainerImage.from_asset(path.join(__dirname,"../apisix_container")),dashboard_container=ContainerImage.from_asset(path.join(__dirname,"../apisix_dashboard")))
Package: cdk-athena
CDK Athena WorkGroupAWS CDKL3 construct for managing AthenaWorkGroupsand named queries.Because I couldn't get@aws-cdk/aws-athena.CfnWorkGroupto work and@aws-cdk/custom-resources.AwsCustomResourcehas no support for tags.InstallationThis package has peer dependencies, which need to be installed along in the expected version.For TypeScript/NodeJS, add these to yourdependenciesinpackage.json. For Python, add these to yourrequirements.txt:cdk-ec2-key-pairaws-cdk-lib (^2.0.0)constructs (^10.0.0)CDK compatibilityVersion 3.x is compatible with the CDK v2.Version 2.x is compatible with the CDK v1. There won't be regular updates for this.Usageconstworkgroup=newWorkGroup(this,'WorkGroup',{name:'TheName',//requireddesc:'Some description',publishCloudWatchMetricsEnabled:true,enforceWorkGroupConfiguration:true,requesterPaysEnabled:true,bytesScannedCutoffPerQuery:11000000,resultConfiguration:{outputLocation:`s3://some-bucket/prefix`,encryptionConfiguration:{encryptionOption:EncryptionOption.SSE_S3,},},});constquery=newNamedQuery(this,'a-query',{name:'A Test Query',database:'audit',desc:'This is the description',queryString:`SELECTcount(*)ASassumed,split(useridentity.principalid,':')[2]ASuser,resources[1].arnASroleFROMcloudtrail_logsWHEREeventname='AssumeRole'ANDuseridentity.principalidisNOTNULLANDuseridentity.principalidLIKE'%@%'GROUPBYsplit(useridentity.principalid,':')[2],resources[1].arn`,workGroup:workgroup,});cdk.Tag.add(workgroup,'HelloTag','ok');newcdk.CfnOutput(this,'WorkGroupArn',{value:workgroup.arn,});newcdk.CfnOutput(this,'WorkGroupName',{value:workgroup.name,});newcdk.CfnOutput(this,'QueryId',{value:query.id,});
Package: cdk-athena-workgroup
CDK Athena WorkGroupAWS CDKL3 construct for managingAthena WorkGroups.Because I couldn't get@aws-cdk/aws-athena.CfnWorkGroupto work and@aws-cdk/custom-resources.AwsCustomResourcehas no support for tags.# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826wg=WorkGroup(self,"WorkGroup",name="TheName",# requireddesc="Some description",publish_cloud_watch_metrics_enabled=True,enforce_work_group_configuration=True,requester_pays_enabled=True,bytes_scanned_cutoff_per_query=11000000,result_configuration={"output_location":"s3://some-bucket/prefix","encryption_configuration":{"encryption_option":EncryptionOption.SSE_S3}})cdk.Tag.add(wg,"HelloTag","ok")cdk.CfnOutput(self,"WorkGroupArn",value=wg.arn)cdk.CfnOutput(self,"WorkGroupName",value=wg.name)
Package: cdk-aws-discord-notifiers
AWS CDK Discord Notifier ConstructsThis is a CDK construct library the vends constructs used to notify via discord about various resources and services.ConstructsThe following constructs are available:MonthlyCostNotifier- This construct will notify a discord webhook with a formatted embed of the monthly billing for the account.TrueNasAlertNotifier- Creates resources to ingest a TrueNAS SNS alert by sending it to a lambda where it is parsed and sent to a discord webhook.Available PackagesThis provider is built for the following languages:Javascript/TypescriptPythonC#Details on how to find these packages are below and onConstructHubNPMJavascript/Typescript package is available on NPM.The npm package is viewable athttps://www.npmjs.com/package/@awlsring/cdk-aws-discord-notifiersnpminstall@awlsring/cdk-aws-discord-notifiersPyPiPython package is available on PyPi.The pypi package is viewable athttps://pypi.org/project/cdk-aws-discord-notifiers/pipinstallcdk-aws-discord-notifiersNugetC# package is available on Nuget.The nuget package is viewable athttps://www.nuget.org/packages/awlsring.CdkAwsDiscordNotifiers/dotnetaddpackageawlsring.CdkAwsDiscordNotifiers
Package: cdk-aws-ec2-efs
EC2 with EFS AWS CDK constructThis Construct provides an easy way to mount an EFS on EC2 in AWS CDK.It will inject mount commands as user data script to EC2.
And the EFS will be mounted after initializing.InstallationJavaScript & TypeScriptnpmicdk-aws-ec2-efsPythonpipinstallcdk-aws-ec2-efsUsageCreate an AWS CDK project, in your application stack createEC2andEFSresources.
Note EC2 and EFS must be in the same VPC so EC2 can reach EFS.
Then use the construct to mount EFS to EC2:constfileSystem=newcdk.aws_efs.FileSystem(this,"fileSystem",{...});constec2Instance=newec2.Instance(this,"ec2-instance",{...});newEc2WithEfs(this,"EfsMount",{instance:ec2Instance,fileSystem:fileSystem,configureConnection:true,});In the above example we passconfigureConnectionastrue,
This tell construct to take care of adding rules to EFS security groups to enable
EC2 access.Refer toAPI.mdfor full documentation.
Package: cdk-aws-iotfleetwise
cdk-aws-iotfleetwiseL2 CDK construct to provision AWS IoT FleetwiseInstallTypescriptnpminstallcdk-aws-iotfleetwiseAPI ReferencePythonpipinstallcdk-aws-iotfleetwiseAPI ReferenceSampleimport{SignalCatalog,VehicleModel,Vehicle,Campaign,CanVehicleInterface,CanVehicleSignal,SignalCatalogBranch,TimeBasedCollectionScheme,}from'cdk-aws-iotfleetwise';constsignalCatalog=newSignalCatalog(stack,'SignalCatalog',{database:tsDatabaseConstruct,table:tsHeartBeatTableConstruct,nodes:[newSignalCatalogBranch({fullyQualifiedName:'Vehicle',}),newSignalCatalogSensor({fullyQualifiedName:'Vehicle.EngineTorque',dataType:'DOUBLE',}),],});constmodel_a=newVehicleModel(stack,'ModelA',{signalCatalog,name:'modelA',description:'Model A vehicle',networkInterfaces:[newCanVehicleInterface({interfaceId:'1',name:'vcan0',}),],signals:[newCanVehicleSignal({fullyQualifiedName:'Vehicle.EngineTorque',interfaceId:'1',messageId:401,factor:1.0,isBigEndian:true,isSigned:false,length:8,offset:0.0,startBit:0,}),],});constvin100=newVehicle(stack,'vin100',{vehicleName:'vin100',vehicleModel:model_a,createIotThing:true,});newCampaign(stack,'Campaign',{name:'TimeBasedCampaign',target:vin100,collectionScheme:newTimeBasedCollectionScheme(cdk.Duration.seconds(10)),signals:[newCampaignSignal('Vehicle.EngineTorque')],});Getting startedTo deploy a simple end-to-end example you can use the following commandsyarninstall
npxprojen&&npxprojencompile# Define Amazon Timestream as fleetwise storage destinationnpxcdk-alib/integ.full.jsdeploy-ckey_name=mykey# Define Amazon S3 as fleetwise storage destinationnpxcdk-alib/integ.full.jsdeploy-ckey_name=mykey-cuse_s3=trueWheremykeyis 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.TODOWarning: this construct should be considered at alpha stage and is not feature complete.Implement updates for all the custom resourcesConditional campaignsSecuritySeeCONTRIBUTINGfor more
information.LicenseThis code is licensed under the MIT-0 License. See the LICENSE file.
Package: cdk-backup-plan
CDK Backup PlanProvides an easy to use reusable CDK construct to createBackup PlansusingAWS Backups. It allows to indicate how frequently and what resources to backup.NOTE:More details on all the available arguments can be foundhereInstallNPM install:npminstallcdk-backup-planPyPi install:pipinstallcdk-backup-planUsage//...import{Backup}from"cdk-backup-plan";//...constvpc=newec2.Vpc(stack,"TestVPC");constengine=rds.DatabaseInstanceEngine.postgres({version:rds.PostgresEngineVersion.VER_12_3,});//createrdsDBconstdb=newrds.DatabaseInstance(stack,"TestInstance",{engine,vpc,credentials:rds.Credentials.fromGeneratedSecret("postgres"),});//createabackupplanfor`db`newBackup(stack,"TestBk",{backupPlanName:"TestPkPlan",backupRateHour:3,//backupevery3hoursbackupCompletionWindow:cdk.Duration.hours(2),//backupshouldtakeupto2hoursresources:[bk.BackupResource.fromRdsDatabaseInstance(db)],});//...Python usage:# ...fromcdk_backup_planimportBackup# ...vpc=ec2.Vpc(self,"TestVPC")engine=rds.DatabaseInstanceEngine.postgres(version=rds.PostgresEngineVersion.VER_12_3,)db=rds.DatabaseInstance(self,"TestInstance",engine=engine,vpc=vpc,credentials=rds.Credentials.from_generated_secret("postgres"),)Backup(self,"TestBk",backup_plan_name="TestPkPlan",backup_rate_hour=3,backup_completion_window=Duration.hours(2),resources=[bk.BackupResource.from_rds_database_instance(db)],)# ...NOTE:Taggingand/orARNcan be used to reference resources not directly available in thestatic methods section.
Package: cdk-bootstrapless-synthesizer
cdk-bootstrapless-synthesizerA bootstrapless stack synthesizer that is designated to generate templates that can be directly used by AWS CloudFormation.Please use ^1.0.0 for cdk version 1.x.x, use ^2.0.0 for cdk version 2.x.xUsageimport{BootstraplessStackSynthesizer}from'cdk-bootstrapless-synthesizer';main.tsconstapp=newApp();newMyStack(app,'my-stack-dev',{synthesizer:newBootstraplessStackSynthesizer({templateBucketName:'cfn-template-bucket',fileAssetBucketName:'file-asset-bucket-${AWS::Region}',fileAssetRegionSet:['us-west-1','us-west-2'],fileAssetPrefix:'file-asset-prefix/latest/',imageAssetRepositoryName:'your-ecr-repo-name',imageAssetAccountId:'1234567890',imageAssetTagPrefix:'latest-',imageAssetRegionSet:['us-west-1','us-west-2'],}),});//Orbyenvironmentvariablesenv.BSS_TEMPLATE_BUCKET_NAME='cfn-template-bucket';env.BSS_FILE_ASSET_BUCKET_NAME='file-asset-bucket-\${AWS::Region}';env.BSS_FILE_ASSET_REGION_SET='us-west-1,us-west-2';env.BSS_FILE_ASSET_PREFIX='file-asset-prefix/latest/';env.BSS_IMAGE_ASSET_REPOSITORY_NAME='your-ecr-repo-name';env.BSS_IMAGE_ASSET_ACCOUNT_ID='1234567890';env.BSS_IMAGE_ASSET_TAG_PREFIX='latest-';env.BSS_IMAGE_ASSET_REGION_SET='us-west-1,us-west-2';newMyStack(app,'my-stack-dev2',{synthesizer:newBootstraplessStackSynthesizer(),});//useAspecttogranttheroletopullECRrepositoryfromaccountBSS_IMAGE_ASSET_ACCOUNT_IDmain.tsSynth AWS CloudFormation templates, assets and upload them$cdksynth
$npxcdk-assetspublish-pcdk.out/my-stack-dev.assets.json-vLimitationsWhen usingBSS_IMAGE_ASSET_ACCOUNT_IDto push ECR repository to shared account, you need useAspectto grant the role with policy to pull the repository from cross account. Or using the followingWithCrossAccounttechniques.Currently only below scenarios are supported,ECSSageMaker training job integrated with Step FunctionsAWS BatchAWS LambdaFor other scenarios, the feature request or pull request are welcome.functionOverrideRepositoryAccount(scope:Construct,id:string,repo:IRepository):IRepository{classImportextendsRepositoryBase{publicrepositoryName=repo.repositoryName;publicrepositoryArn=Repository.arnForLocalRepository(repo.repositoryName,scope,env.BSS_IMAGE_ASSET_ACCOUNT_ID);publicaddToResourcePolicy(_statement:iam.PolicyStatement):iam.AddToResourcePolicyResult{//droppedreturn{statementAdded:false};}}returnnewImport(scope,id);}functionWithCrossAccount(image:DockerImageAsset):DockerImageAsset{image.repository=OverrideRepositoryAccount(image,'CrossAccountRepo',image.repository);returnimage;}exportclassSampleStackextendsStack{constructor(scope:Construct,id:string,props:StackProps={}){super(scope,id,props);constimage=WithCrossAccount(newDockerImageAsset(this,'MyBuildImage',{directory:path.join(__dirname,'../docker'),}));newCfnOutput(this,'output',{value:image.imageUri});consttaskDefinition=newecs.FargateTaskDefinition(this,'TaskDef');taskDefinition.addContainer('DefaultContainer',{image:ecs.ContainerImage.fromDockerImageAsset(image),memoryLimitMiB:512,});fromAsset(this,'stepfunctions',{directory:path.join(__dirname,'../docker'),});}}main.tsSample ProjectSeeSample ProjectAPI ReferenceSeeAPI Referencefor API details.
Package: cdk-bucket-deployment-expirator
CDK Bucket Deployment ExpiratorWhy This PackageI've been having issues with my React deployments to AWS S3 while using Cloudfront due to browsers caching and attempting to load chunks that were unavailable after usingCDK Bucket Deployment.I had been usingprune: trueto clean up the bucket and this was causing all previous chunks to be deleted. However, the reality is we want to support N number of older chunks, just in case, and provide a mechanism for alerting the user that a new version is available (not part of this construct).Must Be Used With CDK Bucket Deployment# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826fromaws_cdk.aws_s3importBucketfromaws_cdk.aws_s3_deploymentimportBucketDeployment,Sourcebucket=Bucket(self,"SourceBucket")now=Date().get_time()bucket_deployment=BucketDeployment(self,"deploy-spa",sources=[Source.asset("path/to/assets")],destination_bucket=bucket,metadata=UserDefinedObjectMetadata(deployed=now.to_string()),prune=False)BucketDeploymentExpirator(self,"expirator",bucket_deployment=bucket_deployment,# need this to add cfn depends onsource_bucket=bucket)VersioningI willattemptto align the major and minor version of this package with [AWS CDK], but always check the release descriptions for compatibility.This currently supportsReferencesCDK Bucket Deployment
Package: cdk-budget-notifier
AWS Budget NotifierSetup a AWS Budget notification using AWS Cloud Development Kit (CDK).
The construct supports notifying tousers via e-mail. Up to 10 e-mail addresses are supportedan SNS topic
The SNS topic needs to exist and publishing to the topic needs to be allowed.PropertiesAPI.mdExample usagesNotification on breaching forecasted costThis example is handy for keeping control over your private AWS Bill.
For myself I aim to not spent more than 10 Euro / 10 USD per month and this alarm
reminds me.constapp=newcdk.App();conststack=newStack(app,"BudgetNotifierStack");//DefinetheSNStopicandsetuptheresourcepolicyconsttopic=newTopic(stack,"topic");conststatement=newPolicyStatement({effect:Effect.ALLOW,principals:[newServicePrincipal("budgets.amazonaws.com")],actions:["SNS:Publish"],sid:"Allow budget to publish to SNS"});topic.addToResourcePolicy(statement);//SetupthebudgetnotifierandpasstheARNoftheSNStopicnewBudgetNotifier(stack,"notifier",{topicArn:topic.topicArn,//Filterontheavailabilityzone`eu-central-1`availabilityZones:["eu-central-1"],costCenter:"myCostCenter",//Limitandunitdefiningthebudgetlimitlimit:10,unit:"USD",//Whenbreachingthethresholdof85%ofthe10USDnotificationswillbesendout.threshold:85,notificationType:NotificationType.FORECASTED,});Notification via e-MailAs alternative to the notification via SNS you can specify a list of e-mail
recipients.constapp=newcdk.App();conststack=newStack(app,"BudgetNotifierStack");newBudgetNotifier(stack,'notifier',{recipients:['john.doe@foo.bar'],//Filterontheavailabilityzone`eu-central-1`availabilityZones:['eu-central-1'],costCenter:'MyCostCenter',//Limitandunitdefiningthebudgetlimitlimit:10,unit:'USD',//Whenbreachingthethresholdof85%ofthe10USDnotificationswillbesendout.threshold:85,notificationType:NotificationType.FORECASTED,});ContributionsdedominicisfaPhilip M. GollucciLinksAWS Cloud Development Kit (CDK)Cost Explorer filters
Package: cdk-budibase
Welcome tocdk-budibaseBudiBaseis open source! is Build apps, forms, and workflows that perfectly fit your business - so you can move forward, faster. Best of all.
Use AWS CDK to create budibase server.
data store in efsbase resource:vpc, ecs cluster, ecs service, efsref:https://medium.com/devops-techable/learn-how-to-use-the-efs-mount-point-in-your-ecs-cluster-running-fargate-with-aws-cdk-e5c9df435c8bArchitectureDeploy cdk-budibase via examplecode.# example cdk app diff.npxaws-cdk@latestdiff--app='npx ts-node src/integ.api.ts'# example cdk app deploy.npxaws-cdk@latestdeploy--app='npx ts-node src/integ.api.ts'# example cdk app destroy (in case you miss remove efs, you need to remove efs, and log group manually on aws console or via aws cli, sdk etc...).npxaws-cdk@latestdestroy--app='npx ts-node src/integ.api.ts'Use Constructs Library in CDK APP.import{BudiBaseBaseResource}from'cdk-budibase';constapp=newApp();constenv={account:process.env.CDK_DEFAULT_ACCOUNT,region:process.env.CDK_DEFAULT_REGION,};conststack=newStack(app,'MyStack',{env});newBudiBaseBaseResource(stack,'BudiBaseBaseResource');EFSBudiBase
Package: cdk-certbot-dns-route53
cdk-certbot-dns-route53cdk-certbot-dns-route53is a CDK construct library that allows you to createCertbotLambda Function on AWS with CDK, and setting schedule cron job to renew certificate to store on S3 Bucket.InstallUsethenpmdisttagtooptinCDKv1orCDKv2:

//forCDKv2
npminstallcdk-certbot-dns-route53
or
npminstallcdk-certbot-dns-route53@latest

//forCDKv1
npminstallcdk-certbot-dns-route53@cdkv1💡💡💡 please clickhere, if you are using aws-cdk v1.x.x version.💡💡💡import*asr53from'aws-cdk-lib/aws-route53';import*ass3from'aws-cdk-lib/aws-s3';import*ascdkfrom'aws-cdk-lib';import{CertbotDnsRoute53Job}from'cdk-certbot-dns-route53';constdevEnv={account:process.env.CDK_DEFAULT_ACCOUNT,region:process.env.CDK_DEFAULT_REGION,};constapp=newcdk.App();conststack=newcdk.Stack(app,'lambda-certbot-dev',{env:devEnv});newCertbotDnsRoute53Job(stack,'Demo',{certbotOptions:{domainName:'*.example.com',email:'user@example.com',},zone:r53.HostedZone.fromHostedZoneAttributes(stack,'myZone',{zoneName:'example.com',hostedZoneId:'mockId',}),destinationBucket:s3.Bucket.fromBucketName(stack,'myBucket','mybucket'),});You can define Lambda Image Architecture now. 2022/04/19import*asr53from'aws-cdk-lib/aws-route53';import*ass3from'aws-cdk-lib/aws-s3';import*aslambdafrom'aws-cdk-lib/aws-lambda';import*ascdkfrom'aws-cdk-lib';import{CertbotDnsRoute53Job}from'cdk-certbot-dns-route53';constmockApp=newcdk.App();conststack=newcdk.Stack(mockApp,'teststack',{env:devEnv});constbucket=news3.Bucket(stack,'testingBucket');constzone=r53.HostedZone.fromHostedZoneAttributes(stack,'zone',{zoneName:mock.zoneName,hostedZoneId:mock.zoneId,});newCertbotDnsRoute53Job(stack,'Testtask',{certbotOptions:{domainName:'example.com',email:'user@example.com',customPrefixDirectory:'/',},zone,destinationBucket:bucket,schedule:events.Schedule.cron({month:'2'}),architecture:lambda.Architecture.ARM_64,//<-likethisway.});Example: Invoke Lambda Function log.Example: Renew certificate to store on S3 BucketSupport Python Lambda Runtime. 2023/12/17Support enabled Lambda Function Url.import*asr53from'aws-cdk-lib/aws-route53';import*ass3from'aws-cdk-lib/aws-s3';import*aslambdafrom'aws-cdk-lib/aws-lambda';import*ascdkfrom'aws-cdk-lib';import{CertbotDnsRoute53JobPython}from'cdk-certbot-dns-route53';constmockApp=newcdk.App();conststack=newcdk.Stack(mockApp,'teststack',{env:devEnv});constbucket=news3.Bucket(stack,'testingBucket');constzone=r53.HostedZone.fromHostedZoneAttributes(stack,'zone',{zoneName:mock.zoneName,hostedZoneId:mock.zoneId,});newCertbotDnsRoute53JobPython(stack,'Testtask',{certbotOptions:{domainName:'example.com',email:'user@example.com',customPrefixDirectory:'/',},zone,destinationBucket:bucket,schedule:events.Schedule.cron({month:'2'}),enabledLambdaFunctionUrl:true,});
Package: cdk-chalice
cdk-chaliceAWS CDK construct for AWS ChaliceThis library allows to include anAWS Chaliceapplication into a broaderAWS Cloud Development Kit(AWS CDK) application.The following approach to AWS CDK and AWS Chalice interoperability is taken by the library:Manually create Chalice application (chalice new-project) with default "dev" stage in.chalice/config.json.cdk-chalicelibrary could perform this Chalice application
scaffolding automatically - create new project, or skip this step if project already exists
in the target directory (this ischalice new-projectbehavior). The choice to keep this step
manual (for now) was made to hopefully make adoption easier for developers who already have
existing Chalice projects.Manually create CDK application (cdk init [ARGS])Usecdk_chalice.Chaliceclass to generate stage per CDK stack in.chalice/config.jsonand runchalice package. This is the main purpose ofcdk-chalice- allow passing
CDK tokens for resources, such as DynamoDB table, to SAM template generated bychalice package(see examplehere),
and also to automate the packaging process itself.If AWS Chalice doesn't support certain options through its configuration mechanism,
there are two ways to address this:Open anissuefor AWS ChaliceCustomize the resources after they have been imported into the CDK stack.cdk-chaliceuses AWS CDKcloudformation-includemodule to enable customization. Seecdk-chaliceAPI documentation for example and additional details.The API documentation and usage example are available athttps://cdk-chalice.softwhat.com/InstallationInstall and update usingpip:pipinstall-Ucdk-chalice