
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
sourceloop-cdktf
Advanced tools
This package contains cdktf constructs for easily creating AWS infrastructure.
This package contains cdktf constructs for easily creating AWS infrastructure.
npm install sourceloop-cdktf
Refer API.md file for API reference.
import * as aws from "@cdktf/provider-aws";
import * as random from "@cdktf/provider-random";
import { App, TerraformStack } from "cdktf";
import { Construct } from "constructs";
import * as dotenv from "dotenv";
import { resolve } from "path";
import { ILambda, Lambda } from "sourceloop-cdktf";
dotenv.config();
export class LambdaStack extends TerraformStack {
constructor(
scope: Construct,
id: string,
config: Omit<ILambda, "name">
) {
super(scope, id);
new aws.provider.AwsProvider(this, "aws", {
region: process.env.AWS_REGION,
accessKey: process.env.AWS_ACCESS_KEY_ID,
secretKey: process.env.AWS_SECRET_ACCESS_KEY,
profile: process.env.AWS_PROFILE,
assumeRole: [
{
roleArn: process.env.AWS_ROLE_ARN,
},
],
});
new random.provider.RandomProvider(this, "random");
const pet = new random.pet.Pet(this, "random-name", {
length: 2,
});
new Lambda(this, "lambda", {
...config,
name: pet.id,
});
}
}
const app = new App();
new LambdaStack(app, "example", {
codePath: resolve(__dirname, "../dist"),
layerPath: resolve(__dirname, "../layers"),
handler: "cron.handler",
runtime: "nodejs16.x",
namespace: process.env.NAMESPACE || "arc",
environment: process.env.ENV || "dev",
});
app.synth();
FAQs
This package contains cdktf constructs for easily creating AWS infrastructure.
We found that sourceloop-cdktf demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.