Sample Amazon Lex chatbot based on AWS Fundamentals: Building Serverless Applications course exercise but using Pulumi to provision the AWS resources.
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
pulumi up
- Create or update the resources in a stackpulumi stack output [<property-name>]
- Show a stack's output propertiespulumi destroy
- Destroy an existing stack and its resourcespulumi stack rm [<stack-name>]
- Remove a stack and its configuration