- Newest
- Most votes
- Most comments
Hello,
By default, the file picker in CloudFormation allows selection from all file types, as it relies on the standard OS file selection dialog. However, you can manually filter for .yaml or .json files using the search bar, the search bar at the top right of your Windows file explorer.
Hope it helps :)
When you select to upload a CloudFormation template in the AWS CloudFormation console, the file selection dialog typically shows all files on your PC by default. This is a standard behavior of file selection dialogs in most operating systems and web browsers, designed to give users full access to their file system.
However, CloudFormation templates are indeed specifically formatted as either YAML or JSON files. While the UI doesn't automatically filter for these file types, it's important to note that CloudFormation only supports templates in YAML or JSON format. These files can have various extensions such as .yaml, .yml, .json, .template, or even .txt.
To make your template selection easier, you can:
- Organize your CloudFormation templates in a specific folder for easy access.
- Use clear naming conventions for your template files, such as ending them with .yaml or .json.
- In the file selection dialog, you can typically type ".yaml" or ".json" in the filename field to filter for those specific file types.
Remember, regardless of the file extension, CloudFormation will attempt to parse the file as either YAML or JSON when you upload it. If the file is not in the correct format, CloudFormation will return an error during the template validation process.
Sources
CloudFormation template format - AWS CloudFormation
How CloudFormation works - AWS CloudFormation
Relevant content
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated a month ago
