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

New Resource: aws_athena_workgroup #9290

Merged
merged 39 commits into from
Jul 11, 2019
Merged

New Resource: aws_athena_workgroup #9290

merged 39 commits into from
Jul 11, 2019

Conversation

bflad
Copy link
Contributor

@bflad bflad commented Jul 10, 2019

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

Includes and supersedes #7995
Includes and supersedes #8136
Closes #7650
Closes #7667

Release note for CHANGELOG:

* **New Resource:** `aws_athena_workgroup`

Output from acceptance testing in AWS Commercial:

--- PASS: TestAccAWSAthenaWorkGroup_disappears (9.08s)
--- PASS: TestAccAWSAthenaWorkGroup_basic (15.76s)
--- PASS: TestAccAWSAthenaWorkGroup_Configuration_ResultConfiguration_EncryptionConfiguration_SseS3 (25.96s)
--- PASS: TestAccAWSAthenaWorkGroup_Configuration_EnforceWorkgroupConfiguration (27.10s)
--- PASS: TestAccAWSAthenaWorkGroup_Tags (31.92s)
--- PASS: TestAccAWSAthenaWorkGroup_State (36.06s)
--- PASS: TestAccAWSAthenaWorkGroup_Description (36.53s)
--- PASS: TestAccAWSAthenaWorkGroup_Configuration_BytesScannedCutoffPerQuery (37.99s)
--- PASS: TestAccAWSAthenaWorkGroup_Configuration_PublishCloudWatchMetricsEnabled (41.14s)
--- PASS: TestAccAWSAthenaWorkGroup_Configuration_ResultConfiguration_OutputLocation (54.00s)
--- PASS: TestAccAWSAthenaWorkGroup_Configuration_ResultConfiguration_EncryptionConfiguration_Kms (57.21s)
PASS

Output from acceptance testing in AWS GovCloud (US):

--- PASS: TestAccAWSAthenaWorkGroup_disappears (13.12s)
--- PASS: TestAccAWSAthenaWorkGroup_basic (19.15s)
--- PASS: TestAccAWSAthenaWorkGroup_Configuration_ResultConfiguration_EncryptionConfiguration_SseS3 (21.32s)
--- PASS: TestAccAWSAthenaWorkGroup_Configuration_PublishCloudWatchMetricsEnabled (28.45s)
--- PASS: TestAccAWSAthenaWorkGroup_Configuration_EnforceWorkgroupConfiguration (33.33s)
--- PASS: TestAccAWSAthenaWorkGroup_Description (33.73s)
--- PASS: TestAccAWSAthenaWorkGroup_Configuration_BytesScannedCutoffPerQuery (36.62s)
--- PASS: TestAccAWSAthenaWorkGroup_Tags (39.83s)
--- PASS: TestAccAWSAthenaWorkGroup_State (45.99s)
--- PASS: TestAccAWSAthenaWorkGroup_Configuration_ResultConfiguration_EncryptionConfiguration_Kms (63.29s)
--- PASS: TestAccAWSAthenaWorkGroup_Configuration_ResultConfiguration_OutputLocation (64.17s)
PASS

marcotesch and others added 30 commits March 18, 2019 15:19
Signed-off-by: Marco Tesch <mtesch@tecracer.de>
Added skeleton of resourceAwsAthenaWorkgroupUpdate Function

Signed-off-by: Marco Tesch <mtesch@tecracer.de>
Signed-off-by: Marco Tesch <mtesch@tecracer.de>
Signed-off-by: Marco Tesch <mtesch@tecracer.de>
Signed-off-by: Marco Tesch <mtesch@tecracer.de>
Added Update Functionality for the Parameter

Signed-off-by: Marco Tesch <mtesch@tecracer.de>
Added Updated Test for WorkGroup w. BSCPQ Param.

Signed-off-by: Marco Tesch <mtesch@tecracer.de>
Signed-off-by: Marco Tesch <mtesch@tecracer.de>
Signed-off-by: Marco Tesch <mtesch@tecracer.de>
Signed-off-by: Marco Tesch <mtesch@tecracer.de>
Signed-off-by: Marco Tesch <mtesch@tecracer.de>
Signed-off-by: Marco Tesch <mtesch@tecracer.de>
Signed-off-by: Marco Tesch <mtesch@tecracer.de>
Added ARN creation
Fixed Pointer Dereferencing

Signed-off-by: Marco Tesch <mtesch@tecracer.de>
Signed-off-by: Marco Tesch <mtesch@tecracer.de>
Signed-off-by: Marco Tesch <mtesch@tecracer.de>
…naming and resourceName

Output from acceptance testing:

```
--- PASS: TestAccAWSAthenaWorkGroup_basic (14.00s)
--- PASS: TestAccAWSAthenaWorkGroup_SseS3Encryption (14.37s)
--- PASS: TestAccAWSAthenaWorkGroup_Description (17.85s)
--- PASS: TestAccAWSAthenaWorkGroup_PublishCloudWatchMetricsEnabled (19.08s)
--- PASS: TestAccAWSAthenaWorkGroup_EnforceWorkgroupConfiguration (19.61s)
--- PASS: TestAccAWSAthenaWorkGroup_BytesScannedCutoffPerQuery (21.42s)
--- PASS: TestAccAWSAthenaWorkGroup_KmsEncryption (49.26s)
--- PASS: TestAccAWSAthenaWorkGroup_OutputLocation (55.55s)
PASS
```
bflad added 9 commits July 9, 2019 11:24
Reference: #7667

Output from acceptance testing:

```
--- PASS: TestAccAWSAthenaWorkGroup_SseS3Encryption (15.52s)
--- PASS: TestAccAWSAthenaWorkGroup_basic (17.55s)
--- PASS: TestAccAWSAthenaWorkGroup_EnforceWorkgroupConfiguration (20.21s)
--- PASS: TestAccAWSAthenaWorkGroup_Description (20.46s)
--- PASS: TestAccAWSAthenaWorkGroup_PublishCloudWatchMetricsEnabled (22.00s)
--- PASS: TestAccAWSAthenaWorkGroup_BytesScannedCutoffPerQuery (26.63s)
--- PASS: TestAccAWSAthenaWorkGroup_Tags (32.47s)
--- PASS: TestAccAWSAthenaWorkGroup_OutputLocation (54.68s)
--- PASS: TestAccAWSAthenaWorkGroup_KmsEncryption (60.36s)
```
…re error message contains "is not found" for triggering recreation

Output from acceptance testing:

```
--- PASS: TestAccAWSAthenaWorkGroup_disappears (9.80s)
--- PASS: TestAccAWSAthenaWorkGroup_basic (13.86s)
--- PASS: TestAccAWSAthenaWorkGroup_SseS3Encryption (16.05s)
--- PASS: TestAccAWSAthenaWorkGroup_PublishCloudWatchMetricsEnabled (20.70s)
--- PASS: TestAccAWSAthenaWorkGroup_Description (22.30s)
--- PASS: TestAccAWSAthenaWorkGroup_BytesScannedCutoffPerQuery (24.07s)
--- PASS: TestAccAWSAthenaWorkGroup_EnforceWorkgroupConfiguration (26.29s)
--- PASS: TestAccAWSAthenaWorkGroup_Tags (34.70s)
--- PASS: TestAccAWSAthenaWorkGroup_OutputLocation (54.73s)
--- PASS: TestAccAWSAthenaWorkGroup_KmsEncryption (60.03s)
PASS
```
….Set()

Output from acceptance testing:

```
--- PASS: TestAccAWSAthenaWorkGroup_basic (13.65s)
--- PASS: TestAccAWSAthenaWorkGroup_disappears (22.50s)
--- PASS: TestAccAWSAthenaWorkGroup_Description (22.89s)
--- PASS: TestAccAWSAthenaWorkGroup_EnforceWorkgroupConfiguration (24.08s)
--- PASS: TestAccAWSAthenaWorkGroup_SseS3Encryption (24.58s)
--- PASS: TestAccAWSAthenaWorkGroup_Tags (28.98s)
--- PASS: TestAccAWSAthenaWorkGroup_PublishCloudWatchMetricsEnabled (30.44s)
--- PASS: TestAccAWSAthenaWorkGroup_BytesScannedCutoffPerQuery (36.83s)
--- PASS: TestAccAWSAthenaWorkGroup_KmsEncryption (56.71s)
--- PASS: TestAccAWSAthenaWorkGroup_OutputLocation (58.03s)
PASS
```
Output from acceptance testing:

```
--- PASS: TestAccAWSAthenaWorkGroup_disappears (8.22s)
--- PASS: TestAccAWSAthenaWorkGroup_basic (17.59s)
--- PASS: TestAccAWSAthenaWorkGroup_PublishCloudWatchMetricsEnabled (22.79s)
--- PASS: TestAccAWSAthenaWorkGroup_SseS3Encryption (24.16s)
--- PASS: TestAccAWSAthenaWorkGroup_Description (24.87s)
--- PASS: TestAccAWSAthenaWorkGroup_Tags (31.45s)
--- PASS: TestAccAWSAthenaWorkGroup_BytesScannedCutoffPerQuery (31.49s)
--- PASS: TestAccAWSAthenaWorkGroup_EnforceWorkgroupConfiguration (36.48s)
--- PASS: TestAccAWSAthenaWorkGroup_OutputLocation (52.29s)
--- PASS: TestAccAWSAthenaWorkGroup_KmsEncryption (52.68s)
PASS
```
Output from acceptance testing:

```
--- PASS: TestAccAWSAthenaWorkGroup_disappears (9.19s)
--- PASS: TestAccAWSAthenaWorkGroup_basic (15.71s)
--- PASS: TestAccAWSAthenaWorkGroup_SseS3Encryption (16.68s)
--- PASS: TestAccAWSAthenaWorkGroup_PublishCloudWatchMetricsEnabled (21.81s)
--- PASS: TestAccAWSAthenaWorkGroup_BytesScannedCutoffPerQuery (29.38s)
--- PASS: TestAccAWSAthenaWorkGroup_EnforceWorkgroupConfiguration (30.03s)
--- PASS: TestAccAWSAthenaWorkGroup_Tags (35.51s)
--- PASS: TestAccAWSAthenaWorkGroup_State (36.61s)
--- PASS: TestAccAWSAthenaWorkGroup_Description (38.45s)
--- PASS: TestAccAWSAthenaWorkGroup_KmsEncryption (53.81s)
--- PASS: TestAccAWSAthenaWorkGroup_OutputLocation (55.70s)
PASS
```
…d attribute validation, and some finishing touches

Output from acceptance testing in AWS Commercial:

```
--- PASS: TestAccAWSAthenaWorkGroup_disappears (9.08s)
--- PASS: TestAccAWSAthenaWorkGroup_basic (15.76s)
--- PASS: TestAccAWSAthenaWorkGroup_Configuration_ResultConfiguration_EncryptionConfiguration_SseS3 (25.96s)
--- PASS: TestAccAWSAthenaWorkGroup_Configuration_EnforceWorkgroupConfiguration (27.10s)
--- PASS: TestAccAWSAthenaWorkGroup_Tags (31.92s)
--- PASS: TestAccAWSAthenaWorkGroup_State (36.06s)
--- PASS: TestAccAWSAthenaWorkGroup_Description (36.53s)
--- PASS: TestAccAWSAthenaWorkGroup_Configuration_BytesScannedCutoffPerQuery (37.99s)
--- PASS: TestAccAWSAthenaWorkGroup_Configuration_PublishCloudWatchMetricsEnabled (41.14s)
--- PASS: TestAccAWSAthenaWorkGroup_Configuration_ResultConfiguration_OutputLocation (54.00s)
--- PASS: TestAccAWSAthenaWorkGroup_Configuration_ResultConfiguration_EncryptionConfiguration_Kms (57.21s)
PASS
```

Output from acceptance testing in AWS GovCloud (US):

```
--- PASS: TestAccAWSAthenaWorkGroup_disappears (13.12s)
--- PASS: TestAccAWSAthenaWorkGroup_basic (19.15s)
--- PASS: TestAccAWSAthenaWorkGroup_Configuration_ResultConfiguration_EncryptionConfiguration_SseS3 (21.32s)
--- PASS: TestAccAWSAthenaWorkGroup_Configuration_PublishCloudWatchMetricsEnabled (28.45s)
--- PASS: TestAccAWSAthenaWorkGroup_Configuration_EnforceWorkgroupConfiguration (33.33s)
--- PASS: TestAccAWSAthenaWorkGroup_Description (33.73s)
--- PASS: TestAccAWSAthenaWorkGroup_Configuration_BytesScannedCutoffPerQuery (36.62s)
--- PASS: TestAccAWSAthenaWorkGroup_Tags (39.83s)
--- PASS: TestAccAWSAthenaWorkGroup_State (45.99s)
--- PASS: TestAccAWSAthenaWorkGroup_Configuration_ResultConfiguration_EncryptionConfiguration_Kms (63.29s)
--- PASS: TestAccAWSAthenaWorkGroup_Configuration_ResultConfiguration_OutputLocation (64.17s)
PASS
```
@bflad bflad added new-resource Introduces a new resource. service/athena Issues and PRs that pertain to the athena service. labels Jul 10, 2019
@bflad bflad requested a review from a team July 10, 2019 00:06
@ghost ghost added size/XXL Managed by automation to categorize the size of a PR. provider Pertains to the provider itself, rather than any interaction with AWS. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. documentation Introduces or discusses updates to documentation. labels Jul 10, 2019
Copy link
Contributor

@nywilken nywilken left a comment

Choose a reason for hiding this comment

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

LGTM 👍 👍

--- PASS: TestAccAWSAthenaWorkGroup_disappears (13.89s)
--- PASS: TestAccAWSAthenaWorkGroup_basic (19.77s)
--- PASS: TestAccAWSAthenaWorkGroup_Configuration_ResultConfiguration_EncryptionConfiguration_SseS3 (19.79s)
--- PASS: TestAccAWSAthenaWorkGroup_Description (30.99s)
--- PASS: TestAccAWSAthenaWorkGroup_Configuration_PublishCloudWatchMetricsEnabled (31.02s)
--- PASS: TestAccAWSAthenaWorkGroup_Configuration_BytesScannedCutoffPerQuery (32.87s)
--- PASS: TestAccAWSAthenaWorkGroup_Configuration_EnforceWorkgroupConfiguration (32.89s)
--- PASS: TestAccAWSAthenaWorkGroup_State (43.48s)
--- PASS: TestAccAWSAthenaWorkGroup_Tags (47.17s)
--- PASS: TestAccAWSAthenaWorkGroup_Configuration_ResultConfiguration_OutputLocation (68.11s)
--- PASS: TestAccAWSAthenaWorkGroup_Configuration_ResultConfiguration_EncryptionConfiguration_Kms (97.14s)

@bflad bflad added this to the v2.19.0 milestone Jul 11, 2019
@bflad bflad merged commit 7ca30fb into master Jul 11, 2019
@bflad bflad deleted the f-aws_athena_workgroup branch July 11, 2019 12:57
bflad added a commit that referenced this pull request Jul 11, 2019
@bflad
Copy link
Contributor Author

bflad commented Jul 11, 2019

This has been released in version 2.19.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
Copy link

ghost commented Nov 2, 2019

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 Nov 2, 2019
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/athena Issues and PRs that pertain to the athena 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.

r/aws_athena_workgroup: Add support for resource tags New Resource: aws_athena_workgroup
4 participants