forked from aws-samples/aws-lambda-layer-awscli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sam.yaml
32 lines (30 loc) · 1.07 KB
/
sam.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: "sample for aws --version"
Resources:
lambdalayerawscli:
Type: AWS::Serverless::Application
Properties:
Location:
ApplicationId: arn:aws:serverlessrepo:us-east-1:903779448426:applications/lambda-layer-awscli
# You should get the latest SemanticVersion with the following aws-cli:
# aws serverlessrepo get-application --application-id arn:aws:serverlessrepo:us-east-1:903779448426:applications/lambda-layer-awscli --query 'Version.SemanticVersion' --output text
SemanticVersion: 1.16.214
SampleFunction:
Type: AWS::Serverless::Function
Properties:
Handler: main
CodeUri: ./func.d
Runtime: provided
Environment:
Variables:
AWS_ACCOUNT_ID: !Sub "${AWS::AccountId}"
Layers:
- !GetAtt lambdalayerawscli.Outputs.LayerVersionArn
MemorySize: 512
Timeout: 10
Outputs:
LayerArn:
Value: !GetAtt lambdalayerawscli.Outputs.LayerVersionArn
FuncArn:
Value: !Ref SampleFunction