-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Add ability to set Performance Mode in aws_efs_file_system. #7791
Add ability to set Performance Mode in aws_efs_file_system. #7791
Conversation
The Elastic File System (EFS) allows for setting a Performance Mode during creation, thus enabling anyone to chose performance of the file system according to their particular needs. This commit adds an optional "performance_mode" attribte to the aws_efs_file_system resource so that an appropriate mode can be set as needed. Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Resolves #7773. |
Test is passing:
Plus, verified from the command line: $ aws efs describe-file-systems --region us-west-2
{
"FileSystems": [
{
"SizeInBytes": {
"Value": 6144
},
"CreationToken": "terraform-qyipifpi2zcrda6yphpslydvgy",
"CreationTime": 1469401038.0,
"PerformanceMode": "maxIO",
"FileSystemId": "fs-c0e21369",
"NumberOfMountTargets": 0,
"LifeCycleState": "available",
"OwnerId": "635543228030"
}
]
} |
@phinze a few questions to you. How does one handle import? Is there something more that needs to be done for the import to work? I've noticed that import test excludes one of the arguments, does this suppose to be like that? Also, I personally think that "reference_name" as an attribute name is a little bit confusing, perhaps renaming it to something along the lines of "creation_token_prefix" or just "token_prefix" would make it less of a misnomer. We could also let the user decide and introduce "creation_token" and "creation_token_prefix", which would be mutually-exclusive and should the former be absent and/or empty, then the second would be take into account, and should it be empty, then we would auto-generate (so business as usual). What do you think? |
@stack72 and I had a quick chat. I will add better test coverage e.g. test validation functions, etc. |
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
@stack72 let me know about the attribute name change, if you have any ideas. |
Add the "creation_token" attribute so that the resource follows the API more closely (as per the convention), thus deprecate the "reference_name" attribute. Update tests and documentation accordingly. Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Updated tests are passing:
And verified from the command line: $ aws efs describe-file-systems --region us-west-2
{
"FileSystems": [
{
"SizeInBytes": {
"Value": 6144
},
"CreationToken": "supercalifragilisticexpialidocious",
"CreationTime": 1469656720.0,
"PerformanceMode": "maxIO",
"FileSystemId": "fs-ae1bea07",
"NumberOfMountTargets": 0,
"LifeCycleState": "available",
"OwnerId": "635543228030"
}
]
} |
Over to you @phinze 🚀 |
Hi @kwilczynski This LGTM!
|
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. |
The Elastic File System (EFS) allows for setting a Performance Mode during
creation, thus enabling anyone to chose performance of the file system according
to their particular needs. This commit adds an optional "performance_mode"
attribute to the aws_efs_file_system resource so that an appropriate mode can be
set as needed.
Signed-off-by: Krzysztof Wilczynski krzysztof.wilczynski@linux.com