File tree 2 files changed +11
-5
lines changed
2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ const outputsList = [
28
28
'role' ,
29
29
'layer' ,
30
30
'arn' ,
31
- 'region'
31
+ 'region' ,
32
+ 'tags'
32
33
]
33
34
34
35
const defaults = {
@@ -41,7 +42,8 @@ const defaults = {
41
42
handler : 'handler.hello' ,
42
43
runtime : 'nodejs10.x' ,
43
44
env : { } ,
44
- region : 'us-east-1'
45
+ region : 'us-east-1' ,
46
+ tags : { }
45
47
}
46
48
47
49
class AwsLambda extends Component {
Original file line number Diff line number Diff line change @@ -76,7 +76,8 @@ const createLambda = async ({
76
76
zipPath,
77
77
bucket,
78
78
role,
79
- layer
79
+ layer,
80
+ tags
80
81
} ) => {
81
82
const params = {
82
83
FunctionName : name ,
@@ -88,6 +89,7 @@ const createLambda = async ({
88
89
Role : role . arn ,
89
90
Runtime : runtime ,
90
91
Timeout : timeout ,
92
+ Tags : tags ,
91
93
Environment : {
92
94
Variables : env
93
95
}
@@ -119,7 +121,8 @@ const updateLambdaConfig = async ({
119
121
env,
120
122
description,
121
123
role,
122
- layer
124
+ layer,
125
+ tags
123
126
} ) => {
124
127
const functionConfigParams = {
125
128
FunctionName : name ,
@@ -180,7 +183,8 @@ const getLambda = async ({ lambda, name }) => {
180
183
memory : res . MemorySize ,
181
184
hash : res . CodeSha256 ,
182
185
env : res . Environment ? res . Environment . Variables : { } ,
183
- arn : res . FunctionArn
186
+ arn : res . FunctionArn ,
187
+ tags : res . Tags
184
188
}
185
189
} catch ( e ) {
186
190
if ( e . code === 'ResourceNotFoundException' ) {
You can’t perform that action at this time.
0 commit comments