
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@renovosolutions/cdk-aspects-library-tags
Advanced tools
A library of CDK aspects for tagging AWS resources
A library of AWS CDK Aspects for applying consistent tagging to AWS resources.
This library provides two main aspects for tagging AWS resources:
An aspect that applies a set of custom tags to all taggable resources in the given scope. This is useful for:
An aspect that applies CloudFormation-specific tags to KMS keys, including:
cfn:stack-name
- The name of the CloudFormation stackcfn:logical-id
- The logical ID of the KMS key resourceThis is particularly useful because KMS keys are not automatically tagged by CloudFormation, making them difficult to track and manage in large deployments.
It's not possible to use the same tags that CloudFormation applies to other resources, because those names are reserved for CloudFormation's internal use. As a best approximation, it uses the similar tag names listed above.
import { Aspects, App, Stack } from 'aws-cdk-lib';
import { aws_s3 as s3, aws_kms as kms } from 'aws-cdk-lib';
import { ApplyTags, ApplyKmsTags } from '@renovosolutions/cdk-aspects-library-tags';
const app = new App();
const stack = new Stack(app, 'MyStack');
// Create some resources
new s3.Bucket(stack, 'MyBucket');
new kms.Key(stack, 'MyKey');
// Apply custom tags to all taggable resources
const tags = {
'Environment': 'Production',
'Project': 'MyProject',
'Owner': 'TeamName'
};
Aspects.of(stack).add(new ApplyTags(tags));
// Apply CloudFormation tags specifically to KMS keys
Aspects.of(stack).add(new ApplyKmsTags());
from aws_cdk import (
Aspects,
App,
Stack,
aws_s3 as s3,
aws_kms as kms,
)
from renovosolutions_aspects_tags import (
ApplyTags,
ApplyKmsTags,
)
app = App()
stack = Stack(app, "MyStack")
# Create some resources
s3.Bucket(stack, "MyBucket")
kms.Key(stack, "MyKey")
# Apply custom tags to all taggable resources
tags = {
"Environment": "Production",
"Project": "MyProject",
"Owner": "TeamName"
}
Aspects.of(stack).add(ApplyTags(tags))
# Apply CloudFormation tags specifically to KMS keys
Aspects.of(stack).add(ApplyKmsTags())
using Amazon.CDK;
using Amazon.CDK.AWS.S3;
using Amazon.CDK.AWS.KMS;
using System.Collections.Generic;
using renovosolutions;
var app = new App();
var stack = new Stack(app, "MyStack");
// Create some resources
new Bucket(stack, "MyBucket");
new Key(stack, "MyKey");
// Apply custom tags to all taggable resources
var tags = new Dictionary<string, string>
{
["Environment"] = "Production",
["Project"] = "MyProject",
["Owner"] = "TeamName"
};
Aspects.Of(stack).Add(new ApplyTags(tags));
// Apply CloudFormation tags specifically to KMS keys
Aspects.Of(stack).Add(new ApplyKmsTags());
The aspects in this library work at different scopes:
ITaggable
interface (most AWS resources)AWS::KMS::Key
resourcesYou can apply these aspects at any level in your CDK hierarchy:
For detailed API documentation, see API.md.
Contributions are welcome! Please see our contributing guidelines for more details.
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
FAQs
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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.