You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26-2Lines changed: 26 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,7 @@ Put options under `custom.appsync-simulator` in your `serverless.yml` file
55
55
| lambda.loadLocalEnv | false | If `true`, all environment variables (`$ env`) will be accessible from the resolver function. Read more in section [Environment variables](#environment-variables). |
56
56
| refMap | {} | A mapping of [resource resolutions](#resource-cloudformation-functions-resolution) for the `Ref` function |
57
57
| getAttMap | {} | A mapping of [resource resolutions](#resource-cloudformation-functions-resolution) for the `GetAtt` function |
58
+
| importValueMap | {} | A mapping of [resource resolutions](#resource-cloudformation-functions-resolution) for the `ImportValue` function |
58
59
| dynamoDb.endpoint |http://localhost:8000| Dynamodb endpoint. Specify it if you're not using serverless-dynamodb-local. Otherwise, port is taken from dynamodb-local conf |
59
60
| dynamoDb.region | localhost | Dynamodb region. Specify it if you're connecting to a remote Dynamodb intance. |
60
61
| dynamoDb.accessKeyId | DEFAULT_ACCESS_KEY | AWS Access Key ID to access DynamoDB |
@@ -73,7 +74,7 @@ custom:
73
74
74
75
# Resource CloudFormation functions resolution
75
76
76
-
This plugin supports *some* resources resolution from the `Ref`and `Fn::GetAtt` functions
77
+
This plugin supports *some* resources resolution from the `Ref`, `Fn::GetAtt`and `Fn::ImportValue` functions
77
78
in your yaml file. It also supports *some* other Cfn functions such as `Fn::Join`, `Fb::Sub`, etc.
78
79
79
80
**Note:** Under the hood, this features relies on the [cfn-resolver-lib](https://github.com/robessog/cfn-resolver-lib) package. For more info on supported cfn functions, refer to [the documentation](https://github.com/robessog/cfn-resolver-lib/blob/master/README.md)
@@ -115,10 +116,11 @@ dataSources:
115
116
116
117
Sometimes, some references **cannot** be resolved, as they come from an *Output* from Cloudformation; or you might want to use mocked values in your local environment.
117
118
118
-
In those cases, you can define (or override) those values using the `refMap`and `getAttMap` options.
119
+
In those cases, you can define (or override) those values using the `refMap`, `getAttMap` and `importValueMap` options.
119
120
120
121
- `refMap`takes a mapping of *resource name* to *value* pairs
121
122
- `getAttMap`takes a mapping of *resource name* to *attribute/values* pairs
123
+
- `importValueMap`takes a mapping of *import name* to *values* pairs
0 commit comments