Skip to content

Instantly share code, notes, and snippets.

@syall
Created September 25, 2023 01:37
Show Gist options
  • Save syall/24a78b829f45490bd765f95d1a854ad0 to your computer and use it in GitHub Desktop.
Save syall/24a78b829f45490bd765f95d1a854ad0 to your computer and use it in GitHub Desktop.
Building `aws-models` in `aws-sdk-js-v3` with the Smithy CLI
# Smithy CLI must be the latest release to match the version range `[1.0,2.0)`
smithy --version
# Assumes `codegen/sdk-codegen/smithy-build.json` exists
cd codegen/sdk-codegen/
# Filter out warnings and notes
smithy build --severity ERROR
// codegen/sdk-codegen/smithy-build.json
{
"version": "1.0",
"sources": ["aws-models"],
"maven": {
"dependencies": [
"software.amazon.smithy:smithy-rules-engine:[1.0,2.0)",
"software.amazon.smithy:smithy-waiters:[1.0,2.0)",
"software.amazon.smithy:smithy-aws-traits:[1.0,2.0)",
"software.amazon.smithy:smithy-aws-cloudformation-traits:[1.0,2.0)",
"software.amazon.smithy:smithy-aws-iam-traits:[1.0,2.0)"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment