Skip to content

Commit

Permalink
cloudformation my beloved
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushik327 committed Apr 27, 2024
1 parent 6f86f7b commit f723ac2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cloudformation/lambda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ Parameters:
AllowedPattern: ^[a-zA-Z0-9]+[a-zA-Z0-9-]+[a-zA-Z0-9]+$
Default: infra-admin-api-auth-lambda

AADSecretName:
Type: String
AllowedPattern: ^[a-zA-Z0-9]+[a-zA-Z0-9-]+[a-zA-Z0-9]+$
Default: infra-admin-api-aad-secret

Conditions:
UseCustomDomainNameCond: !Equals [!Ref UseCustomDomainName, true]
IsProd: !Equals [!Ref Env, 'prod']
Expand Down Expand Up @@ -271,6 +276,15 @@ Resources:
Resource:
- !GetAtt MyDynamoDBTable.Arn
PolicyName: lambda-dynamo
- PolicyDocument:
Version: 2012-10-17
Statement:
- Action:
- secretsmanager:GetSecretValue
Effect: Allow
Resource:
- !Sub arn:aws:secretsmanager:${AWS::Region}:${AWS::AccountId}:secret:${AADSecretName}*
PolicyName: lambda-secret

AdminAPIAuthLambdaLogGroup:
Type: AWS::Logs::LogGroup
Expand Down

0 comments on commit f723ac2

Please sign in to comment.