Opinionated, refined AWS CDK constructs for solving common challenges in Infrastructure, Data, and AI/ML.
π Documentation | π Getting Started | π API Reference
npm install cdk-power-constructs
pip install cdk-power-constructs
fr.guyon-it-consulting
cdk-power-constructs
0.1.0
dotnet add package GuyonItConsulting.CdkPowerConstructs
go get github.com/guyon-it-consulting/cdk-power-constructs-go
import { GlueResourcePolicyStatement } from 'cdk-power-constructs/glue/glue-resource-policy';
import * as iam from 'aws-cdk-lib/aws-iam';
new GlueResourcePolicyStatement(stack, 'CrossAccountAccess', {
sid: 'AllowCrossAccountAccess',
statement: new iam.PolicyStatement({
effect: iam.Effect.ALLOW,
principals: [new iam.AccountPrincipal('123456789012')],
actions: ['glue:GetDatabase', 'glue:GetTable'],
resources: ['*'],
}),
});
from cdk_power_constructs.glue.glue_resource_policy import GlueResourcePolicyStatement
from aws_cdk import aws_iam as iam
GlueResourcePolicyStatement(stack, "CrossAccountAccess",
sid="AllowCrossAccountAccess",
statement=iam.PolicyStatement(
effect=iam.Effect.ALLOW,
principals=[iam.AccountPrincipal("123456789012")],
actions=["glue:GetDatabase", "glue:GetTable"],
resources=["*"]
)
)
Manages individual statements in the AWS Glue Data Catalog resource policy for cross-account access and Lake Formation integration.
# Install dependencies
npm install
# Build the library
npm run build
# Run tests
npm test
# Package for all languages
npm run package
# Generate documentation
npm run docs
# Run documentation site locally
cd website && npm start
Contributions are welcome! Please see our documentation for details.
This project is licensed under the Apache-2.0 License - see the LICENSE file for details.
JΓ©rΓ΄me GUYON
Guyon IT Consulting