Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

Commit

Permalink
Updates for release v1.7.0
Browse files Browse the repository at this point in the history
- AWS Service Catalog AppRegistry integration. When a stack is deployed, a Service Catalog application is created where all associated resource collections and attribute groups can be viewed.
- fix npm security vulnerabilities
  • Loading branch information
tabdunabi authored Nov 17, 2022
2 parents 0a7197d + 6a46fa5 commit 804d35e
Show file tree
Hide file tree
Showing 14 changed files with 16,478 additions and 13,861 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.7.0] - 2022-11-17

### Updated

- [AWS Service Catalog AppRegistry](https://docs.aws.amazon.com/servicecatalog/latest/arguide/intro-app-registry.html) integration. When a stack is deployed, an Service Catalog application is created where all associated resources collections and attribute groups can be viewed.
- To monitor costs of resources used by the stack, the tag `AppManagerCFNStackKey` is added to the solution by AWS Systems Manager Application Manager.
- npm package security patching (minimatch)

## [1.6.2] - 2022-09-28

### Updated
Expand Down
9 changes: 9 additions & 0 deletions deployment/build-s3-dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,12 @@ done

node $template_dir/cdk-solution-helper/index

# shortening app_registry_name as AppInsights application_id has a character limit
app_registry_name=$(echo "$solution_name" | sed 's/ /-/g' | sed 's/streaming-data-solution-for/sds/g' | awk '{print tolower($0)}' | cut -c 1-64)
echo "-----------------------------------------------------------------------------"
echo "Setting App Registry Application Name as $app_registry_name"
echo "-----------------------------------------------------------------------------"

echo "------------------------------------------------------------------------------"
echo "[Packing] Updating placeholders"
echo "------------------------------------------------------------------------------"
Expand All @@ -161,6 +167,9 @@ do

replace="s/%%VERSION%%/$solution_version/g"
sed -i -e $replace $file

replace="s/%%APP_REG_NAME%%/$app_registry_name/g"
sed -i -e $replace $file
done

echo "------------------------------------------------------------------------------"
Expand Down
28 changes: 18 additions & 10 deletions source/bin/streaming-data-solution.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
#!/usr/bin/env node

import 'source-map-support/register';

import * as cdk from '@aws-cdk/core';
import { AwsSdkConfig } from './aws-sdk-aspect';
import { CfnNagAspect } from './cfn-nag-aspect';
import crypto = require('crypto');

import { ApiGwKdsLambda } from '../patterns/apigw-kds-lambda';
import { KplKdsKda } from '../patterns/kpl-kds-kda';
import { KdsKdfS3 } from '../patterns/kds-kdf-s3';
import { AppRegistry } from '../lib/app-registry';
import { AwsSdkConfig } from './aws-sdk-aspect';
import { CfnNagAspect } from './cfn-nag-aspect';
import { KdsKdaApiGw } from '../patterns/kds-kda-apigw';
import { MskStandalone } from '../patterns/msk-standalone-cluster';
import { KdsKdfS3 } from '../patterns/kds-kdf-s3';
import { KplKdsKda } from '../patterns/kpl-kds-kda';
import { MskClientStack } from '../labs/msk-client-setup';
import { MskClusterStack } from '../labs/msk-cluster-setup';
import { MskKdaS3 } from '../patterns/msk-kda-s3';
import { MskLambda } from '../patterns/msk-lambda';
import { MskLambdaKdf } from '../patterns/msk-lambda-kdf';
import { MskKdaS3 } from '../patterns/msk-kda-s3';

import { MskLambdaRoleStack } from '../labs/msk-lambda-role';
import { MskClientStack } from '../labs/msk-client-setup';
import { MskClusterStack } from '../labs/msk-cluster-setup';
import { MskStandalone } from '../patterns/msk-standalone-cluster';

import crypto = require('crypto');

const app = new cdk.App();
const solutionIdKds = 'SO0124';
Expand All @@ -28,6 +31,11 @@ function applyAspects(stacks: cdk.Stack[], solutionId: string) {
const hash = crypto.createHash('sha256').update(stack.stackName).digest('hex');
cdk.Aspects.of(stack).add(new AwsSdkConfig(app, `CustomUserAgent-${hash}`, solutionId));
cdk.Aspects.of(stack).add(new CfnNagAspect(app, `CfnNag-${hash}`));
cdk.Aspects.of(stack).add(
new AppRegistry(stack, `AppRegistry-${hash}`, {
solutionID: solutionId
})
);
}
}

Expand Down
Loading

0 comments on commit 804d35e

Please sign in to comment.