/pulumi-aws-lex-chatbot

Sample Amazon Lex chatbot provisioned using Pulumi

Primary LanguagePythonMIT LicenseMIT

Amazon Lex chatbot

Sample Amazon Lex chatbot based on AWS Fundamentals: Building Serverless Applications course exercise but using Pulumi to provision the AWS resources.

Bot testing

Create Pulumi project and stack

export AWS_PROFILE=pasmen
pulumi login --cloud-url s3://pulumi.linhart.tech
pulumi new aws-python --dir infra

Provide these values:

  • project name: aws-lex-chatbot
  • project description: Sample chatbot using Amazon Lex
  • stack name: aws-lex-chatbot-prod
  • passphrase: <secret-passphrase>
  • aws:region: eu-central-1
export PULUMI_CONFIG_PASSPHRASE=<secret-passphrase>
cd infra
pulumi config set aws:profile pasmen

vim __main__.py

Manage the stack

  • pulumi up - Create or update the resources in a stack
  • pulumi stack output [<property-name>] - Show a stack's output properties
  • pulumi destroy - Destroy an existing stack and its resources
  • pulumi stack rm [<stack-name>] - Remove a stack and its configuration

Resources