Create an external file reference in Infrastructure Composer
You can create an external file reference from the resource properties panel of supported resources.
To create an external file reference
-
From an API Gateway or Step Functions enhanced component card, select Details to bring up the resource properties panel.
-
Locate and select the Use external file option.
-
Specify the relative path to the external file. This is the path from your
template.yamlfile to the external file.For example, to reference the
api-spec.yamlexternal file from the following project’s structure, specify./api-spec.yamlas your relative path.demo ├── api-spec.yaml ├── src │ └── Function │ ├── index.js │ └── package.json └── template.yaml
Note
If the external file and its specified path does not exist, Infrastructure Composer will create it.
-
Save your changes.