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.yaml
file to the external file.For example, to reference the
api-spec.yaml
external file from the following project’s structure, specify./api-spec.yaml
as 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.