Reference external files in Infrastructure Composer - AWS Infrastructure Composer

Reference external files in Infrastructure Composer

You can use external files with your AWS Serverless Application Model (AWS SAM) templates to reuse repeated code and organize your projects. For example, you may have multiple Amazon API Gateway REST API resources that are described by an OpenAPI specification. Instead of replicating the OpenAPI specification code in your template, you can create one external file and reference it for each of your resources.

AWS Infrastructure Composer supports the following external file use cases:

  • API Gateway REST API resources defined by external OpenAPI specification files.

  • AWS Step Functions state machine resources defined by external state machine definition files.

To learn more about configuring external files for supported resources, see the following:

Note

To reference external files with Infrastructure Composer from the Infrastructure Composer console, you must use Infrastructure Composer in local sync mode. For more information, see Locally sync and save your project in the Infrastructure Composer console.