Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

p6-barrier

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

p6-barrier

p6-barrier

  • 0.1.107
  • Source
  • PyPI
  • Socket score

Maintainers
1

P6Barrier is an AWS CDK Construct that deploys a Custom Resource which will poll until AWS Lambda Function isReady returns true. Ideal for running code AFTER an RDS or EKS is ready.

P6Barrier

  • P6Barrier

Badges

License Gitpod ready-to-code Build Release Mergify codecov Known Vulnerabilities

Distributions

npm version PyPI version NuGet version Maven Central

Summary

Use this to wait for an RDS or for that matter anything to become ready.

This deploys a Custom Resource which is obviously backed by an AWS Lambda. This lambda calls the lambda with Arn functionArn.

This function should return the string 'True' if the resource is ready. Otherwise 'False'. This function must be provided by you and is custom for your needs.

This is abstracted from @aws-cdk/aws-eks/cluster.ts where a Custom Resource which makes an SSM Parameter is used as a barrier for Resources to depend on until the EKS Cluster is ready for Helm to be run via an addHelmChart

Usage

Example 1 - External Lambda

# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
from p6_barrier import P6Barrier

P6Barrier(self, "p6-barrier",
    name="some_useful_name",
    dependencies=[dep1, dep2],
    function_arn="functionArn"
)

Example 2 - CDK Lambda (same stack)

# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
from p6_barrier import P6Barrier

is_ready = lambdajs.NodejsFunction(self, "isReady",
    timeout=Duration.minutes(15),
    tracing=lambda_.Tracing.ACTIVE
)

P6Barrier(self, "p6-barrier",
    name="some_useful_name",
    dependencies=[dep1, dep2],
    function_arn=is_ready.function_arn
)

Contributing

Code of Conduct

Changes

Authors

Philip M. Gollucci pgollucci@p6m7g8.com

FAQs


Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc