-
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
provider/aws: Add support for EFS #2196
Conversation
4c90597
to
aeff508
Compare
Implementation of mount targets is currently blocked by upstream because AWS for some reason doesn't allow search (i.e. http://docs.aws.amazon.com/cli/latest/reference/efs/describe-mount-targets.html This has been raised with AWS and looks like a feature that should be there (according to support representative). |
After talking to AWS and re-reading relevant docs, it makes more sense to create resource "efs_file_system" "one" {
mount_target {
subnet_id = "subnet-12345678" # AZ 1
ip_address = "10.1.2.3"
security_groups = ["sg-12345", "sg-98765"]
}
mount_target {
subnet_id = "subnet-9876543" # AZ 2
ip_address = "10.2.1.1"
security_groups = ["sg-aaaaaa", "sg-bbbbbb"]
}
} The highlight from docs is:
Therefore the original concern about scalability of the algorithm where we list through all mount targets related to a FS is becoming invalid. It should scale fine. Very often people are going to have 3-4 mount targets, eventually twice or 3 times as much, but maximum is |
15c474a
to
c74d6f6
Compare
a4b9e2d
to
629f0a3
Compare
a2eadaa
to
8f4517c
Compare
This is now ready for review. |
@phinze ready for review |
Hey @radeksimko – sorry for the lag here, the code looks good but the tests won't run, I think the SDK has changed out from under this. Could you take a look? Seems the API around |
Hey @catsby Fixed now. I also tried running acceptance tests again and everything seems fine. |
594c04e
to
f1189ad
Compare
LGTM, merge away... |
provider/aws: Add support for EFS
nice work @radeksimko :) |
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. |
EFS
It's actually in preview, where you have to request access to it and Amazon will eventually approve it, but since it's publicly available in the SDK, I was thinking it's not so "hush-hush" that I'd have to wait. Either way, whoever is going to run the acceptance tests will likely need the EFS to be enabled in that test AWS account.
Checklist
efs_file_system
resourceefs_file_system.tags
efs_mount_target
resourceTest plan