Skip to content
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

Terraform Module for EFS #35

Merged
merged 10 commits into from
Oct 12, 2023
Merged

Terraform Module for EFS #35

merged 10 commits into from
Oct 12, 2023

Conversation

angeleenasunny
Copy link
Collaborator

@angeleenasunny angeleenasunny commented Sep 27, 2023

Terraform Plan:

module.efs.aws_efs_file_system.elastic_file_system will be created

  • resource "aws_efs_file_system" "elastic_file_system" {
    • arn = (known after apply)

    • availability_zone_id = (known after apply)

    • availability_zone_name = (known after apply)

    • creation_token = "test-efs"

    • dns_name = (known after apply)

    • encrypted = true

    • id = (known after apply)

    • kms_key_id = (known after apply)

    • name = (known after apply)

    • number_of_mount_targets = (known after apply)

    • owner_id = (known after apply)

    • performance_mode = "generalPurpose"

    • size_in_bytes = (known after apply)

    • tags_all = {

      • "Environment" = "Test"
      • "Project" = "QBurst"
        }
    • throughput_mode = "bursting"

    • lifecycle_policy {

      • transition_to_ia = "AFTER_30_DAYS"
        }
        }

module.efs.aws_efs_mount_target.efs_mount_target[0] will be created

  • resource "aws_efs_mount_target" "efs_mount_target" {
    • availability_zone_id = (known after apply)
    • availability_zone_name = (known after apply)
    • dns_name = (known after apply)
    • file_system_arn = (known after apply)
    • file_system_id = (known after apply)
    • id = (known after apply)
    • ip_address = (known after apply)
    • mount_target_dns_name = (known after apply)
    • network_interface_id = (known after apply)
    • owner_id = (known after apply)
    • security_groups = [
      • "sg-01234567890abcdef",
        ]
    • subnet_id = "subnet-01234567890abcdef"
      }

module.efs.aws_efs_mount_target.efs_mount_target[1] will be created

  • resource "aws_efs_mount_target" "efs_mount_target" {
    • availability_zone_id = (known after apply)
    • availability_zone_name = (known after apply)
    • dns_name = (known after apply)
    • file_system_arn = (known after apply)
    • file_system_id = (known after apply)
    • id = (known after apply)
    • ip_address = (known after apply)
    • mount_target_dns_name = (known after apply)
    • network_interface_id = (known after apply)
    • owner_id = (known after apply)
    • security_groups = [
      • "sg-01234567890abcdef",
        ]
    • subnet_id = "subnet-01234567890ghijklm"
      }

module.efs.aws_kms_key.kms_key_efs will be created

  • resource "aws_kms_key" "kms_key_efs" {
    • arn = (known after apply)
    • bypass_policy_lockout_safety_check = false
    • customer_master_key_spec = "SYMMETRIC_DEFAULT"
    • description = "KMS key for EFS"
    • enable_key_rotation = true
    • id = (known after apply)
    • is_enabled = true
    • key_id = (known after apply)
    • key_usage = "ENCRYPT_DECRYPT"
    • multi_region = (known after apply)
    • policy = (known after apply)
    • tags_all = {
      • "Environment" = "Test"
      • "Project" = "QBurst"
        }
        }

Plan: 4 to add, 0 to change, 0 to destroy.

Changes to Outputs:

  • example_outputs = {
    • efs_arn = (known after apply)
    • efs_id = (known after apply)
    • efs_mount_id = [
      • (known after apply),
      • (known after apply),
        ]
        }

terraform/aws/modules/efs/efs.tf Show resolved Hide resolved
terraform/aws/modules/efs/efs.tf Show resolved Hide resolved
type = bool
default = true
}
variable "kms_key_id" {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@angeleenasunny , I believe this variable is not needed anymore?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@qburst-praven This is removed.

terraform/aws/modules/efs/efs.tf Show resolved Hide resolved
}
variable "subnet_id" {
type = string
default = "subnet-01234567890abcdef"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls change the default values, these and the sec groups provided below might not exist.

@angeleenasunny angeleenasunny merged commit ceb62ab into main Oct 12, 2023
@angeleenasunny angeleenasunny deleted the Terraform_Module_AWS_EFS branch October 12, 2023 03:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants