Skip to content

Commit 98ddb98

Browse files
authored
release v3.0.1 (#555)
* release v3.0.1 * fix cli packaging
1 parent 675da38 commit 98ddb98

File tree

71 files changed

+2532
-4870
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+2532
-4870
lines changed

.projenrc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
import { PythonProject } from "projen/lib/python";
1717

1818
function main() {
19-
new InstanceScheduler({ version: "3.0.0", cdkVersion: "2.130.0" }).synth();
19+
new InstanceScheduler({ version: "3.0.1", cdkVersion: "2.130.0" }).synth();
2020
}
2121

2222
interface InstanceSchedulerProps {

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,26 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

7+
## [3.0.1] -- 2024-06-27
8+
9+
### Changed
10+
- Scheduler CLI installation process now uses a version-agnostic installation process
11+
- Lambda memory size for orchestration and asg scheduling lambdas is now configurable
12+
13+
### Fixed
14+
- Fixed an error that would cause maintenance window scheduling to fail when the SSM api returned expired maintenance windows without a `NextExecutionTime` property
15+
- Fixed KMS encryption key being deleted when DynamoDB tables were configured to be retained on stack delete
16+
- Fixed an error that caused ASG schedule updates to fail when more than 5 schedules were updated at once
17+
- Fixed a possible name conflict with Operational Insights Dashboard when deploying multiple copies of Instance Scheduler to the same account
18+
19+
### Security
20+
21+
- Upgrade braces to mitigate CVE-2024-4068
22+
- Upgrade urllib3 to mitigate CVE-2024-37891
23+
24+
### Removed
25+
- Removed e2e testing pipeline from public assets
26+
727
## [3.0.0] - 2024-06-05
828

929
### Added

README.md

Lines changed: 0 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -174,91 +174,6 @@ npm ci
174174
npm run test
175175
```
176176

177-
### Automated Testing Pipeline
178-
179-
Instance Scheduler on AWS includes an optional automated testing pipeline that can be deployed to automatically test any
180-
changes you develop for the solution on your own development fork. Once setup, this pipeline will automatically
181-
download, build, and test any changes that you push to a specified branch on your development fork.
182-
183-
The pipeline can be configured to automatically watch and pull from repos hosted on either [AWS
184-
CodeCommit](https://aws.amazon.com/codecommit/) or GitHub.
185-
186-
#### Prerequisites
187-
188-
- AWS account
189-
- repository fork
190-
- AWS CLI v2
191-
- Node.js 18
192-
- docker
193-
194-
#### Step 0 (If Using GitHub) - Connect CodeStar to Your GitHub Account
195-
196-
For the pipeline to be able to test your changes, you must provide permission to access your development repo.
197-
198-
https://docs.aws.amazon.com/dtconsole/latest/userguide/connections-create-github.html
199-
200-
_Note: CodeStar only needs access to your Instance Scheduler development fork, it does not need access to all
201-
repositories._
202-
203-
Once the connection has been set up, make sure you save the connection ARN for the next step.
204-
205-
#### Step 1 - Prepare Your Environment
206-
207-
In your local environment, first install all necessary dependencies and bootstrap your account for CDK deployment.
208-
209-
```
210-
npm ci
211-
npx cdk bootstrap
212-
```
213-
214-
#### Step 2 - Deploy the testing pipeline bootstrap stack
215-
216-
```
217-
npx cdk deploy instance-scheduler-on-aws-testing-pipeline-bootstrap
218-
```
219-
220-
Once the stack is deployed, Go to CloudFormation and [update the bootstrap
221-
stack](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-direct.html) with the
222-
configuration your pipeline should use
223-
224-
At a minimum you must provide:
225-
226-
- repoName -- the name of your forked repo (either in CodeCommit or GitHub)
227-
- repoBranch -- The branch in your fork that should be watched and pulled from for testing
228-
229-
if sourcing from GitHub instead of CodeCommit, you must also provide:
230-
231-
- codestarArn -- the CodeStar connection ARN from the previous step
232-
- repoArn -- the GitHub owner of your fork
233-
234-
For example, if your GitHub username is "myUser" and you would like to test changes pushed to the develop branch of your
235-
fork the values you would need to set would be:
236-
237-
```
238-
arn = {arn from Step 0}
239-
owner = myUser
240-
repo = instance-scheduler-on-aws
241-
branch = develop
242-
```
243-
244-
#### Step 3 - Deploy the Testing Pipeline
245-
246-
```
247-
# source from CodeCommit
248-
npx cdk deploy instance-scheduler-on-aws-testing-pipeline --context instance-scheduler-on-aws-pipeline-source=codecommit
249-
250-
# source from GitHub
251-
npx cdk deploy instance-scheduler-on-aws-testing-pipeline --context instance-scheduler-on-aws-pipeline-source=codestar
252-
```
253-
254-
_note: If you do not provide a context, the pipeline will default to using codecommit._
255-
256-
This will deploy the automated testing pipeline into your AWS account which will then begin running tests against your
257-
development fork automatically.
258-
259-
To view the results. Go to [CodePipeline](https://us-east-1.console.aws.amazon.com/codesuite/codepipeline/pipelines) and
260-
click on the pipeline that begins with instance-scheduler-on-aws-testing-pipeline.
261-
262177
## Modifying the Solution
263178

264179
### projen

deployment/build-s3-dist.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,11 @@ main() {
7777
header "[Scheduler-CLI] Package the Scheduler cli"
7878
pushd "$cli_source_dir"
7979
python -m poetry build
80-
cp ./dist/* "$global_dist_dir"
80+
cp -r ./dist "$build_dir/instance_scheduler_cli"
81+
popd
82+
83+
pushd "$build_dir"
84+
zip -r "$global_dist_dir/instance_scheduler_cli.zip" "instance_scheduler_cli"
8185
popd
8286
}
8387

deployment/cdk-solution-helper/package-lock.json

Lines changed: 14 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)