Skip to content

Commit

Permalink
Add Description property to Lambda Function
Browse files Browse the repository at this point in the history
Useful from a billing & resource management perspective, as it can
provide a little bit of extra context on what the Function is used for.
  • Loading branch information
ellsclytn committed Aug 10, 2022
1 parent 73110c5 commit b704753
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ Parameters:
Default: default
MinLength: 1

RootStackName:
Description: Name of parent CloudFormation stack (if exists)
Type: String
Default: !Ref AWS::StackName

AgentAutoScaleGroup:
Description: The name of the Auto Scaling group to set desired count on.
Type: String
Expand Down Expand Up @@ -155,6 +160,7 @@ Resources:
AutoscalingFunction:
Type: AWS::Serverless::Function
Properties:
Description: !Sub Polls Buildkite and triggers scale out of elastic stack ${RootStackName}
CodeUri: handler.zip
Role: !If [ CreateRole, !GetAtt ExecutionRole.Arn, !Ref AutoscalingLambdaExecutionRole ]
PermissionsBoundary: !If [ SetRolePermissionsBoundaryARN, !Ref RolePermissionsBoundaryARN, !Ref "AWS::NoValue" ]
Expand Down

0 comments on commit b704753

Please sign in to comment.