File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -420,7 +420,7 @@ When "Tags" key exists in function.json, lambroll set / remove tags to the lambd
420
420
When "Tags" key does not exist, lambroll doesn't manage tags.
421
421
If you hope to remove all tags, set ` "Tags": {} ` expressly.
422
422
423
- ### Jsonnet support for function configuration
423
+ #### Jsonnet support for function configuration
424
424
425
425
lambroll also can read function.jsonnet as [ Jsonnet] ( https://jsonnet.org/ ) format instead of plain JSON.
426
426
@@ -517,6 +517,25 @@ local must_env = std.native('must_env');
517
517
}
518
518
```
519
519
520
+ #### Resolve AWS caller identity
521
+
522
+ Note: This function is available only in Jsonnet.
523
+
524
+ The ` caller_identity ` native function resolves the AWS caller identity.
525
+
526
+ ``` jsonnet
527
+ local caller = std.native('caller_identity')();
528
+ {
529
+ Account: caller.Account,
530
+ Arn: caller.Arn,
531
+ UserId: caller.UserId,
532
+ }
533
+ ```
534
+
535
+ The ` caller_identity ` function returns an object containing the following fields: ` Account ` , ` Arn ` , and ` UserId ` .
536
+
537
+ This object is the same as the result of [ GetCallerIdentity] ( https://docs.aws.amazon.com/STS/latest/APIReference/API_GetCallerIdentity.html ) API.
538
+
520
539
#### Environment variables from envfile
521
540
522
541
` lambroll --envfile .env1 .env2 ` reads files named .env1 and .env2 as environment files and export variables in these files.
You can’t perform that action at this time.
0 commit comments