Skip to content

Commit ec616c1

Browse files
committed
Update to version v3.1.1
1 parent 819296e commit ec616c1

File tree

7 files changed

+337
-305
lines changed

7 files changed

+337
-305
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
7+
## [3.1.1] - 2022-11-9
8+
9+
### Changed
10+
- Added stack name to CachePolicy to make unique name allowing for multiple concurrent stacks
11+
- Added stack name to AppRegistry application name to allow for multiple concurrent stacks
12+
613
## [3.1.0] - 2022-9-1
714

815
### New

NOTICE.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,24 @@ Stanford Javascript Crypto Library under the BSD license or under the GNU GPL, v
3131
chai under the Massachusetts Institute of Technology (MIT) license
3232
mocha under the Massachusetts Institute of Technology (MIT) license
3333
aws-sdk-mock under the Massachusetts Institute of Technology (MIT) license
34+
json-to-pretty-yaml under the Apache License Version 2.0
35+
@aws-cdk/aws-cloudwatch under the Apache License Version 2.0
36+
@aws-cdk/aws-lambda under the Apache License Version 2.0
37+
@aws-cdk/aws-medialive under the Apache License Version 2.0
38+
@aws-cdk/aws-s3 under the Apache License Version 2.0
39+
@aws-cdk/aws-servicecatalogappregistry under the Apache License Version 2.0
40+
@aws-cdk/aws-applicationinsights under the Apache License Version 2.0
41+
@aws-cdk/core under the Apache License Version 2.0
42+
@aws-solutions-constructs/aws-cloudfront-s3 under the Apache License Version 2.0
43+
cdk-nag under the Apache License Version 2.0
44+
source-map-support under the Massachusetts Institute of Technology (MIT) license
45+
@aws-cdk/assert under the Apache License Version 2.0
46+
@types/jest under the Massachusetts Institute of Technology (MIT) license
47+
@types/node under the Massachusetts Institute of Technology (MIT) license
48+
aws-cdk under the Apache License Version 2.0
49+
jest under the Massachusetts Institute of Technology (MIT) license
50+
ts-jest under the Massachusetts Institute of Technology (MIT) license
51+
ts-node under the Massachusetts Institute of Technology (MIT) license
52+
typescript under the Apache License Version 2.0
3453

3554
The licenses for these third party components are included in LICENSE.txt

source/constructs/lib/live-streaming.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,11 @@ export class LiveStreaming extends cdk.Stack {
149149
* Construct also includes a logs bucket for the CloudFront distribution and a CloudFront
150150
* OriginAccessIdentity which is used to restrict access to S3 from CloudFront.
151151
*/
152-
const cachePolicy = new CachePolicy(this, 'CachePolicy', {
152+
// Need Unique name for each Cache Policy.
153+
const cachePolicyName = `CachePolicy-${cdk.Aws.STACK_NAME}`;
154+
155+
const cachePolicy = new CachePolicy(this, `CachePolicy`, {
156+
cachePolicyName: cachePolicyName,
153157
headerBehavior: {
154158
behavior: 'whitelist',
155159
headers: ['Origin']
@@ -445,9 +449,9 @@ export class LiveStreaming extends cdk.Stack {
445449
/**
446450
* AppRegistry
447451
*/
448-
const applicationName = 'LiveStreamingOnAwsWithAmazonS3';
452+
const applicationName = `live-streaming-on-aws-with-amazon-s3-${cdk.Aws.STACK_NAME}`;
449453
const attributeGroup = new appreg.AttributeGroup(this, 'AppRegistryAttributeGroup', {
450-
attributeGroupName: 'MediaAndEntertainmentSolutions',
454+
attributeGroupName: cdk.Aws.STACK_NAME,
451455
description: solutionName,
452456
attributes: {
453457
ApplicationType: 'AWS Solution',

0 commit comments

Comments
 (0)