Skip to content

Commit

Permalink
Update to version v3.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
eggoynes committed Nov 9, 2022
1 parent 819296e commit ec616c1
Show file tree
Hide file tree
Showing 7 changed files with 337 additions and 305 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ 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).

## [3.1.1] - 2022-11-9

### Changed
- Added stack name to CachePolicy to make unique name allowing for multiple concurrent stacks
- Added stack name to AppRegistry application name to allow for multiple concurrent stacks

## [3.1.0] - 2022-9-1

### New
Expand Down
19 changes: 19 additions & 0 deletions NOTICE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,24 @@ Stanford Javascript Crypto Library under the BSD license or under the GNU GPL, v
chai under the Massachusetts Institute of Technology (MIT) license
mocha under the Massachusetts Institute of Technology (MIT) license
aws-sdk-mock under the Massachusetts Institute of Technology (MIT) license
json-to-pretty-yaml under the Apache License Version 2.0
@aws-cdk/aws-cloudwatch under the Apache License Version 2.0
@aws-cdk/aws-lambda under the Apache License Version 2.0
@aws-cdk/aws-medialive under the Apache License Version 2.0
@aws-cdk/aws-s3 under the Apache License Version 2.0
@aws-cdk/aws-servicecatalogappregistry under the Apache License Version 2.0
@aws-cdk/aws-applicationinsights under the Apache License Version 2.0
@aws-cdk/core under the Apache License Version 2.0
@aws-solutions-constructs/aws-cloudfront-s3 under the Apache License Version 2.0
cdk-nag under the Apache License Version 2.0
source-map-support under the Massachusetts Institute of Technology (MIT) license
@aws-cdk/assert under the Apache License Version 2.0
@types/jest under the Massachusetts Institute of Technology (MIT) license
@types/node under the Massachusetts Institute of Technology (MIT) license
aws-cdk under the Apache License Version 2.0
jest under the Massachusetts Institute of Technology (MIT) license
ts-jest under the Massachusetts Institute of Technology (MIT) license
ts-node under the Massachusetts Institute of Technology (MIT) license
typescript under the Apache License Version 2.0

The licenses for these third party components are included in LICENSE.txt
10 changes: 7 additions & 3 deletions source/constructs/lib/live-streaming.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,11 @@ export class LiveStreaming extends cdk.Stack {
* Construct also includes a logs bucket for the CloudFront distribution and a CloudFront
* OriginAccessIdentity which is used to restrict access to S3 from CloudFront.
*/
const cachePolicy = new CachePolicy(this, 'CachePolicy', {
// Need Unique name for each Cache Policy.
const cachePolicyName = `CachePolicy-${cdk.Aws.STACK_NAME}`;

const cachePolicy = new CachePolicy(this, `CachePolicy`, {
cachePolicyName: cachePolicyName,
headerBehavior: {
behavior: 'whitelist',
headers: ['Origin']
Expand Down Expand Up @@ -445,9 +449,9 @@ export class LiveStreaming extends cdk.Stack {
/**
* AppRegistry
*/
const applicationName = 'LiveStreamingOnAwsWithAmazonS3';
const applicationName = `live-streaming-on-aws-with-amazon-s3-${cdk.Aws.STACK_NAME}`;
const attributeGroup = new appreg.AttributeGroup(this, 'AppRegistryAttributeGroup', {
attributeGroupName: 'MediaAndEntertainmentSolutions',
attributeGroupName: cdk.Aws.STACK_NAME,
description: solutionName,
attributes: {
ApplicationType: 'AWS Solution',
Expand Down
Loading

0 comments on commit ec616c1

Please sign in to comment.