Skip to content

Commit

Permalink
Adding new command: describe
Browse files Browse the repository at this point in the history
  • Loading branch information
ljacobsson committed Apr 6, 2023
1 parent d8cef57 commit e08b081
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,22 @@ Options:
```
![Demo](images/demo-gpt.gif)

### sam-patterns describe
Describes a pattern using ChatGPT and gives suggestions on how to improve security.

```
Usage: sampat describe|d [options]
Describes a SAM template using ChatGPT
Options:
-t, --template [template] SAM template file (default: "template.yaml")
-r, --repository-path [repository] Github repository path, i.e "aws-samples/serverless-patterns/apigw-sfn"
-m, --model [model] OpenAI model to use. Valid values are 'gpt-3.5-turbo' and 'gpt-4'. Note that gpt-3.5-turbo is fine for most use cases and that gpt-4 is slower and more expensive (default: "gpt-3.5-turbo")
-h, --help display help for command
```


#### Examples
* To generate SAM resources for a Lambda function that reads off a DynamoDB table: `sam-patterns generate -q "a lambda function that reads off a dynamodb table"`
* To generate a CDK stack for the same: `sam-patterns generate -q "a lambda function that reads off a dynamodb table" --output CDK --output-file cdk-stack.ts`
Expand Down

0 comments on commit e08b081

Please sign in to comment.