Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
cdk-iam-actions
Advanced tools
Readme
A generated library of constants for IAM policy actions and condition keys.
Install with NPM
npm install cdk-iam-actions
Then import and use whenever you need to build a PolicyStatement
:
import { Policy, Effect } from "@aws-cdk/aws-iam";
import { actions, conditions } from "cdk-iam-actions"; // Import them all
import { S3 } from "cdk-iam-actions/lib/actions"; // Or just the one you need
new PolicyStatement({
effect: Effect.ALLOW,
actions: [actions.S3.PUT_OBJECT, S3.LIST_BUCKET],
conditions: {
[conditions.S3.PREFIX]: "my-prefix"
},
resources: ["*"]
});
CAPITAL_SNAKE_CASE
? TitleCase would've been prettier and closer to the actual action names!JSII (Amazon's thing which lets you write Typescript and convert to C# / Java / Python) requires that enums are CAPITAL_SNAKE_CASE.
import {S3} from cdk-iam-actions/lib/actions
include 'lib'?Because I didn't understand npm packaging until it was too late. Stay tuned for a 2.0 where you don't need to /lib
.
¯\_(ツ)_/¯
Submit an issue!
FAQs
A Typescript library of AWS actions and condition key enums
The npm package cdk-iam-actions receives a total of 188 weekly downloads. As such, cdk-iam-actions popularity was classified as not popular.
We found that cdk-iam-actions 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
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.