Skip to content

Add Lex bot data source and resoruce#8918

Merged
gdavison merged 4 commits into
hashicorp:masterfrom
jzbruno:add_aws_lex_bot
Oct 2, 2020
Merged

Add Lex bot data source and resoruce#8918
gdavison merged 4 commits into
hashicorp:masterfrom
jzbruno:add_aws_lex_bot

Conversation

@jzbruno

@jzbruno jzbruno commented Jun 10, 2019

Copy link
Copy Markdown
Contributor

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" comments, they generate extra noise for pull request followers and do not help prioritize the request

Relates #905 and split from PR #2616

Release note for CHANGELOG:

FEATURES:
* **New Data Source:** `aws_lex_bot`
* **New Resource:** `aws_lex_bot`

Output from acceptance testing:

The acceptance tests for this resource depend on PR #8917 being merged. I will enable tests and update once that happens.

$ make testacc TESTARGS='-run=TestAccDataSourceAwsLexBot'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./... -v -parallel 20 -run=TestAccDataSourceAwsLexBot -timeout 120m
?   	github.com/terraform-providers/terraform-provider-aws	[no test files]
=== RUN   TestAccDataSourceAwsLexBot
--- SKIP: TestAccDataSourceAwsLexBot (0.00s)
    data_source_aws_lex_bot_test.go:12: The Lex intent PR https://github.com/terraform-providers/terraform-provider-aws/pull/8917 must be merged for this test to pass.
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	0.041s

$ make testacc TESTARGS='-run=TestAccAwsLexBot'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./... -v -parallel 20 -run=TestAccAwsLexBot -timeout 120m
?   	github.com/terraform-providers/terraform-provider-aws	[no test files]
=== RUN   TestAccAwsLexBot
--- SKIP: TestAccAwsLexBot (0.00s)
    resource_aws_lex_bot_test.go:15: The Lex intent PR https://github.com/terraform-providers/terraform-provider-aws/pull/8917 must be merged for this test to pass.
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	0.044s

@ghost ghost added size/XXL Managed by automation to categorize the size of a PR. documentation Introduces or discusses updates to documentation. provider Pertains to the provider itself, rather than any interaction with AWS. service/lexmodels Issues and PRs that pertain to the lexmodels service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Jun 10, 2019
@nywilken nywilken added this to the v2.16.0 milestone Jun 10, 2019
@nywilken nywilken self-assigned this Jun 14, 2019
Comment thread aws/data_source_aws_lex_bot.go Outdated
Comment thread aws/resource_aws_lex_bot.go Outdated
Comment thread aws/resource_aws_lex_bot.go Outdated
@nywilken nywilken modified the milestones: v2.16.0, v2.17.0, v2.18.0 Jun 20, 2019
@jzbruno jzbruno requested a review from a team June 24, 2019 05:47
@bflad bflad modified the milestones: v2.18.0, v2.19.0, v2.20.0 Jul 5, 2019
@nywilken nywilken modified the milestones: v2.20.0, v2.21.0 Jul 19, 2019
@bflad bflad modified the milestones: v2.21.0, v2.22.0 Jul 25, 2019
@nywilken

Copy link
Copy Markdown
Contributor

@jzbruno, and folks following along, my apologies for the longer than normal delays on pushing forward this feature. I haven't had the chance to devote the needed time get the other pull-requests into a mergable state 😳 I appreciate your patience as we continue to work through this resource.

While I can't say that it will get into the next upcoming release(s), I can say that the resource is still a priority for us.

To not give false expectations around the release of this resource I am going to remove the milestone. But let's coordinate on when would be ideal to continue pushing forward. If you find that your availability has also slowed please let me know if we should consider having another community member or the maintainers take over the pull-request(s).

Cheers

@nywilken nywilken removed this from the v2.22.0 milestone Jul 29, 2019
@jzbruno

jzbruno commented Jul 30, 2019

Copy link
Copy Markdown
Contributor Author

@nywilken I will look at this tonight.

@aeschright aeschright added the new-resource Introduces a new resource. label Aug 19, 2019
@jzbruno

jzbruno commented Aug 27, 2019

Copy link
Copy Markdown
Contributor Author

@nywilken Asked a couple questions but otherwise this one is ready for review.

@nywilken nywilken removed their assignment Oct 10, 2019
@maryelizbeth maryelizbeth added this to the Roadmap milestone May 20, 2020
@gdavison gdavison self-assigned this Jun 8, 2020
@nbmustafa

Copy link
Copy Markdown

any update on the progress of reviewing this PR?

@jzbruno

jzbruno commented Sep 14, 2020

Copy link
Copy Markdown
Contributor Author

@nashvan We were able to get slot type reviewed and merged. The remaining PRs will need to be updated with the same changes and merged one by one. As I have time this week I will try to get them ready for review.

@gdavison gdavison added the waiting-response Maintainers are waiting on response from community or contributor. label Sep 15, 2020

@gdavison gdavison left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added a number of suggestions

Comment thread aws/data_source_aws_lex_bot.go Outdated
Comment thread aws/resource_aws_lex_bot.go Outdated
Comment thread aws/resource_aws_lex_bot.go Outdated
Comment thread aws/resource_aws_lex_bot.go Outdated
Comment thread aws/resource_aws_lex_bot.go Outdated
Comment thread aws/resource_aws_lex_bot.go Outdated
Comment thread aws/resource_aws_lex_bot_test.go Outdated
Comment thread aws/resource_aws_lex_bot_test.go Outdated
Comment thread website/aws.erb Outdated
Comment thread website/docs/r/lex_bot.html.markdown Outdated
…s review comments, still need to expand on resource tests
@jzbruno

jzbruno commented Sep 27, 2020

Copy link
Copy Markdown
Contributor Author

@gdavison Just a heads up. I have pushed initial changes for this PR. I still need to expand on the resource tests. I rebased this on top of the Intent PR so we will want to get that merged first. This is the only reasonable way to test the bot resource.

@ghost ghost removed the waiting-response Maintainers are waiting on response from community or contributor. label Sep 27, 2020
@jzbruno

jzbruno commented Sep 28, 2020

Copy link
Copy Markdown
Contributor Author

@gdavison Ok. Tests have been committed. I have a question though, there is an internal AWS API timeout I cannot set, which causes timeouts when running all the tests in parallel. Any ideas?

Error: error creating bot test_bot_idyrjilt: timeout while waiting for state to become 'success' (timeout: 1m0s)

@gdavison gdavison left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

--- PASS: TestAccDataSourceAwsLexBot_basic (166.41s)
--- PASS: TestAccAwsLexBot_disappears (181.14s)
--- PASS: TestAccAwsLexBot_basic (201.66s)
--- PASS: TestAccAwsLexBot_abortStatement (300.91s)
--- PASS: TestAccAwsLexBot_locale (302.35s)
--- PASS: TestAccAwsLexBot_voiceId (308.37s)
--- PASS: TestAccAwsLexBot_intents (310.30s)
--- PASS: TestAccAwsLexBot_enableModelImprovements (312.01s)
--- PASS: TestAccAwsLexBot_clarificationPrompt (313.13s)
--- PASS: TestAccAwsLexBot_idleSessionTtlInSeconds (315.98s)
--- PASS: TestAccAwsLexBot_detectSentiment (317.44s)
--- PASS: TestAccAwsLexBot_childDirected (319.52s)
--- PASS: TestAccAwsLexBot_description (328.22s)
--- PASS: TestAccDataSourceAwsLexBot_withVersion (45.35s)
--- PASS: TestAccAwsLexBot_createVersion (69.65s)

gdavison added a commit that referenced this pull request Oct 2, 2020
@gdavison gdavison modified the milestones: Roadmap, v3.9.0 Oct 2, 2020
@gdavison gdavison merged commit 94105d4 into hashicorp:master Oct 2, 2020
@ghost

ghost commented Oct 2, 2020

Copy link
Copy Markdown

This has been released in version 3.9.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ghost

ghost commented Nov 1, 2020

Copy link
Copy Markdown

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Nov 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

documentation Introduces or discusses updates to documentation. new-resource Introduces a new resource. provider Pertains to the provider itself, rather than any interaction with AWS. service/lexmodels Issues and PRs that pertain to the lexmodels service. size/XXL Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants