Create an external file reference in Infrastructure Composer - AWS Infrastructure Composer

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
  1. From an API Gateway or Step Functions enhanced component card, select Details to bring up the resource properties panel.

  2. Locate and select the Use external file option.

  3. 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.

  4. Save your changes.