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

F/resource aws elasticache subnet group: Support Tags #19119

Merged

Conversation

nikhil-goenka
Copy link
Contributor

@nikhil-goenka nikhil-goenka commented Apr 27, 2021

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 #18884.

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAWSElasticacheSubnetGroup_tags'
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSElasticacheSubnetGroup_tags -timeout 180m
=== RUN   TestAccAWSElasticacheSubnetGroup_tags
=== PAUSE TestAccAWSElasticacheSubnetGroup_tags
=== CONT  TestAccAWSElasticacheSubnetGroup_tags
--- PASS: TestAccAWSElasticacheSubnetGroup_tags (181.42s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	185.284s
...

@nikhil-goenka nikhil-goenka requested a review from a team as a code owner April 27, 2021 07:52
@ghost ghost added size/L Managed by automation to categorize the size of a PR. service/elasticache Issues and PRs that pertain to the elasticache service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Apr 27, 2021
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Apr 27, 2021
@ghost ghost added the documentation Introduces or discusses updates to documentation. label Apr 27, 2021
@nikhil-goenka nikhil-goenka changed the title F/resource aws elasticache subnet group F/resource aws elasticache subnet group: Support Tags Apr 27, 2021
@ewbankkit
Copy link
Contributor

@nikhil-goenka Thanks for the contribution 👏.
Could you please add documentation for the tags_all attribute - details very recently added to the Contributing Guide.

@ewbankkit ewbankkit removed the needs-triage Waiting for first response or review from a maintainer. label Apr 27, 2021
@ewbankkit ewbankkit self-assigned this Apr 27, 2021
@ewbankkit ewbankkit force-pushed the f/resource_aws_elasticache_subnet_group branch from 4857bf6 to 85a7522 Compare April 27, 2021 13:41
Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

Commercial
% make testacc TEST=./aws TESTARGS='-run=TestAccAWSElasticacheSubnetGroup_'                                         
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSElasticacheSubnetGroup_ -timeout 180m
=== RUN   TestAccAWSElasticacheSubnetGroup_basic
=== PAUSE TestAccAWSElasticacheSubnetGroup_basic
=== RUN   TestAccAWSElasticacheSubnetGroup_update
=== PAUSE TestAccAWSElasticacheSubnetGroup_update
=== RUN   TestAccAWSElasticacheSubnetGroup_tags
=== PAUSE TestAccAWSElasticacheSubnetGroup_tags
=== CONT  TestAccAWSElasticacheSubnetGroup_basic
=== CONT  TestAccAWSElasticacheSubnetGroup_tags
=== CONT  TestAccAWSElasticacheSubnetGroup_update
--- PASS: TestAccAWSElasticacheSubnetGroup_basic (27.87s)
--- PASS: TestAccAWSElasticacheSubnetGroup_update (49.21s)
--- PASS: TestAccAWSElasticacheSubnetGroup_tags (66.08s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	68.982s
GovCloud
% make testacc TEST=./aws TESTARGS='-run=TestAccAWSElasticacheSubnetGroup_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSElasticacheSubnetGroup_ -timeout 180m
=== RUN   TestAccAWSElasticacheSubnetGroup_basic
=== PAUSE TestAccAWSElasticacheSubnetGroup_basic
=== RUN   TestAccAWSElasticacheSubnetGroup_update
=== PAUSE TestAccAWSElasticacheSubnetGroup_update
=== RUN   TestAccAWSElasticacheSubnetGroup_tags
=== PAUSE TestAccAWSElasticacheSubnetGroup_tags
=== CONT  TestAccAWSElasticacheSubnetGroup_basic
=== CONT  TestAccAWSElasticacheSubnetGroup_update
=== CONT  TestAccAWSElasticacheSubnetGroup_tags
--- PASS: TestAccAWSElasticacheSubnetGroup_basic (32.28s)
--- PASS: TestAccAWSElasticacheSubnetGroup_update (55.46s)
--- PASS: TestAccAWSElasticacheSubnetGroup_tags (74.61s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	77.553s

@ewbankkit
Copy link
Contributor

@nikhil-goenka Looks good.
I added a call to resourceAwsElasticacheSubnetGroupRead at the end of resourceAwsElasticacheSubnetGroupCreate or else the tests were showing a diff:

=== CONT  TestAccAWSElasticacheSubnetGroup_basic
    resource_aws_elasticache_subnet_group_test.go:67: Step 1/2 error: After applying this test step, 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_subnet_group.test will be updated in-place
          ~ resource "aws_elasticache_subnet_group" "test" {
                description = "Managed by Terraform"
                id          = "tf-test-cache-subnet-2146569789512030701"
                name        = "tf-test-cache-subnet-2146569789512030701"
                subnet_ids  = [
                    "subnet-0608f1320a3b2604c",
                ]
              + tags_all    = (known after apply)
            }
        
        Plan: 0 to add, 1 to change, 0 to destroy.

@ewbankkit ewbankkit merged commit db353b2 into hashicorp:main Apr 27, 2021
@github-actions github-actions bot added this to the v3.38.0 milestone Apr 27, 2021
@nikhil-goenka
Copy link
Contributor Author

@nikhil-goenka Looks good.
I added a call to resourceAwsElasticacheSubnetGroupRead at the end of resourceAwsElasticacheSubnetGroupCreate or else the tests were showing a diff:

=== CONT  TestAccAWSElasticacheSubnetGroup_basic
    resource_aws_elasticache_subnet_group_test.go:67: Step 1/2 error: After applying this test step, 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_subnet_group.test will be updated in-place
          ~ resource "aws_elasticache_subnet_group" "test" {
                description = "Managed by Terraform"
                id          = "tf-test-cache-subnet-2146569789512030701"
                name        = "tf-test-cache-subnet-2146569789512030701"
                subnet_ids  = [
                    "subnet-0608f1320a3b2604c",
                ]
              + tags_all    = (known after apply)
            }
        
        Plan: 0 to add, 1 to change, 0 to destroy.

@ewbankkit : Thanks

@ghost
Copy link

ghost commented Apr 30, 2021

This has been released in version 3.38.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!

@github-actions
Copy link

github-actions bot commented Jun 1, 2021

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 Jun 1, 2021
@nikhil-goenka nikhil-goenka deleted the f/resource_aws_elasticache_subnet_group branch June 5, 2021 04:54
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. service/elasticache Issues and PRs that pertain to the elasticache service. size/L 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_elasticache_subnet_group missing tags property
2 participants