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

Adds ElastiCache Global Replication Group basic support #17615

Merged
merged 27 commits into from
Feb 19, 2021

Conversation

gdavison
Copy link
Contributor

Continues work started in #15885 by @MqllR

Adds basic support for creating a ElastiCache Global Replication Group. Still needs additional support in aws_elasticache_replication_group to support adding secondary replication groups to the aws_elasticache_global_replication_group.

Relates #12708

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAWSElasticacheGlobalReplicationGroup_'

--- PASS: TestAccAWSElasticacheGlobalReplicationGroup_basic (1460.53s)
--- PASS: TestAccAWSElasticacheGlobalReplicationGroup_disappears (1688.66s)
--- PASS: TestAccAWSElasticacheGlobalReplicationGroup_Description (1750.20s)

@gdavison gdavison requested a review from a team as a code owner February 15, 2021 07:27
@ghost ghost added size/XL Managed by automation to categorize the size of a PR. 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. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Feb 15, 2021
@ghost ghost added size/XXL Managed by automation to categorize the size of a PR. and removed size/XL Managed by automation to categorize the size of a PR. labels Feb 16, 2021
@bflad bflad self-assigned this Feb 18, 2021
@bflad bflad added the new-resource Introduces a new resource. label Feb 18, 2021
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.

Overall looks pretty good, just some minor things to consider before merge. 👍

Output from acceptance testing in AWS Commercial:

--- PASS: TestAccAWSElasticacheGlobalReplicationGroup_disappears (1537.14s)
--- PASS: TestAccAWSElasticacheGlobalReplicationGroup_Description (1646.47s)
--- PASS: TestAccAWSElasticacheGlobalReplicationGroup_basic (1853.08s)

Output from acceptance testing in AWS GovCloud (US):

--- PASS: TestAccAWSElasticacheGlobalReplicationGroup_basic (956.13s)
--- PASS: TestAccAWSElasticacheGlobalReplicationGroup_Description (980.74s)
--- PASS: TestAccAWSElasticacheGlobalReplicationGroup_disappears (1015.49s)

aws/internal/envvar/funcs_test.go Outdated Show resolved Hide resolved
aws/internal/envvar/funcs_test.go Outdated Show resolved Hide resolved
aws/internal/service/elasticache/finder/finder.go Outdated Show resolved Hide resolved
aws/internal/service/elasticache/finder/finder.go Outdated Show resolved Hide resolved
conn := meta.(*AWSClient).elasticacheconn

// Only one field can be changed per request
updaters := map[string]elasticacheGlobalReplicationGroupUpdater{}
Copy link
Contributor

Choose a reason for hiding this comment

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

Would recommend refactoring this "clever" logic in preference of simpler per attribute checks for consistency with the rest of the provider, especially in the future when attribute change ordering might matter. 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was left over from deferred work to that allows updating other fields on the resource

@ghost ghost added size/XL Managed by automation to categorize the size of a PR. and removed size/XXL Managed by automation to categorize the size of a PR. labels Feb 18, 2021
@gdavison gdavison merged commit 00649b8 into main Feb 19, 2021
@gdavison gdavison deleted the elasticache_global_replication_group branch February 19, 2021 01:02
@github-actions github-actions bot added this to the v3.29.0 milestone Feb 19, 2021
github-actions bot pushed a commit that referenced this pull request Feb 19, 2021
@ghost
Copy link

ghost commented Feb 19, 2021

This has been released in version 3.29.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 Mar 21, 2021

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 Mar 21, 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. new-resource Introduces a new resource. 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.

3 participants