Skip to content

Commit

Permalink
updates for SAR
Browse files Browse the repository at this point in the history
  • Loading branch information
cplee committed Apr 6, 2018
1 parent cf3661d commit 6bb6eb3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion template-sar.yml
@@ -1,6 +1,10 @@
AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'
Description: 'Create pipeline-dashboard application.'
Parameters:
PipelinePattern:
Description: 'The pattern of pipeline names to allow access to describe. Recommended value: *'
Type: String
Resources:
PipelineDashboardEventHandler:
Type: 'AWS::Serverless::Function'
Expand All @@ -23,7 +27,7 @@ Resources:
Policies:
- CloudWatchPutMetricPolicy: {}
- CodePipelineReadOnlyPolicy:
PipelineName: '*'
PipelineName: !Ref PipelinePattern
PipelineDashboardGenerator:
Type: 'AWS::Serverless::Function'
Properties:
Expand Down
6 changes: 5 additions & 1 deletion template.yml
@@ -1,6 +1,10 @@
AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'
Description: 'Create pipeline-dashboard application.'
Parameters:
PipelinePattern:
Description: 'The pattern of pipeline names to allow access to describe. Recommended value: *'
Type: String
Resources:
PipelineDashboardEventHandler:
Type: 'AWS::Serverless::Function'
Expand All @@ -23,7 +27,7 @@ Resources:
Policies:
- CloudWatchPutMetricPolicy: {}
- CodePipelineReadOnlyPolicy:
PipelineName: '*'
PipelineName: !Ref PipelinePattern
PipelineDashboardGenerator:
Type: 'AWS::Serverless::Function'
Properties:
Expand Down

0 comments on commit 6bb6eb3

Please sign in to comment.