Skip to content

When i select upload a cloud formation template in cloudformation. Why the UI is listing down all the files in my PC . Can we just show yaml/json files ?

0

Enter image description here

asked 9 months ago72 views
2 Answers
1

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 :)

AWS
EXPERT
answered 9 months ago
0

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:

  1. Organize your CloudFormation templates in a specific folder for easy access.
  2. Use clear naming conventions for your template files, such as ending them with .yaml or .json.
  3. 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

answered 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.