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: ElastiCache Redis - User Group #16504

Merged
merged 3 commits into from
Jul 21, 2021
Merged

New Resource: ElastiCache Redis - User Group #16504

merged 3 commits into from
Jul 21, 2021

Conversation

drarnold
Copy link

@drarnold drarnold commented Dec 1, 2020

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

Relates to #16327
Blocked by #16629

Release note for CHANGELOG:

resource/aws_elasticache_user_group: add elasticache_user_group resource [GH-16504]

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAWSElasticacheUserGroup_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSElasticacheUserGroup_ -timeout 120m
=== RUN   TestAccAWSElasticacheUserGroup_basic
=== PAUSE TestAccAWSElasticacheUserGroup_basic
=== RUN   TestAccAWSElasticacheUserGroup_addUserId
=== PAUSE TestAccAWSElasticacheUserGroup_addUserId
=== RUN   TestAccAWSElasticacheUserGroup_changeUserId
=== PAUSE TestAccAWSElasticacheUserGroup_changeUserId
=== RUN   TestAccAWSElasticacheUserGroup_removeUserId
=== PAUSE TestAccAWSElasticacheUserGroup_removeUserId
=== CONT  TestAccAWSElasticacheUserGroup_basic
=== CONT  TestAccAWSElasticacheUserGroup_removeUserId
=== CONT  TestAccAWSElasticacheUserGroup_addUserId
=== CONT  TestAccAWSElasticacheUserGroup_changeUserId
--- PASS: TestAccAWSElasticacheUserGroup_basic (107.68s)
=== CONT  TestAccAWSElasticacheUserGroup_changeUserId
    resource_aws_elasticache_user_group_test.go:83: Step 2/2 error: After applying this test step and performing a `terraform refresh`, the plan was not empty.
        stdout


        An execution plan has been generated and is shown below.
        Resource actions are indicated with the following symbols:
          ~ update in-place

        Terraform will perform the following actions:

          # aws_elasticache_user_group.test-user-id-change will be updated in-place
          ~ resource "aws_elasticache_user_group" "test-user-id-change" {
                engine        = "redis"
                id            = "a-user-group-test-tf-change-user-id"
                user_group_id = "a-user-group-test-tf-change-user-id"
              ~ user_ids      = [
                    "default",
                    "test-user-1",
                  - "test-user-2",
                    "test-user-3",
                ]
            }

        Plan: 0 to add, 1 to change, 0 to destroy.
--- PASS: TestAccAWSElasticacheUserGroup_removeUserId (171.22s)
--- FAIL: TestAccAWSElasticacheUserGroup_changeUserId (181.52s)
--- PASS: TestAccAWSElasticacheUserGroup_addUserId (202.25s)
FAIL
FAIL	github.com/terraform-providers/terraform-provider-aws/aws	203.946s
FAIL
make: *** [testacc] Error 1

@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. service/elasticache Issues and PRs that pertain to the elasticache service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Dec 1, 2020
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Dec 1, 2020
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome @drarnold 👋

It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTING guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.

Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.

Thanks again, and welcome to the community! 😃

@drarnold drarnold marked this pull request as ready for review December 1, 2020 19:51
@drarnold drarnold requested a review from a team as a code owner December 1, 2020 19:51
@drarnold drarnold closed this Dec 1, 2020
@drarnold drarnold deleted the f-aws_elasticache_user_group-new-resource branch December 1, 2020 19:52
@drarnold drarnold restored the f-aws_elasticache_user_group-new-resource branch December 1, 2020 20:42
@drarnold drarnold reopened this Dec 1, 2020
@ghost ghost added size/XL Managed by automation to categorize the size of a PR. documentation Introduces or discusses updates to documentation. and removed size/XXL Managed by automation to categorize the size of a PR. labels Dec 3, 2020
@drarnold
Copy link
Author

This is still a work in progress FYI

@drarnold drarnold marked this pull request as draft December 20, 2020 05:03
@drarnold drarnold marked this pull request as ready for review December 20, 2020 05:04
Base automatically changed from master to main January 23, 2021 00:59
@ajendrex
Copy link

ajendrex commented Feb 1, 2021

Hello @drarnold,

you changed status to ready for review, but the title still says WIP...

Thanks for your work!

Hector.

@drarnold
Copy link
Author

drarnold commented Feb 8, 2021

Hey Hector,

Thank you for following up! So while I have been developing this change, I was running into issues with being able to import user groups as a resource. But this is my first Pull Request, so I wanted someone to take a first look at it and see if it is up to par with being able to get merged soon once I am able to figure out how to get importing the resource working.

I will remove the WIP so it removes some of the confusion.

Thanks

Drew

@drarnold drarnold changed the title WIP: New Resource: ElastiCache Redis - User Group New Resource: ElastiCache Redis - User Group Feb 8, 2021
@stevehipwell
Copy link

Any progress on this?

@drarnold
Copy link
Author

Sorry for the radio silence with this project. I will start working on it again during the evenings and should try to get something out shortly.

Copy link
Contributor

@bill-rich bill-rich left a comment

Choose a reason for hiding this comment

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

LGTM

==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSElasticacheUserGroup_ -timeout 180m
=== RUN   TestAccAWSElasticacheUserGroup_basic
=== PAUSE TestAccAWSElasticacheUserGroup_basic
=== RUN   TestAccAWSElasticacheUserGroup_update
=== PAUSE TestAccAWSElasticacheUserGroup_update
=== RUN   TestAccAWSElasticacheUserGroup_tags
=== PAUSE TestAccAWSElasticacheUserGroup_tags
=== RUN   TestAccAWSElasticacheUserGroup_disappears
=== PAUSE TestAccAWSElasticacheUserGroup_disappears
=== CONT  TestAccAWSElasticacheUserGroup_basic
=== CONT  TestAccAWSElasticacheUserGroup_disappears
=== CONT  TestAccAWSElasticacheUserGroup_tags
=== CONT  TestAccAWSElasticacheUserGroup_update
--- PASS: TestAccAWSElasticacheUserGroup_basic (357.56s)
--- PASS: TestAccAWSElasticacheUserGroup_tags (363.33s)
--- PASS: TestAccAWSElasticacheUserGroup_disappears (364.78s)
--- PASS: TestAccAWSElasticacheUserGroup_update (671.76s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	671.822s

@bill-rich bill-rich merged commit c54bbff into hashicorp:main Jul 21, 2021
@github-actions github-actions bot added this to the v3.51.0 milestone Jul 21, 2021
@github-actions
Copy link

This functionality has been released in v3.51.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. Thank you!

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 22, 2021
@breathingdust breathingdust removed the needs-triage Waiting for first response or review from a maintainer. label Sep 17, 2021
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. provider Pertains to the provider itself, rather than any interaction with AWS. service/elasticache Issues and PRs that pertain to the elasticache 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.

6 participants