Skip to content

Commit 7663a4f

Browse files
authored
Merge pull request #42 from aws-solutions/release/v3.2.7
Release v3.2.7
2 parents 86abe12 + 6ecad4d commit 7663a4f

File tree

8 files changed

+57
-22
lines changed

8 files changed

+57
-22
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [3.2.7] - 2024-11-21
9+
10+
### Security
11+
12+
- Security updates for npm packages
13+
814
## [3.2.6] - 2024-09-17
915

1016
### Security

solution-manifest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
id: SO0109
22
name: live-streaming-on-aws-with-amazon-s3
3-
version: v3.2.6
3+
version: v3.2.7
44
cloudformation_templates:
55
- template: live-streaming-on-aws-with-amazon-s3.template
66
main_template: true

source/constructs/lib/live-streaming.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,20 @@ export class LiveStreaming extends cdk.Stack {
227227
const mediaLiveRole = new iam.Role(this, 'MediaLiveRole', {
228228
assumedBy: new iam.ServicePrincipal('medialive.amazonaws.com'),
229229
});
230+
/**
231+
* MediaLive needs s3:PutObject access to show thumbnails in the console.
232+
* It uses an internal bucket but doesn't expose a name for the bucket so we can't restrict by bucket name.
233+
* https://docs.aws.amazon.com/medialive/latest/ug/thumbnails-enable.html#thumbnails-enable-iam
234+
*/
235+
const thumbnailPolicyStatement = new iam.PolicyStatement({
236+
actions: [ 's3:PutObject' ],
237+
conditions: {
238+
StringNotEquals: {
239+
's3:ResourceAccount': `${cdk.Aws.ACCOUNT_ID}`
240+
}
241+
}
242+
});
243+
thumbnailPolicyStatement.addAllResources()
230244
const mediaLivePolicy = new iam.Policy(this, 'mediaLivePolicy', {
231245
statements: [
232246
new iam.PolicyStatement({
@@ -243,6 +257,7 @@ export class LiveStreaming extends cdk.Stack {
243257
}
244258
}
245259
}),
260+
thumbnailPolicyStatement,
246261
new iam.PolicyStatement({
247262
resources: [`arn:${cdk.Aws.PARTITION}:ssm:${cdk.Aws.REGION}:${cdk.Aws.ACCOUNT_ID}:parameter/*`],
248263
actions: [
@@ -527,4 +542,4 @@ export class LiveStreaming extends cdk.Stack {
527542
solutionId
528543
);
529544
}
530-
}
545+
}

source/constructs/package-lock.json

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

source/constructs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "live-streaming-on-aws-with-amazon-s3",
3-
"version": "3.2.6",
3+
"version": "3.2.7",
44
"author": {
55
"name": "Amazon Web Services",
66
"url": "https://aws.amazon.com/solutions"

source/constructs/test/__snapshots__/live-streaming.test.ts.snap

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1439,6 +1439,18 @@ exports[`LiveStreaming Stack Test 1`] = `
14391439
],
14401440
},
14411441
},
1442+
{
1443+
Action: s3:PutObject,
1444+
Condition: {
1445+
StringNotEquals: {
1446+
s3:ResourceAccount: {
1447+
Ref: AWS::AccountId,
1448+
},
1449+
},
1450+
},
1451+
Effect: Allow,
1452+
Resource: *,
1453+
},
14421454
{
14431455
Action: [
14441456
ssm:DescribeParameters,

source/custom-resource/package-lock.json

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

source/custom-resource/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "live-streaming-single-pipeline",
3-
"version": "3.2.6",
3+
"version": "3.2.7",
44
"author": {
55
"name": "Amazon Web Services",
66
"url": "https://aws.amazon.com/solutions"

0 commit comments

Comments
 (0)