-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Set AWS Elasticache Port Number to be required #2160
Set AWS Elasticache Port Number to be required #2160
Conversation
Set Elasticache Port number to not be set by default, and require Elasticache Port number to be specified. Also updated acceptance tests to supply port number upon resource declaration Fixes hashicorp#2084
Thanks @grubernaut – can yo update https://github.com/hashicorp/terraform/blob/master/website/source/docs/providers/aws/r/elasticache_cluster.html.markdown as well, maybe even mentioning what the default is for Redis/Memcached? |
@@ -123,7 +122,7 @@ func resourceAwsElasticacheClusterCreate(d *schema.ResourceData, meta interface{ | |||
numNodes := int64(d.Get("num_cache_nodes").(int)) // 2 | |||
engine := d.Get("engine").(string) // memcached | |||
engineVersion := d.Get("engine_version").(string) // 1.4.14 | |||
port := int64(d.Get("port").(int)) // 11211 | |||
port := int64(d.Get("port").(int)) // e.g) 11211 |
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.
e.g)
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.
Should I remove the space after the parens?
@catsby Updated Documentation as requested |
LGTM! |
provider/aws: Set AWS Elasticache Port Number to be required
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Set Elasticache Port number to not be set by default, and require
Elasticache Port number to be specified.
Also updated acceptance tests to supply port number upon resource
declaration
Fixes #2084