Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify samconfig.toml header keys #2378

Closed
mousedownmike opened this issue Nov 14, 2020 · 1 comment
Closed

Clarify samconfig.toml header keys #2378

mousedownmike opened this issue Nov 14, 2020 · 1 comment

Comments

@mousedownmike
Copy link

Describe your idea/feature/enhancement

The AWS SAM CLI configuration file documentation does not provide enough information to properly format a samconfig.toml file when a subcommand contains hyphens (-).

The relevant documentation is:

For subcommands, the format of the table header is [environment.command_subcommand.parameters]. For example, for the sam local invoke command, the configuration table header is [default.local_invoke.parameters].

Proposal

Add a section to read:

Hyphenated subcommands must have hyphens converted to underscores. For example, for the sam local start-api command, the configuration table header is [default.local_start_api.parameters].

Additional Details

It's possible that this is something most people know about the TOML format but it is difficult to figure out and remember the conversions between JSON, YAML and TOML. I just spent a few hours figuring out that the parameter-overrides CLI argument needs to be converted to parameter_overrides when placed in the samconfig.toml. It a very difficult visual distinction to make.

@mousedownmike
Copy link
Author

Opened in Docs repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant