Skip to content

Commit

Permalink
code based on review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hrai-nr committed Nov 25, 2024
1 parent cfcc2e3 commit b9eced9
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions firehose-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,17 @@ Resources:
Action:
- logs:PutLogEvents
Resource: 'arn:aws:logs:*:*:*'
- PolicyName: Firehose-SecretsManagerAccess
PolicyDocument:
Version: 2012-10-17
Statement:
- Effect: Allow
Action:
- 'secretsmanager:GetSecretValue'
Resource: !If [ShouldCreateSecret, !Ref NewRelicLogsLicenseKeySecret, ['*'] ]
- !If
- ShouldCreateSecret
- PolicyName: Firehose-SecretsManagerAccess
PolicyDocument:
Version: 2012-10-17
Statement:
- Effect: Allow
Action:
- 'secretsmanager:GetSecretValue'
Resource: !Ref NewRelicLogsLicenseKeySecret
- !Ref "AWS::NoValue"
Description: Role to allow firehose stream to access resources including putting events into S3 backup bucket
RoleName: !Join ['-', ['NewRelicLogsFirehoseRole', !Select [0, !Split ['-', !Select [2, !Split ['/', !Ref 'AWS::StackId' ]]]]]]

Expand Down

0 comments on commit b9eced9

Please sign in to comment.