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/backup_vault_notifications - Add new resource #12501

Merged
merged 19 commits into from
Sep 29, 2020

Conversation

DrFaust92
Copy link
Collaborator

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" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Closes #8727

Release note for CHANGELOG:

resource_aws_backup_vault_notifications; add new resource

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAwsBackupVaultNotification_'
--- PASS: TestAccAwsBackupVaultNotification_basic (54.58s)
--- PASS: TestAccAwsBackupVaultNotification_disappears (53.07s)

@DrFaust92 DrFaust92 requested a review from a team March 22, 2020 22:51
@ghost ghost added needs-triage Waiting for first response or review from a maintainer. size/XL Managed by automation to categorize the size of a PR. provider Pertains to the provider itself, rather than any interaction with AWS. documentation Introduces or discusses updates to documentation. service/backup Issues and PRs that pertain to the backup service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Mar 22, 2020
@ewbankkit
Copy link
Contributor

Verified acceptance tests:

$ make testacc TEST=./aws TESTARGS='-run=TestAccAwsBackupVaultNotification_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAwsBackupVaultNotification_ -timeout 120m
=== RUN   TestAccAwsBackupVaultNotification_basic
=== PAUSE TestAccAwsBackupVaultNotification_basic
=== RUN   TestAccAwsBackupVaultNotification_disappears
=== PAUSE TestAccAwsBackupVaultNotification_disappears
=== CONT  TestAccAwsBackupVaultNotification_basic
=== CONT  TestAccAwsBackupVaultNotification_disappears
--- PASS: TestAccAwsBackupVaultNotification_disappears (29.02s)
--- PASS: TestAccAwsBackupVaultNotification_basic (29.67s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	29.712s

@giuliocalzolari
Copy link

any ETA to merge it?

@slikk66
Copy link

slikk66 commented Apr 10, 2020

+1 where's the merge?

@giuliocalzolari
Copy link

+1

@ericrichtert
Copy link
Contributor

please merge this one

@ewbankkit
Copy link
Contributor

ewbankkit commented May 11, 2020

@DrFaust92 Could you please add a test sweeper for aws_backup_vault_notification resources and add it as an upstream dependency for sweeping SNS topics?
Thanks.

@DrFaust92 DrFaust92 force-pushed the r/backup_vault_notif branch from 6ba57a0 to 3051f44 Compare May 16, 2020 16:37
@DrFaust92 DrFaust92 added the new-resource Introduces a new resource. label May 22, 2020
@ghost ghost added the service/sns Issues and PRs that pertain to the sns service. label May 31, 2020
@DrFaust92
Copy link
Collaborator Author

Added sweeper + dependency

@DrFaust92 DrFaust92 removed the needs-triage Waiting for first response or review from a maintainer. label Jul 28, 2020
@DrFaust92 DrFaust92 force-pushed the r/backup_vault_notif branch from 0f15ca2 to df67aa1 Compare August 3, 2020 16:37
@ewbankkit ewbankkit requested review from ewbankkit and removed request for a team August 3, 2020 16:59
@ewbankkit
Copy link
Contributor

Need to make fmt.

@DrFaust92 DrFaust92 force-pushed the r/backup_vault_notif branch from f669b46 to 129414f Compare August 21, 2020 20:57
@DrFaust92
Copy link
Collaborator Author

rebased

@ewbankkit
Copy link
Contributor

@DrFaust92 I got these errors when running the acceptance tests:

$ make testacc TEST=./aws TESTARGS='-run=TestAccAwsBackupVaultNotification_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAwsBackupVaultNotification_ -timeout 120m
=== RUN   TestAccAwsBackupVaultNotification_basic
=== PAUSE TestAccAwsBackupVaultNotification_basic
=== RUN   TestAccAwsBackupVaultNotification_disappears
=== PAUSE TestAccAwsBackupVaultNotification_disappears
=== CONT  TestAccAwsBackupVaultNotification_basic
=== CONT  TestAccAwsBackupVaultNotification_disappears
=== CONT  TestAccAwsBackupVaultNotification_basic
    resource_aws_backup_vault_notifications_test.go:78: Step 1/2 error: terraform failed: exit status 1
        
        stderr:
        
        Error: invalid value for backup_vault_name (must consist of lowercase letters, numbers, and hyphens.)
        
          on config411170255/terraform_plugin_test.tf line 39, in resource "aws_backup_vault_notifications" "test":
          39:   backup_vault_name   = aws_backup_vault.test.name
        
        
=== CONT  TestAccAwsBackupVaultNotification_disappears
    resource_aws_backup_vault_notifications_test.go:104: Step 1/1 error: terraform failed: exit status 1
        
        stderr:
        
        Error: invalid value for backup_vault_name (must consist of lowercase letters, numbers, and hyphens.)
        
          on config601163989/terraform_plugin_test.tf line 39, in resource "aws_backup_vault_notifications" "test":
          39:   backup_vault_name   = aws_backup_vault.test.name
        
        
--- FAIL: TestAccAwsBackupVaultNotification_basic (4.95s)
--- FAIL: TestAccAwsBackupVaultNotification_disappears (5.00s)
FAIL
FAIL	github.com/terraform-providers/terraform-provider-aws/aws	5.047s
FAIL
GNUmakefile:27: recipe for target 'testacc' failed
make: *** [testacc] Error 1

@DrFaust92
Copy link
Collaborator Author

Probably got to do with my change to validation, reverted and tested it to work.

@eharris-r7
Copy link

+1 Any idea when this will be merged?

@ewbankkit ewbankkit removed the service/sns Issues and PRs that pertain to the sns service. label Sep 25, 2020
@breathingdust
Copy link
Member

LGTM! 🚀 Thanks @DrFaust92

Verified Acceptance Tests in Commercial (us-west-2)

make testacc TEST=./aws TESTARGS='-run=TestAccAwsBackupVaultNotification_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAwsBackupVaultNotification_ -timeout 120m
=== RUN   TestAccAwsBackupVaultNotification_basic
=== PAUSE TestAccAwsBackupVaultNotification_basic
=== RUN   TestAccAwsBackupVaultNotification_disappears
=== PAUSE TestAccAwsBackupVaultNotification_disappears
=== CONT  TestAccAwsBackupVaultNotification_basic
=== CONT  TestAccAwsBackupVaultNotification_disappears
    resource_aws_backup_vault_notifications_test.go:104: [INFO] Got non-empty plan, as expected
--- PASS: TestAccAwsBackupVaultNotification_disappears (16.45s)
--- PASS: TestAccAwsBackupVaultNotification_basic (17.54s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	18.860s

Verified Acceptance Tests in GovCloud (us-gov-west-1)

make testacc TEST=./aws TESTARGS='-run=TestAccAwsBackupVaultNotification_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAwsBackupVaultNotification_ -timeout 120m
=== RUN   TestAccAwsBackupVaultNotification_basic
=== PAUSE TestAccAwsBackupVaultNotification_basic
=== RUN   TestAccAwsBackupVaultNotification_disappears
=== PAUSE TestAccAwsBackupVaultNotification_disappears
=== CONT  TestAccAwsBackupVaultNotification_basic
=== CONT  TestAccAwsBackupVaultNotification_disappears
    resource_aws_backup_vault_notifications_test.go:104: [INFO] Got non-empty plan, as expected
--- PASS: TestAccAwsBackupVaultNotification_disappears (11.39s)
--- PASS: TestAccAwsBackupVaultNotification_basic (12.57s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	13.877s

@breathingdust breathingdust added this to the v3.9.0 milestone Sep 29, 2020
@breathingdust breathingdust merged commit fd436d6 into hashicorp:master Sep 29, 2020
breathingdust added a commit that referenced this pull request Sep 29, 2020
breathingdust added a commit that referenced this pull request Sep 29, 2020
@DrFaust92 DrFaust92 deleted the r/backup_vault_notif branch September 30, 2020 06:04
@ghost
Copy link

ghost commented Oct 2, 2020

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

ghost commented Oct 30, 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 as resolved and limited conversation to collaborators Oct 30, 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/backup Issues and PRs that pertain to the backup service. size/XL 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.

AWS Backup Plan: Add support to SNS notifications
8 participants