-
Notifications
You must be signed in to change notification settings - Fork 0
/
efs.tf
30 lines (28 loc) · 1.11 KB
/
efs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
resource "aws_efs_file_system" "jenkins_efs" {
creation_token = "Jenkins-EFS"
encrypted = true
kms_key_id = "${aws_kms_key.ebs_kms.arn}"
tags = {
Name = "Jenkins-EFS"
}
}
resource "aws_efs_mount_target" "jenkins_target_subnet_1" {
file_system_id = "${aws_efs_file_system.jenkins_efs.id}"
subnet_id = "${var.public_subnets}"
security_groups = ["${aws_security_group.efs-securitygroup.id}"]
}
resource "aws_efs_mount_target" "jenkins_target_subnet_2" {
file_system_id = "${aws_efs_file_system.jenkins_efs.id}"
subnet_id = "${var.public_subnets}"
security_groups = ["${aws_security_group.efs-securitygroup.id}"]
}
resource "aws_efs_mount_target" "jenkins_target_subnet_3" {
file_system_id = "${aws_efs_file_system.jenkins_efs.id}"
subnet_id = "${var.public_subnets}"
security_groups = ["${aws_security_group.efs-securitygroup.id}"]
}
resource "aws_efs_mount_target" "jenkins_target_subnet_4" {
file_system_id = "${aws_efs_file_system.jenkins_efs.id}"
subnet_id = "${var.public_subnets}"
security_groups = ["${aws_security_group.efs-securitygroup.id}"]
}