Saravanan666/pypi-org huggingface dataset:
Package: cdktf-cdktf-provider-waypoint
CDKTF prebuilt bindings for hashicorp/waypoint provider version 0.1.0HashiCorp made the decision to stop publishing new versions of prebuiltTerraform waypoint providerbindings forCDK for Terraformon January 24, 2024. As such, this repository has been archived and is no longer supported in any way by HashiCorp. Previously-published versions of this prebuilt provider will still continue to be available on their respective package managers (e.g. npm, PyPi, Maven, NuGet), but these will not be compatible with new releases ofcdktfpast0.20.0and are no longer eligible for commercial support.As a reminder, you can continue to use thehashicorp/waypointprovider in your CDK for Terraform (CDKTF) projects, even with newer versions of CDKTF, but you will need to generate the bindings locally. The easiest way to do so is to use theprovider addcommand, optionally with the--force-localflag enabled:cdktf provider add hashicorp/waypoint --force-localFor more information and additional examples, check out our documentation ongenerating provider bindings manually.Deprecated PackagesNPMThe npm package is available athttps://www.npmjs.com/package/@cdktf/provider-waypoint.npm install @cdktf/provider-waypointPyPIThe PyPI package is available athttps://pypi.org/project/cdktf-cdktf-provider-waypoint.pipenv install cdktf-cdktf-provider-waypointNugetThe Nuget package is available athttps://www.nuget.org/packages/HashiCorp.Cdktf.Providers.Waypoint.dotnet add package HashiCorp.Cdktf.Providers.WaypointMavenThe Maven package is available athttps://mvnrepository.com/artifact/com.hashicorp/cdktf-provider-waypoint.<dependency>
    <groupId>com.hashicorp</groupId>
    <artifactId>cdktf-provider-waypoint</artifactId>
    <version>[REPLACE WITH DESIRED VERSION]</version>
</dependency>GoThe go package is generated into thegithub.com/cdktf/cdktf-provider-waypoint-gopackage.go get github.com/cdktf/cdktf-provider-waypoint-go/waypoint/<version>Where<version>is the version of the prebuilt provider you would like to use e.g.v11. The full module name can be found
within thego.modfile.DocsFind auto-generated docs for this provider here:TypescriptPythonJavaC#GoYou can also visit a hosted version of the documentation onconstructs.dev.
Package: cdktf-cdktf-provider-yandex
Terraform CDK yandex Provider ~> 0.73This repo builds and publishes the Terraform yandex Provider bindings forCDK for Terraform.Available PackagesNPMThe npm package is available athttps://www.npmjs.com/package/@cdktf/provider-yandex.npm install @cdktf/provider-yandexPyPIThe PyPI package is available athttps://pypi.org/project/cdktf-cdktf-provider-yandex.pipenv install cdktf-cdktf-provider-yandexNugetThe Nuget package is available athttps://www.nuget.org/packages/HashiCorp.Cdktf.Providers.Yandex.dotnet add package HashiCorp.Cdktf.Providers.YandexMavenThe Maven package is available athttps://mvnrepository.com/artifact/com.hashicorp/cdktf-provider-yandex.<dependency>
    <groupId>com.hashicorp</groupId>
    <artifactId>cdktf-provider-yandex</artifactId>
    <version>[REPLACE WITH DESIRED VERSION]</version>
</dependency>GoThe go package is generated into thegithub.com/hashicorp/cdktf-provider-yandex-gopackage.go get github.com/hashicorp/cdktf-provider-yandex-go/yandexDocsFind auto-generated docs for this provider here:./API.mdYou can also visit a hosted version of the documentation onconstructs.dev.VersioningThis project is explicitly not tracking the Terraform yandex Provider version 1:1. In fact, it always trackslatestof~> 0.73with every release. If there are scenarios where you explicitly have to pin your provider version, you can do so by generating theprovider constructs manually.These are the upstream dependencies:Terraform CDKTerraform yandex ProviderTerraform EngineIf there are breaking changes (backward incompatible) in any of the above, the major version of this project will be bumped.Features / Issues / BugsPlease report bugs and issues to theterraform cdkproject:Create bug reportCreate feature requestContributingprojenThis is mostly based onprojen, which takes care of generating the entire repository.cdktf-provider-project based on projenThere's a customproject builderwhich encapsulate the common settings for allcdktfproviders.Provider VersionThe provider version can be adjusted in./.projenrc.js.Repository ManagementThe repository is managed byRepository Manager
Package: cdktf-github-actions
cdktf-github-actionsThis is a library to help define GitHub Actions workflows using CDKTF. This package vends constructs for defining a workflow that will be synthesized to a workflow yaml file in your repos.github/workflowsdirectory.DevelopmentThis project is in early development. The constructs are likely to change as the needs of the project evolve.A few items I'm currently working towards:More github resource synthesisHigher test coverageMore indepth documentationUsageExampleimport{Construct}from'constructs';import{App,TerraformStack}from'cdktf';import{Workflow,Job}from'cdktf-github-actions';constapp=newApp();classMyWorkflowStackexecutesTerraformStack{constructor(scope:Construct,name:string){super(scope,name);letechoJob=newJob(this,'build-job',{steps:[{name:'echo',run:'echo "Hello World"',},],});constwf=newWorkflow(this,'workflow',{repoName:'my-repo',jobs:[echoJob],});}}conststack=newMyWorkflowStack(app,'test');app.synth();The constructs support the ability to define github resources and create them using the github terrafrom provider. The following example shows how to create a create a workflow with secrets that will be stored in the repository.import{Construct}from'constructs';import{App,TerraformStack}from'cdktf';import{Workflow,Job}from'cdktf-github-actions';constapp=newApp();classMyWorkflowStackexecutesTerraformStack{constructor(scope:Construct,name:string){super(scope,name);letechoJob=newJob(this,'build-job',{steps:[{name:'echo',run:'echo "Hello World"',withSecrets:[{referencedName:'token',secretName:'MY_SECRET',secretValue:'123',},],},],});constwf=newWorkflow(this,'workflow',{repoName:'my-repo',jobs:[echoJob],});}}conststack=newMyWorkflowStack(app,'test');app.synth();The example above will create a secret with the nameMY_SECRETand the value123in the repository. The secret will be referenced in the workflow using the nametoken.
Package: cdktf-gitlab-runner
Welcome tocdktf-gitlab-runnerUse CDK fo Terraform to create gitlab runner, and usegitlab runnerto help you execute your Gitlab Pipeline Job.GitLab Runner is the open source project that is used to run your CI/CD jobs and send the results back to GitLab.(source repo)FeatureInstance Manager GroupAuto Register Gitlab RunnerAuto Unregister Gitlab Runner (when destroy and shutdown)SupportpreemptibleInit CDKTF Projectmkdirdemocddemo
cdktfinit--templatetypescript--localInstallcdktf-gitlab-runneryarnaddcdktf-gitlab-runner
or
npmicdktf-gitlab-runnerExampleimport*asgcpfrom'@cdktf/provider-google';import*ascdktffrom'cdktf';import{Construct}from'constructs';import{GitlabRunnerAutoscaling}from'./index';exportclassIntegDefaultStackextendscdktf.TerraformStack{constructor(scope:Construct,id:string){super(scope,id);constlocal='asia-east1';constprojectId=`${process.env.PROJECT_ID}`;constprovider=newgcp.GoogleProvider(this,'GoogleAuth',{region:local,zone:local+'-c',project:projectId,});newGitlabRunnerAutoscaling(this,'GitlabRunnerAutoscaling',{gitlabToken:`${process.env.GITLAB_TOKEN}`,provider,});}}constapp=newcdktf.App();newIntegDefaultStack(app,'gitlab-runner');app.synth();
Package: cdktf-gke-auth
cdktf-gke-authEasily authenticate against a Google Kubernetes Engine (GKE) within your CDK for Terraform stack. Without the need to
resort toGoogle's terraform GKE authmodule. You can avoid runningcdktf getas pre-synth step.This project usesprojenandjsiito compile the construct to Typescript, Python, Go and .Net (Java upon request).Example usage (Typescript)Install the construct with:yarn install cdktf-gke-auth.import{GoogleProvider}from"@cdktf/provider-google/lib/provider";import{TerraformOutput,TerraformStack}from"cdktf";import{Construct}from"constructs";import{GKEAuth}from'cdktf-gke-auth';exportclassMyKubeStackextendsTerraformStack{constructor(scope:Construct,name:string){super(scope,name);newGoogleProvider(this,"google-provider",{});constauth=newGKEAuth(this,"gke-auth",{clusterName:"my-cluster",location:"europe-west1",projectId:"my-project",});//inittheKubernetesproviderlikeso:newKubernetesProvider(this,"kubernetes",{...auth.authCredentials});//Orahelmproviderlikeso:newHelmProvider(this,"helm",{kubernetes:auth.authCredentials,});}}TheGKEAuthinstance exposehost,clusterCaCertificate,clusterCaCertificatePEM, andtokenyou can use to authenticate using
any of the kubernetes popular cdktf providers.For other languages examples, checkout this construct onConstructHub.
Package: cdktf-local-build
CDKTF Local Build ConstructA simple construct that runs builds for different languages locally.
Currently, it supports: docker. I plan on adding rust (cargo) and node (npm) support as well.Usageimport{Provider,DockerBuild,DockerizedBuild}from"cdktf-local-build";//LocalBuildextendsLocalExecwhichextendsfromthenullprovider,//soifyoualreadyhavetheproviderinitializedyoucanskipthisstepnewProvider(this,"local-build");newDockerBuild(this,"docker-backend",{cwd:"/path/to/project/backend",dockerfile:"Dockerfile.backend",image:"cdktf/backend:latest",push:false,//defaultstotrue});newDockerizedBuild(this,"my-go-backend",{cwd:"/path/to/project/backend",command:"go build -o /tmp/backend",imageHomeDirectory:"/tmp/backend",platform:"linux/arm64",image:"go-builder-image:latest",setUser:true,});DockerBuildBuilds a docker image locally.Optionscwd: The working directory to run the command in.dockerfile: The Dockerfile to use.image: The tag to use for the image.push: If true,docker push <tag>is executed after the run.DockerizedBuildBuild an artifact inside a docker image.Optionscwd: The working directory to run the command in.command: Build command to run int the docker image.image: The tag to use for the building image.imageHomeDirectory: The home directory to use inside the image.platform: The platform to build for (sets docker platform flag).setUser: If true, the user will be set to the current user inside docker.CrossBuildBuilds a rust binary using cross (cross runs it inside a docker container).
Please make surecrossis installed on the host machine by runningcargo install cross.Optionsarch: The architecture to build for (armorx86).projectName: The name specified in the Cargo.toml.cwd: The working directory to run the command in.
Package: cdktf-local-exec
CDKTF Local Exec ConstructA simple construct that executes a command locally. This is useful to run build steps within your CDKTF Program or to run a post action after a resource is created.cdktf-local-execis in technical preview, which means it's a community supported project. It still requires extensive testing and polishing to mature into a HashiCorp officially supported project. Pleasefile issuesgenerously and detail your experience while using the library. We welcome your feedback.By using the software in this repository, you acknowledge that:cdktf-local-execis still in development, may change, and has not been released as a commercial product by HashiCorp and is not currently supported in any way by HashiCorp.cdktf-local-execis provided on an "as-is" basis, and may include bugs, errors, or other issues.cdktf-local-execis NOT INTENDED FOR PRODUCTION USE, use of the Software may result in unexpected results, loss of data, or other unexpected results, and HashiCorp disclaims any and all liability resulting from use ofcdktf-local-exec.HashiCorp reserves all rights to make all decisions about the features, functionality and commercial release (or non-release) ofcdktf-local-exec, at any time and without any obligation or liability whatsoever.Compatibilitycdktf>= 0.20.0constructs>= 10.0.25How It WorksThe construct uses the null provider to achieve this so it can be trusted to only run after all dependencies are met.Usageimport{Provider,LocalExec}from"cdktf-local-exec";//LocalExecextendsfromthenullprovider,//soifyoualreadyhavetheproviderinitializedyoucanskipthisstepnewProvider(this,"local-exec");constfrontend=newLocalExec(this,"frontend-build",{//Willcopythisintoanassetdirectorycwd:"/path/to/project/frontend",command:"npm install && npm build",});constpathToUpload=`${frontend.path}/dist`;newLocalExec(this,"frontend-upload",{cwd:pathToUpload,command:`awss3cp--recursive${pathToUpload}s3://${bucket.name}/frontend`,});newLocalExec(this,"backend-build",{cwd:"/path/to/project/backend",copyBeforeRun:false,//cannotrunremotelysincetherunnerhasnodockeraccesscommand:"docker build -t foo . && docker push foo",});Optionscwd: The working directory to run the command in. It will be copied before execution to ensure the asset can be used in a remote execution environment.command: The command to execute.copyBeforeRun: If true, the command will copy thecwddirectory into a tmp dir and run there. If false, the command will be executed in thecwddirectory.
Package: cdktf-proxmox
Terrafrom CDK Proxmox ProviderThis is a repo that builds default CDKTF bindings for the awlsring/proxmox provider. It is semi auto-generated from the providers schema using methods pulled from the HashiCorpcdktf-provider-projectThis repo and the provider are still in development and should not be used in production.As this matures, additional custom constructs will be added to this to speed up the creation of VMs and other resources.LinksProvider Repo:https://github.com/awlsring/terraform-provider-proxmoxProvider Registry:https://registry.terraform.io/providers/awlsring/proxmox/latestConstructHub:https://constructs.dev/packages/@awlsring/cdktf-proxmoxAvailable 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/cdktf-proxmoxnpminstall@awlsring/cdktf-proxmoxPyPiPython package is available on PyPi.The pypi package is viewable athttps://pypi.org/project/cdktf-proxmox/pipinstallcdktf-proxmoxNugetC# package is available on Nuget.The nuget package is viewable athttps://www.nuget.org/packages/awlsring.CdktfProxmox/dotnetaddpackageawlsring.CdktfProxmox
Package: cdktf-surreal-backend
cdktf-surreal-backendThis is library to create a CDKTF construct forterraform-backend-surreal. This library vends a single construct,SurrealBackend, which extends the defaultHttpBackendconstruct to make instantiation of this easier.UsageExampleimport{TerraformStack}from"cdktf";import{SurrealBackend}from'@awlsring/cdktf-surreal-backend';exportclassMyStackextendsTerraformStack{constructor(scope:Construct,name:string,props:MyStackProps){super(scope,name);constbackend=newSurrealBackend(this,'Backend',{address:'https://localhost:8032',project:"homelab",stack:"infra",username:"terraform",password:"alligator3",});...//otherstuff}}Construct Properties:address: The address your backend sever is reachable at.project: The project name to use for this stack.stack: The stack name to use for this stack. stacks names must be unique across a project.username: The username to use for authentication, configured in the server's config.yaml filepassword: The password to use for authentication, configured in the server's config.yaml file
Package: cdk-time-bomb
cdk-time-bombImplode your AWS CDK Stack after set amount of time, save money, be happy!UsageJavaScript / TypeScriptIn your Typescipt / Javascript AWS CDK project, add thecdk-time-bombmodule:npminstallcdk-time-bombImport the module and instantiate in your CDK Stack class.  Specify a TTL Duration after which time the entire CloudFormation stack will self destroy:import{SelfDestruct}from'cdk-time-bomb';constselfDestruct=newSelfDestruct(this,"selfDestructor",{timeToLive:Duration.minutes(60)});Be sure to add an ordering dependency on a high level base Construct in your stack.  For example anchoringSelfDestructto theVpcensures all resources in the stack will be destroyed prior to destroying itself.constvpc=newec2.Vpc(this,"VPC",{});vpc.node.addDependency(selfDestruct);PythonInstall using pippipinstallcdk-time-bombJavaFollow theguide for configuring maven for use with Github Packages.  Then add the following to your project'spom.xml<dependency><groupId>jmb12686.cdk</groupId><artifactId>timebomb</artifactId><version>1.50.0</version></dependency>How to build this constructDue to the large amount of dependencies required by jsii, use the docker imageudondan/jsii-publishto reliably and consistenly build this CDK construct.dockerrun-it\--workdir/workdir\--volume$(pwd):/workdir\--envVERSION=0.3.0\--envBUILD_SOURCE=true\--envBUILD_PACKAGES=true\--envNPM_TOKEN\--envPYPI_TOKEN\--envNUGET_TOKEN\--envGITHUB_TOKEN\--envGITHUB_REPOSITORY="${OWNER}/${REPOSITORY}"\udondan/jsii-publish:0.8.3
Package: cdk-toolkit
cdk-toolkitAWS CDK ToolkitFeatures[ ] CICD[X] CodeCommit - Create CodeCommit Repository[ ] CodeCommit - Existing CodeCommit Repository
[X] CodeBuild - Docker Image Builder[ ] CodeDeploy - EKS[ ] CodeDeploy - ECS[ ] CodeDeploy - Lambda[ ] CodePipeline - Source, Build, Deploy[ ] CONNECTION[ ] VPC - Create VPC
[ ] VPC - Existing VPC
[ ] CONTAINER[X] ECR - Create ECR Repository[ ] ECR - Existing ECR Repository[ ] EKS - Create EKS Cluster[ ] EKS - Existing EKS Cluster[ ] EKS - Deploy Kubernetes Dashboard[ ] DATABASE[ ] RDS - Create PostGres RDS Instance
[ ] RDS - Existing PostGres RDS Instance[ ] RDS - Create PostGres Users, Tables, Functions[ ] DynamoDB - Create DynamoDB Instance[ ] DynamoDB - Existing DynamoDB Instance[ ] DynamoDB - Create DynamoDB Users, Tables, Etc.[ ] DATALAKE[ ] LakeFormation - Register S3 Bucket[ ] LakeFormation - S3 Bucket Glue Crawler[ ] NOTEBOOK[ ] SageMaker - Create SageMaker Instance[ ] SageMaker - Create SageMaker ML Model Endpoint[ ] NOTIFICATION[ ] SNS - Create SNS Topic[ ] SQS - Create SQS Topic[ ] PERMISSION[ ] IAM - Create an IAM Service Role[ ] IAM - Add IAM Service Role Inline Permissions[ ] SERVERLESS[ ] Lambda - Create Lambda Function[ ] STORAGE[X] S3 - Create S3 BucketGetting StartedInstall AWS CDKnpminstall-gaws-cdkCreate CDK Project Directorymkdircdk-projcdcdk-projCreate CDK Project Environmentcdkinitapp--languagepython
python3-mvenv.venvsource.venv/bin/activate
python3-mpipinstall-rrequirements.txtAdd Stacks to CDK Projectfromaws_cdkimport(Stack,)fromconstructsimportConstructfromcdk_toolkitimportstorageclassCdkProjStack(Stack):def__init__(self,scope:Construct,construct_id:str,**kwargs)->None:super().__init__(scope,construct_id,**kwargs)bucket_name="cdk-proj-bucket-name-test"s3_bucket=storage.createS3Bucket(self,bucket_name,versioned=False)Update CDK Project App# Sample Appimportaws_cdkascdkfromaws_cdkimportAws,Stack,Tagsfromcdk_proj.cdk_proj_stackimportCdkProjStack# AWS CDK Appapp=cdk.App()# AWS CDK EnvironmentAWS_ACCOUNT_NUMBER="111111111"AWS_ACCOUNT_REGION="us-west-2"cdk_environment=cdk.Environment(account=AWS_ACCOUNT_NUMBER,region=AWS_ACCOUNT_REGION)# Project StackCdkProjStack(app,"CdkProjStack",env=cdk_environment)app.synth()Create CDK BootstrapAWS_ACCOUNT_NUMBER=111111111
AWS_ACCOUNT_REGION=us-west-2
cdk bootstrap aws://$AWS_ACCOUNT_NUMBER/$AWS_ACCOUNT_REGION ---toolkit-stack-name CDK-TOOLKIT --qualifier cdktoolkitDeply CDK Project# Preview CDK Project Stack Deployment
cdk diff

# Deploy CDK Project Stack(s)
cdk deploy

# Destroy CDK Project Stack(s)
cdk destroyResourcesFederated Multi-Account Access for AWS CodeCommitAWS CDK API DocumentationAWS CDK + EKS!!!!!!!!!!!https://blog.dennisokeeffe.com/blog/2021-08-12-deploying-an-eks-fargate-cluster-with-the-aws-cdk
Package: cdk-triggers
CDK TriggersThis project has graduated from incubation and is now part of the AWS CDK. It is no longer maintained in this repositoryPlease refer to the official AWS CDK documentation:DocumentationSource CodeUsageimport*aslambdafrom'aws-cdk-lib/aws-lambda';import*astriggersfrom'aws-cdk-lib/triggers';import{Stack}from'aws-cdk-lib';import{Construct}from'constructs';declareconststack:Stack;declareconstresource1:Construct;declareconstresource2:Construct;newtriggers.TriggerFunction(stack,'MyTrigger',{runtime:lambda.Runtime.NODEJS_12_X,handler:'index.handler',code:lambda.Code.fromAsset(__dirname+'/my-trigger'),executeAfter:[resource1,resource2],});SecuritySeeCONTRIBUTINGfor more information.LicenseThis project is licensed under the Apache-2.0 License.
Package: cdk-tweet-queue
Tweet Queue for AWS CDKThis is anAWS CDKconstruct library which
allows you to get a feed of Twitter search results into an SQS queue. It works
by periodically polling the freely availableTwitter Standard Search
APIand
sending all new tweets to an SQS queue.Inspired by@jlhood'saws-serverless-twitter-event-sourceArchitectureA CloudWatch Event Rule triggers the poller AWS Lambda function periodicallyThe poller reads the last checkpoint from a DynamoDB table (if exists)The poller issues a Twitter search query for all new tweetsThe poller enqueues all tweets to an SQS queueThe poller stores the ID of the last tweet into the DynamoDB checkpoint table.Rinse & repeat.Twitter API KeysTo issue a Twitter search request, you will need toapplyfor a Twitter
developer account, and obtain API keys through by defining anew
application.The Twitter API keys are read by the poller from anAWS Secrets
Managerentry. The entry must contain
the following attributes:consumer_key,consumer_secret,access_token_keyandaccess_token_secret(exact names).Create a new AWS Secrets Manager entry for your API keysFill in the key values as shown below:Store the keyObtain the ARN of the secret (you will need it soon).UsageUsenpmto install the module in your CDK project. This will also add it to
yourpackage.jsonfile.$npminstallcdk-tweet-queueAdd aTweetQueueto your CDK stack:import{TweetQueue}from'cdk-tweet-queue';constqueue=newTweetQueue(this,'TweetStream',{//thisistheARNofthesecretyoustoredsecretArn:'arn:aws:secretsmanager:us-east-1:1234567891234:secret:xxxxxxxxx'//twittersearchquery//seehttps://developer.twitter.com/en/docs/tweets/search/guides/standard-operatorsquery:'#awscdk',//optionalpropertiesintervalMin:60,//optional:pollingintervalinminutesretentionPeriodSec:60,//optional:queueretentionperiodvisibilityTimeoutSec:60,//optional:queuevisilibitytimeout});Now,queueis ansqs.Queueobject and can be used anywhere a queue is
accepted. For example, you could process the queue messages using an AWS Lambda
function by setting up an SQS event source mapping.DevelopmentThe project is managed byprojenand offers the following commands:yarn projen- Synthesize the project configuration.yarn compile- Compile all source code.yarn test- Run all tests.yarn build- Complie, test, and package the module.Integration testThere is also an integration test that can be executed by running the following commands. You will need to set theTWEET_QUEUE_SECRET_ARNenvironment variable in order for the test to be able to use your Twitter API keys.$yarninteg:deployDon't forget to destroy:$yarninteg:destroyYou can also run any cdk command on the integration test application by running:yarn integ <command>LicenseApache-2.0