This repo contains Terraform config for deploying the example Amazon Lex Bots.
- BookTrip
- OrderFlowers
- ScheduleAppointment
These were used when developing the aws_lex_* resources for the AWS Terraform Provider.
Unitl the aws_lex_resources #2616 pull request is merged and released, the provider must be built and installed.
-
Clone provider repo
cd $GOPATH/src/github.com/terraform-providers git clone git@github.com:terraform-providers/terraform-provider-aws.git
-
Build
cd $GOPATH/src/github.com/terraform-providers/terraform-provider-aws git checkout add_aws_lex_resources export GO111MODULE=on make tools make build
-
Clone examples repo
mkdir -p $GOPATH/src/github.com/jzbruno cd $GOPATH/src/github.com/jzbruno git clone git@github.com:jzbruno/terraform-aws-lex-examples.git
-
Choose an example.
cd terraform-aws-lex-examples cd book-trip
-
Update
_provider.tf
with your AWS account configuration. -
Init Terraform.
ln -s $GOPATH/bin/terraform-provider-aws terraform-provider-aws terraform init
-
Apply the config.
terraform apply