Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

r/kinesis_analytics_application: Support import #8027

Merged
merged 2 commits into from
Mar 21, 2019

Conversation

atsushi-ishibashi
Copy link
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

Closes #7549

Changes proposed in this pull request:

  • aws_kinesis_analytics_application supports import

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAWSKinesisAnalyticsApplication_basic'
TF_ACC=1 go test ./aws -v -parallel 20 -run=TestAccAWSKinesisAnalyticsApplication_basic -timeout 120m
=== RUN   TestAccAWSKinesisAnalyticsApplication_basic
=== PAUSE TestAccAWSKinesisAnalyticsApplication_basic
=== CONT  TestAccAWSKinesisAnalyticsApplication_basic
--- PASS: TestAccAWSKinesisAnalyticsApplication_basic (33.40s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	33.450s

@ghost ghost added documentation Introduces or discusses updates to documentation. size/S Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Mar 20, 2019
{
ResourceName: resName,
ImportState: true,
ImportStateVerify: true,
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please add this TestStep to the majority of the other acceptance tests so we can ensure we are properly able to import all configurations? Thanks.

@bflad bflad added enhancement Requests to existing resources that expand the functionality or scope. service/kinesisanalytics Issues and PRs that pertain to the kinesisanalytics service. labels Mar 20, 2019
@ghost ghost added size/M Managed by automation to categorize the size of a PR. and removed size/S Managed by automation to categorize the size of a PR. labels Mar 21, 2019
@atsushi-ishibashi
Copy link
Contributor Author

TF_ACC=1 go test ./aws -v -parallel 20 -run=TestAccAWSKinesisAnalyticsApplication_ -timeout 120m
=== RUN   TestAccAWSKinesisAnalyticsApplication_basic
=== PAUSE TestAccAWSKinesisAnalyticsApplication_basic
=== RUN   TestAccAWSKinesisAnalyticsApplication_update
=== PAUSE TestAccAWSKinesisAnalyticsApplication_update
=== RUN   TestAccAWSKinesisAnalyticsApplication_addCloudwatchLoggingOptions
=== PAUSE TestAccAWSKinesisAnalyticsApplication_addCloudwatchLoggingOptions
=== RUN   TestAccAWSKinesisAnalyticsApplication_updateCloudwatchLoggingOptions
=== PAUSE TestAccAWSKinesisAnalyticsApplication_updateCloudwatchLoggingOptions
=== RUN   TestAccAWSKinesisAnalyticsApplication_inputsKinesisFirehose
=== PAUSE TestAccAWSKinesisAnalyticsApplication_inputsKinesisFirehose
=== RUN   TestAccAWSKinesisAnalyticsApplication_inputsKinesisStream
=== PAUSE TestAccAWSKinesisAnalyticsApplication_inputsKinesisStream
=== RUN   TestAccAWSKinesisAnalyticsApplication_inputsAdd
=== PAUSE TestAccAWSKinesisAnalyticsApplication_inputsAdd
=== RUN   TestAccAWSKinesisAnalyticsApplication_inputsUpdateKinesisStream
=== PAUSE TestAccAWSKinesisAnalyticsApplication_inputsUpdateKinesisStream
=== RUN   TestAccAWSKinesisAnalyticsApplication_outputsKinesisStream
=== PAUSE TestAccAWSKinesisAnalyticsApplication_outputsKinesisStream
=== RUN   TestAccAWSKinesisAnalyticsApplication_outputsMultiple
=== PAUSE TestAccAWSKinesisAnalyticsApplication_outputsMultiple
=== RUN   TestAccAWSKinesisAnalyticsApplication_outputsAdd
=== PAUSE TestAccAWSKinesisAnalyticsApplication_outputsAdd
=== RUN   TestAccAWSKinesisAnalyticsApplication_outputsUpdateKinesisStream
=== PAUSE TestAccAWSKinesisAnalyticsApplication_outputsUpdateKinesisStream
=== RUN   TestAccAWSKinesisAnalyticsApplication_Outputs_Lambda_Add
=== PAUSE TestAccAWSKinesisAnalyticsApplication_Outputs_Lambda_Add
=== RUN   TestAccAWSKinesisAnalyticsApplication_Outputs_Lambda_Create
=== PAUSE TestAccAWSKinesisAnalyticsApplication_Outputs_Lambda_Create
=== RUN   TestAccAWSKinesisAnalyticsApplication_referenceDataSource
=== PAUSE TestAccAWSKinesisAnalyticsApplication_referenceDataSource
=== RUN   TestAccAWSKinesisAnalyticsApplication_referenceDataSourceUpdate
=== PAUSE TestAccAWSKinesisAnalyticsApplication_referenceDataSourceUpdate
=== CONT  TestAccAWSKinesisAnalyticsApplication_basic
=== CONT  TestAccAWSKinesisAnalyticsApplication_Outputs_Lambda_Create
=== CONT  TestAccAWSKinesisAnalyticsApplication_outputsKinesisStream
=== CONT  TestAccAWSKinesisAnalyticsApplication_inputsUpdateKinesisStream
=== CONT  TestAccAWSKinesisAnalyticsApplication_inputsAdd
=== CONT  TestAccAWSKinesisAnalyticsApplication_inputsKinesisStream
=== CONT  TestAccAWSKinesisAnalyticsApplication_inputsKinesisFirehose
=== CONT  TestAccAWSKinesisAnalyticsApplication_updateCloudwatchLoggingOptions
=== CONT  TestAccAWSKinesisAnalyticsApplication_addCloudwatchLoggingOptions
=== CONT  TestAccAWSKinesisAnalyticsApplication_update
=== CONT  TestAccAWSKinesisAnalyticsApplication_outputsUpdateKinesisStream
=== CONT  TestAccAWSKinesisAnalyticsApplication_Outputs_Lambda_Add
=== CONT  TestAccAWSKinesisAnalyticsApplication_referenceDataSourceUpdate
=== CONT  TestAccAWSKinesisAnalyticsApplication_outputsAdd
=== CONT  TestAccAWSKinesisAnalyticsApplication_outputsMultiple
=== CONT  TestAccAWSKinesisAnalyticsApplication_referenceDataSource
--- PASS: TestAccAWSKinesisAnalyticsApplication_basic (31.27s)
--- PASS: TestAccAWSKinesisAnalyticsApplication_update (51.40s)
--- PASS: TestAccAWSKinesisAnalyticsApplication_Outputs_Lambda_Create (58.81s)
--- PASS: TestAccAWSKinesisAnalyticsApplication_referenceDataSource (71.59s)
--- PASS: TestAccAWSKinesisAnalyticsApplication_addCloudwatchLoggingOptions (74.71s)
--- PASS: TestAccAWSKinesisAnalyticsApplication_updateCloudwatchLoggingOptions (83.73s)
--- PASS: TestAccAWSKinesisAnalyticsApplication_Outputs_Lambda_Add (86.64s)
--- PASS: TestAccAWSKinesisAnalyticsApplication_inputsKinesisStream (117.99s)
--- PASS: TestAccAWSKinesisAnalyticsApplication_referenceDataSourceUpdate (119.98s)
--- PASS: TestAccAWSKinesisAnalyticsApplication_outputsMultiple (124.08s)
--- PASS: TestAccAWSKinesisAnalyticsApplication_outputsKinesisStream (131.99s)
--- PASS: TestAccAWSKinesisAnalyticsApplication_outputsAdd (145.78s)
--- FAIL: TestAccAWSKinesisAnalyticsApplication_inputsAdd (149.07s)
    testing.go:599: Error destroying resource! WARNING: Dangling resources
        may exist. The full state and error is shown below.
        
        Error: Check failed: Error: Application still exists
        
        State: <no state>
--- PASS: TestAccAWSKinesisAnalyticsApplication_inputsKinesisFirehose (151.82s)
--- PASS: TestAccAWSKinesisAnalyticsApplication_inputsUpdateKinesisStream (229.70s)
--- PASS: TestAccAWSKinesisAnalyticsApplication_outputsUpdateKinesisStream (230.27s)
FAIL
FAIL	github.com/terraform-providers/terraform-provider-aws/aws	230.322s

TF_ACC=1 go test ./aws -v -parallel 20 -run=TestAccAWSKinesisAnalyticsApplication_inputsAdd -timeout 120m
=== RUN   TestAccAWSKinesisAnalyticsApplication_inputsAdd
=== PAUSE TestAccAWSKinesisAnalyticsApplication_inputsAdd
=== CONT  TestAccAWSKinesisAnalyticsApplication_inputsAdd
--- PASS: TestAccAWSKinesisAnalyticsApplication_inputsAdd (163.68s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	163.726s

@bflad bflad added this to the v2.3.0 milestone Mar 21, 2019
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

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

Looks good, thanks @atsushi-ishibashi! 🚀

--- PASS: TestAccAWSKinesisAnalyticsApplication_basic (10.62s)
--- PASS: TestAccAWSKinesisAnalyticsApplication_update (15.13s)
--- PASS: TestAccAWSKinesisAnalyticsApplication_addCloudwatchLoggingOptions (26.27s)
--- PASS: TestAccAWSKinesisAnalyticsApplication_referenceDataSource (29.27s)
--- PASS: TestAccAWSKinesisAnalyticsApplication_Outputs_Lambda_Create (35.48s)
--- PASS: TestAccAWSKinesisAnalyticsApplication_updateCloudwatchLoggingOptions (35.55s)
--- PASS: TestAccAWSKinesisAnalyticsApplication_Outputs_Lambda_Add (36.84s)
--- PASS: TestAccAWSKinesisAnalyticsApplication_referenceDataSourceUpdate (50.34s)
--- PASS: TestAccAWSKinesisAnalyticsApplication_outputsKinesisStream (88.83s)
--- PASS: TestAccAWSKinesisAnalyticsApplication_outputsMultiple (88.83s)
--- PASS: TestAccAWSKinesisAnalyticsApplication_inputsKinesisStream (88.97s)
--- PASS: TestAccAWSKinesisAnalyticsApplication_outputsAdd (104.87s)
--- PASS: TestAccAWSKinesisAnalyticsApplication_inputsAdd (110.69s)
--- PASS: TestAccAWSKinesisAnalyticsApplication_inputsKinesisFirehose (118.71s)
--- PASS: TestAccAWSKinesisAnalyticsApplication_inputsUpdateKinesisStream (172.64s)
--- PASS: TestAccAWSKinesisAnalyticsApplication_outputsUpdateKinesisStream (195.96s)

@bflad bflad merged commit 6ec1dbb into hashicorp:master Mar 21, 2019
bflad added a commit that referenced this pull request Mar 21, 2019
@bflad
Copy link
Contributor

bflad commented Mar 21, 2019

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

@ghost
Copy link

ghost commented Mar 31, 2020

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 and limited conversation to collaborators Mar 31, 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. enhancement Requests to existing resources that expand the functionality or scope. service/kinesisanalytics Issues and PRs that pertain to the kinesisanalytics service. size/M 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.

Add support for import of AWS Kinesis Analytics Application
2 participants