Skip to content

Commit 6bb6eb3

Browse files
committed
updates for SAR
1 parent cf3661d commit 6bb6eb3

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

template-sar.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
AWSTemplateFormatVersion: '2010-09-09'
22
Transform: 'AWS::Serverless-2016-10-31'
33
Description: 'Create pipeline-dashboard application.'
4+
Parameters:
5+
PipelinePattern:
6+
Description: 'The pattern of pipeline names to allow access to describe. Recommended value: *'
7+
Type: String
48
Resources:
59
PipelineDashboardEventHandler:
610
Type: 'AWS::Serverless::Function'
@@ -23,7 +27,7 @@ Resources:
2327
Policies:
2428
- CloudWatchPutMetricPolicy: {}
2529
- CodePipelineReadOnlyPolicy:
26-
PipelineName: '*'
30+
PipelineName: !Ref PipelinePattern
2731
PipelineDashboardGenerator:
2832
Type: 'AWS::Serverless::Function'
2933
Properties:

template.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
AWSTemplateFormatVersion: '2010-09-09'
22
Transform: 'AWS::Serverless-2016-10-31'
33
Description: 'Create pipeline-dashboard application.'
4+
Parameters:
5+
PipelinePattern:
6+
Description: 'The pattern of pipeline names to allow access to describe. Recommended value: *'
7+
Type: String
48
Resources:
59
PipelineDashboardEventHandler:
610
Type: 'AWS::Serverless::Function'
@@ -23,7 +27,7 @@ Resources:
2327
Policies:
2428
- CloudWatchPutMetricPolicy: {}
2529
- CodePipelineReadOnlyPolicy:
26-
PipelineName: '*'
30+
PipelineName: !Ref PipelinePattern
2731
PipelineDashboardGenerator:
2832
Type: 'AWS::Serverless::Function'
2933
Properties:

0 commit comments

Comments
 (0)