-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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_memorydb_cluster #22388
Conversation
…e unavailable availability_mode
396f67a
to
a2871f9
Compare
There was a problem hiding this 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 PKG=memorydb TESTS=TestAccMemoryDBCluster_ ACCTEST_PARALLELISM=4 ACCTEST_TIMEOUT=600m
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/memorydb/... -v -count 1 -parallel 4 -run='TestAccMemoryDBCluster_' -timeout 600m
=== RUN TestAccMemoryDBCluster_basic
=== PAUSE TestAccMemoryDBCluster_basic
=== RUN TestAccMemoryDBCluster_defaults
=== PAUSE TestAccMemoryDBCluster_defaults
=== RUN TestAccMemoryDBCluster_disappears
=== PAUSE TestAccMemoryDBCluster_disappears
=== RUN TestAccMemoryDBCluster_nameGenerated
=== PAUSE TestAccMemoryDBCluster_nameGenerated
=== RUN TestAccMemoryDBCluster_namePrefix
=== PAUSE TestAccMemoryDBCluster_namePrefix
=== RUN TestAccMemoryDBCluster_create_noTLS
=== PAUSE TestAccMemoryDBCluster_create_noTLS
=== RUN TestAccMemoryDBCluster_create_withKMS
=== PAUSE TestAccMemoryDBCluster_create_withKMS
=== RUN TestAccMemoryDBCluster_create_withPort
=== PAUSE TestAccMemoryDBCluster_create_withPort
=== RUN TestAccMemoryDBCluster_delete_withFinalSnapshot
=== PAUSE TestAccMemoryDBCluster_delete_withFinalSnapshot
=== RUN TestAccMemoryDBCluster_update_aclName
=== PAUSE TestAccMemoryDBCluster_update_aclName
=== RUN TestAccMemoryDBCluster_update_description
=== PAUSE TestAccMemoryDBCluster_update_description
=== RUN TestAccMemoryDBCluster_update_engineVersion
=== PAUSE TestAccMemoryDBCluster_update_engineVersion
=== RUN TestAccMemoryDBCluster_update_maintenanceWindow
=== PAUSE TestAccMemoryDBCluster_update_maintenanceWindow
=== RUN TestAccMemoryDBCluster_update_nodeType
=== PAUSE TestAccMemoryDBCluster_update_nodeType
=== RUN TestAccMemoryDBCluster_update_numShards_scaleUp
=== PAUSE TestAccMemoryDBCluster_update_numShards_scaleUp
=== RUN TestAccMemoryDBCluster_update_numShards_scaleDown
=== PAUSE TestAccMemoryDBCluster_update_numShards_scaleDown
=== RUN TestAccMemoryDBCluster_update_numReplicasPerShard_scaleUp
=== PAUSE TestAccMemoryDBCluster_update_numReplicasPerShard_scaleUp
=== RUN TestAccMemoryDBCluster_update_numReplicasPerShard_scaleDown
=== PAUSE TestAccMemoryDBCluster_update_numReplicasPerShard_scaleDown
=== RUN TestAccMemoryDBCluster_update_parameterGroup
=== PAUSE TestAccMemoryDBCluster_update_parameterGroup
=== RUN TestAccMemoryDBCluster_update_securityGroupIds
=== PAUSE TestAccMemoryDBCluster_update_securityGroupIds
=== RUN TestAccMemoryDBCluster_update_snapshotRetentionLimit
=== PAUSE TestAccMemoryDBCluster_update_snapshotRetentionLimit
=== RUN TestAccMemoryDBCluster_update_snapshotWindow
=== PAUSE TestAccMemoryDBCluster_update_snapshotWindow
=== RUN TestAccMemoryDBCluster_update_snsTopicArn
=== PAUSE TestAccMemoryDBCluster_update_snsTopicArn
=== RUN TestAccMemoryDBCluster_update_tags
=== PAUSE TestAccMemoryDBCluster_update_tags
=== CONT TestAccMemoryDBCluster_basic
=== CONT TestAccMemoryDBCluster_update_nodeType
=== CONT TestAccMemoryDBCluster_update_tags
=== CONT TestAccMemoryDBCluster_update_securityGroupIds
--- PASS: TestAccMemoryDBCluster_update_tags (1231.08s)
=== CONT TestAccMemoryDBCluster_update_parameterGroup
--- PASS: TestAccMemoryDBCluster_update_securityGroupIds (1385.52s)
=== CONT TestAccMemoryDBCluster_update_numReplicasPerShard_scaleDown
--- PASS: TestAccMemoryDBCluster_basic (1602.70s)
=== CONT TestAccMemoryDBCluster_update_numReplicasPerShard_scaleUp
--- PASS: TestAccMemoryDBCluster_update_nodeType (2219.12s)
=== CONT TestAccMemoryDBCluster_update_numShards_scaleDown
--- PASS: TestAccMemoryDBCluster_update_parameterGroup (1347.75s)
=== CONT TestAccMemoryDBCluster_update_numShards_scaleUp
--- PASS: TestAccMemoryDBCluster_update_numReplicasPerShard_scaleDown (1566.55s)
=== CONT TestAccMemoryDBCluster_update_snsTopicArn
--- PASS: TestAccMemoryDBCluster_update_numReplicasPerShard_scaleUp (1625.11s)
=== CONT TestAccMemoryDBCluster_update_snapshotWindow
--- PASS: TestAccMemoryDBCluster_update_snsTopicArn (1190.01s)
=== CONT TestAccMemoryDBCluster_update_snapshotRetentionLimit
--- PASS: TestAccMemoryDBCluster_update_snapshotWindow (1184.34s)
=== CONT TestAccMemoryDBCluster_create_withPort
--- PASS: TestAccMemoryDBCluster_update_snapshotRetentionLimit (1210.13s)
=== CONT TestAccMemoryDBCluster_update_maintenanceWindow
--- PASS: TestAccMemoryDBCluster_update_numShards_scaleDown (3271.96s)
=== CONT TestAccMemoryDBCluster_update_engineVersion
--- PASS: TestAccMemoryDBCluster_create_withPort (1158.49s)
=== CONT TestAccMemoryDBCluster_update_description
--- PASS: TestAccMemoryDBCluster_update_numShards_scaleUp (3583.76s)
=== CONT TestAccMemoryDBCluster_update_aclName
--- PASS: TestAccMemoryDBCluster_update_maintenanceWindow (1177.32s)
=== CONT TestAccMemoryDBCluster_delete_withFinalSnapshot
--- PASS: TestAccMemoryDBCluster_update_engineVersion (1151.44s)
=== CONT TestAccMemoryDBCluster_namePrefix
--- PASS: TestAccMemoryDBCluster_update_description (1314.78s)
=== CONT TestAccMemoryDBCluster_create_withKMS
--- PASS: TestAccMemoryDBCluster_update_aclName (1297.27s)
=== CONT TestAccMemoryDBCluster_disappears
--- PASS: TestAccMemoryDBCluster_namePrefix (1197.92s)
=== CONT TestAccMemoryDBCluster_create_noTLS
--- PASS: TestAccMemoryDBCluster_create_withKMS (1149.14s)
=== CONT TestAccMemoryDBCluster_nameGenerated
--- PASS: TestAccMemoryDBCluster_delete_withFinalSnapshot (2184.92s)
=== CONT TestAccMemoryDBCluster_defaults
--- PASS: TestAccMemoryDBCluster_create_noTLS (1205.02s)
--- PASS: TestAccMemoryDBCluster_disappears (1593.27s)
--- PASS: TestAccMemoryDBCluster_nameGenerated (1133.27s)
--- PASS: TestAccMemoryDBCluster_defaults (1116.70s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/memorydb 9835.298s
GovCloud
% make testacc PKG=memorydb TESTS=TestAccMemoryDBCluster_ ACCTEST_PARALLELISM=4 ACCTEST_TIMEOUT=600m
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/memorydb/... -v -count 1 -parallel 4 -run='TestAccMemoryDBCluster_' -timeout 600m
=== RUN TestAccMemoryDBCluster_basic
=== PAUSE TestAccMemoryDBCluster_basic
=== RUN TestAccMemoryDBCluster_defaults
=== PAUSE TestAccMemoryDBCluster_defaults
=== RUN TestAccMemoryDBCluster_disappears
=== PAUSE TestAccMemoryDBCluster_disappears
=== RUN TestAccMemoryDBCluster_nameGenerated
=== PAUSE TestAccMemoryDBCluster_nameGenerated
=== RUN TestAccMemoryDBCluster_namePrefix
=== PAUSE TestAccMemoryDBCluster_namePrefix
=== RUN TestAccMemoryDBCluster_create_noTLS
=== PAUSE TestAccMemoryDBCluster_create_noTLS
=== RUN TestAccMemoryDBCluster_create_withKMS
=== PAUSE TestAccMemoryDBCluster_create_withKMS
=== RUN TestAccMemoryDBCluster_create_withPort
=== PAUSE TestAccMemoryDBCluster_create_withPort
=== RUN TestAccMemoryDBCluster_delete_withFinalSnapshot
=== PAUSE TestAccMemoryDBCluster_delete_withFinalSnapshot
=== RUN TestAccMemoryDBCluster_update_aclName
=== PAUSE TestAccMemoryDBCluster_update_aclName
=== RUN TestAccMemoryDBCluster_update_description
=== PAUSE TestAccMemoryDBCluster_update_description
=== RUN TestAccMemoryDBCluster_update_engineVersion
=== PAUSE TestAccMemoryDBCluster_update_engineVersion
=== RUN TestAccMemoryDBCluster_update_maintenanceWindow
=== PAUSE TestAccMemoryDBCluster_update_maintenanceWindow
=== RUN TestAccMemoryDBCluster_update_nodeType
=== PAUSE TestAccMemoryDBCluster_update_nodeType
=== RUN TestAccMemoryDBCluster_update_numShards_scaleUp
=== PAUSE TestAccMemoryDBCluster_update_numShards_scaleUp
=== RUN TestAccMemoryDBCluster_update_numShards_scaleDown
=== PAUSE TestAccMemoryDBCluster_update_numShards_scaleDown
=== RUN TestAccMemoryDBCluster_update_numReplicasPerShard_scaleUp
=== PAUSE TestAccMemoryDBCluster_update_numReplicasPerShard_scaleUp
=== RUN TestAccMemoryDBCluster_update_numReplicasPerShard_scaleDown
=== PAUSE TestAccMemoryDBCluster_update_numReplicasPerShard_scaleDown
=== RUN TestAccMemoryDBCluster_update_parameterGroup
=== PAUSE TestAccMemoryDBCluster_update_parameterGroup
=== RUN TestAccMemoryDBCluster_update_securityGroupIds
=== PAUSE TestAccMemoryDBCluster_update_securityGroupIds
=== RUN TestAccMemoryDBCluster_update_snapshotRetentionLimit
=== PAUSE TestAccMemoryDBCluster_update_snapshotRetentionLimit
=== RUN TestAccMemoryDBCluster_update_snapshotWindow
=== PAUSE TestAccMemoryDBCluster_update_snapshotWindow
=== RUN TestAccMemoryDBCluster_update_snsTopicArn
=== PAUSE TestAccMemoryDBCluster_update_snsTopicArn
=== RUN TestAccMemoryDBCluster_update_tags
=== PAUSE TestAccMemoryDBCluster_update_tags
=== CONT TestAccMemoryDBCluster_basic
=== CONT TestAccMemoryDBCluster_update_parameterGroup
=== CONT TestAccMemoryDBCluster_update_aclName
=== CONT TestAccMemoryDBCluster_update_numReplicasPerShard_scaleDown
=== CONT TestAccMemoryDBCluster_basic
subnet_group_test.go:25: MemoryDB is not supported in aws-us-gov partition
--- SKIP: TestAccMemoryDBCluster_basic (1.67s)
=== CONT TestAccMemoryDBCluster_update_numReplicasPerShard_scaleUp
=== CONT TestAccMemoryDBCluster_update_numReplicasPerShard_scaleDown
subnet_group_test.go:25: MemoryDB is not supported in aws-us-gov partition
--- SKIP: TestAccMemoryDBCluster_update_numReplicasPerShard_scaleDown (1.67s)
=== CONT TestAccMemoryDBCluster_update_parameterGroup
subnet_group_test.go:25: MemoryDB is not supported in aws-us-gov partition
=== CONT TestAccMemoryDBCluster_update_numShards_scaleDown
--- SKIP: TestAccMemoryDBCluster_update_parameterGroup (1.67s)
=== CONT TestAccMemoryDBCluster_update_numShards_scaleUp
=== CONT TestAccMemoryDBCluster_update_numShards_scaleDown
subnet_group_test.go:25: MemoryDB is not supported in aws-us-gov partition
=== CONT TestAccMemoryDBCluster_update_numShards_scaleUp
subnet_group_test.go:25: MemoryDB is not supported in aws-us-gov partition
=== CONT TestAccMemoryDBCluster_update_nodeType
=== CONT TestAccMemoryDBCluster_update_maintenanceWindow
=== CONT TestAccMemoryDBCluster_update_nodeType
subnet_group_test.go:25: MemoryDB is not supported in aws-us-gov partition
--- SKIP: TestAccMemoryDBCluster_update_numShards_scaleDown (0.00s)
=== CONT TestAccMemoryDBCluster_update_engineVersion
=== CONT TestAccMemoryDBCluster_update_maintenanceWindow
subnet_group_test.go:25: MemoryDB is not supported in aws-us-gov partition
=== CONT TestAccMemoryDBCluster_update_numReplicasPerShard_scaleUp
subnet_group_test.go:25: MemoryDB is not supported in aws-us-gov partition
=== CONT TestAccMemoryDBCluster_update_description
=== CONT TestAccMemoryDBCluster_update_aclName
subnet_group_test.go:25: MemoryDB is not supported in aws-us-gov partition
=== CONT TestAccMemoryDBCluster_update_snapshotWindow
--- SKIP: TestAccMemoryDBCluster_update_numShards_scaleUp (0.00s)
--- SKIP: TestAccMemoryDBCluster_update_nodeType (0.00s)
--- SKIP: TestAccMemoryDBCluster_update_maintenanceWindow (0.00s)
--- SKIP: TestAccMemoryDBCluster_update_numReplicasPerShard_scaleUp (0.00s)
--- SKIP: TestAccMemoryDBCluster_update_aclName (1.67s)
=== CONT TestAccMemoryDBCluster_update_snapshotRetentionLimit
=== CONT TestAccMemoryDBCluster_update_engineVersion
subnet_group_test.go:25: MemoryDB is not supported in aws-us-gov partition
--- SKIP: TestAccMemoryDBCluster_update_engineVersion (0.00s)
=== CONT TestAccMemoryDBCluster_create_noTLS
=== CONT TestAccMemoryDBCluster_update_description
subnet_group_test.go:25: MemoryDB is not supported in aws-us-gov partition
=== CONT TestAccMemoryDBCluster_update_snapshotRetentionLimit
subnet_group_test.go:25: MemoryDB is not supported in aws-us-gov partition
--- SKIP: TestAccMemoryDBCluster_update_description (0.00s)
=== CONT TestAccMemoryDBCluster_delete_withFinalSnapshot
=== CONT TestAccMemoryDBCluster_update_snsTopicArn
=== CONT TestAccMemoryDBCluster_create_noTLS
subnet_group_test.go:25: MemoryDB is not supported in aws-us-gov partition
=== CONT TestAccMemoryDBCluster_create_withPort
--- SKIP: TestAccMemoryDBCluster_update_snapshotRetentionLimit (0.00s)
--- SKIP: TestAccMemoryDBCluster_create_noTLS (0.00s)
=== CONT TestAccMemoryDBCluster_update_snsTopicArn
subnet_group_test.go:25: MemoryDB is not supported in aws-us-gov partition
=== CONT TestAccMemoryDBCluster_update_snapshotWindow
subnet_group_test.go:25: MemoryDB is not supported in aws-us-gov partition
=== CONT TestAccMemoryDBCluster_create_withKMS
=== CONT TestAccMemoryDBCluster_delete_withFinalSnapshot
subnet_group_test.go:25: MemoryDB is not supported in aws-us-gov partition
=== CONT TestAccMemoryDBCluster_update_securityGroupIds
=== CONT TestAccMemoryDBCluster_create_withPort
subnet_group_test.go:25: MemoryDB is not supported in aws-us-gov partition
--- SKIP: TestAccMemoryDBCluster_update_snsTopicArn (0.00s)
=== CONT TestAccMemoryDBCluster_namePrefix
--- SKIP: TestAccMemoryDBCluster_update_snapshotWindow (0.00s)
=== CONT TestAccMemoryDBCluster_create_withKMS
subnet_group_test.go:25: MemoryDB is not supported in aws-us-gov partition
=== CONT TestAccMemoryDBCluster_update_securityGroupIds
subnet_group_test.go:25: MemoryDB is not supported in aws-us-gov partition
--- SKIP: TestAccMemoryDBCluster_delete_withFinalSnapshot (0.00s)
=== CONT TestAccMemoryDBCluster_update_tags
=== CONT TestAccMemoryDBCluster_defaults
=== CONT TestAccMemoryDBCluster_namePrefix
subnet_group_test.go:25: MemoryDB is not supported in aws-us-gov partition
=== CONT TestAccMemoryDBCluster_nameGenerated
=== CONT TestAccMemoryDBCluster_disappears
=== CONT TestAccMemoryDBCluster_update_tags
subnet_group_test.go:25: MemoryDB is not supported in aws-us-gov partition
=== CONT TestAccMemoryDBCluster_nameGenerated
subnet_group_test.go:25: MemoryDB is not supported in aws-us-gov partition
--- SKIP: TestAccMemoryDBCluster_create_withPort (0.00s)
=== CONT TestAccMemoryDBCluster_defaults
subnet_group_test.go:25: MemoryDB is not supported in aws-us-gov partition
=== CONT TestAccMemoryDBCluster_disappears
subnet_group_test.go:25: MemoryDB is not supported in aws-us-gov partition
--- SKIP: TestAccMemoryDBCluster_nameGenerated (0.00s)
--- SKIP: TestAccMemoryDBCluster_create_withKMS (0.00s)
--- SKIP: TestAccMemoryDBCluster_update_securityGroupIds (0.00s)
--- SKIP: TestAccMemoryDBCluster_namePrefix (0.00s)
--- SKIP: TestAccMemoryDBCluster_update_tags (0.00s)
--- SKIP: TestAccMemoryDBCluster_disappears (0.00s)
--- SKIP: TestAccMemoryDBCluster_defaults (0.00s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/memorydb 8.508s
@roberth-k Thanks for the contribution 🎉 👏. |
This functionality has been released in v3.71.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! |
|
||
func endpointSchema() *schema.Schema { | ||
return &schema.Schema{ | ||
Type: schema.TypeList, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How come this is list instead of a map/object? Is there ever possibility of having multiple items?
It doesn't seem to be a list in AWS API https://docs.aws.amazon.com/memorydb/latest/APIReference/API_Cluster.html#MemoryDB-Type-Cluster-ClusterEndpoint.
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. |
Community Note
Relates #20631
MemoryDB clusters are super slow to update, so the acceptance tests take a while to run.
Output from acceptance testing: