Skip to content

feat(aspect): sagemaker-automated-shutdown #95

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitattributes

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions .github/workflows/release.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions .gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions .npmignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 30 additions & 19 deletions .projen/deps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 14 additions & 5 deletions .projen/tasks.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const project = new CdklabsConstructLibrary({
stability: 'experimental',
private: false,
keywords: ['aws', 'awscdk', 'aws-cdk', 'cdk'],
jsiiVersion: '~5.7',
jsiiVersion: '~5.8',
cdkVersion: '2.177.0',
defaultReleaseBranch: 'main',
rosettaOptions: {
Expand All @@ -29,11 +29,10 @@ const project = new CdklabsConstructLibrary({
prettier: true,
prettierOptions: p.prettierOptions,
enablePRAutoMerge: true,
codeCov: true,
codeCovTokenSecret: 'CODECOV_TOKEN',
versionrcOptions: {
preset: 'conventionalcommits'
}
},
jest: false
});

p.configureBuild(project);
Expand Down
93 changes: 93 additions & 0 deletions API.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ go get github.com/cdklabs/cdk-proserve-lib-go/cdklabscdkproservelib

The library consists of [constructs](#-constructs), [aspects](#-aspects), and [patterns](#-patterns) that you can utilize in AWS CDK applications.

Total: 18
Total: 19

### 🧱 Constructs

Expand All @@ -100,11 +100,12 @@ Count: 10

Aspects are a way to apply an operation to all constructs in a given scope. The aspect could modify the constructs, such as by adding tags. Or it could verify something about the state of the constructs, such as making sure that all buckets are encrypted. To learn more about aspects, check out the [AWS CDK documentation](https://docs.aws.amazon.com/cdk/v2/guide/aspects.html).

Count: 6
Count: 7

- [**ApplyRemovalPolicy**](API.md#applyremovalpolicy-): Sets a user specified Removal Policy to all resources that the aspect applies to.
- [**CreateLambdaLogGroup**](API.md#createlambdaloggroup-): Ensures that Lambda log groups are created for all Lambda functions that the aspect applies to.
- [**Ec2AutomatedShutdown**](API.md#ec2automatedshutdown-): Automatically shut down EC2 instances when an alarm is triggered based off of a provided metric.
- [**SageMakerAutomatedShutdown**](API.md#sagemakerautomatedshutdown-):
- [**SecureSageMakerNotebook**](API.md#securesagemakernotebook-): Aspect that enforces security controls on SageMaker Notebook Instances by requiring VPC placement, disabling direct internet access, and preventing root access to the notebook environment.
- [**SetLogRetention**](API.md#setlogretention-): Aspect that sets the log retention period for CloudWatch log groups to a user-supplied retention period.
- [**SqsRequireSsl**](API.md#sqsrequiressl-): Enforces SSL/TLS requirements on Simple Queue Service (SQS) for all resources that the aspect applies to.
Expand Down
Loading