Skip to content

JamesWoolfenden/terraform-aws-fsx-openzfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-aws-fsx-openzfs

Build Status Latest Release GitHub tag (latest SemVer) Terraform Version Infrastructure Tests pre-commit checkov Infrastructure Tests

Module to provision fsx-openzfs containers.

Introduction

It's 100% Open Source and licensed under the APACHE2.

Usage

Include this repository as a module in your existing terraform code:

module "fsx-openzfs" {
  source           = "JamesWoolfenden/fsx-openzfs/aws"
  version          = "0.1.1"
  file_system = {
    storage_capacity    = 64
    deployment_type     = "SINGLE_AZ_1"
    throughput_capacity = 64
  }

  kms_key_id = aws_kms_key.example.arn
  subnet_ids = ["subnet-04338b6369d8288a5"]
}

Costs

Requirements

No requirements.

Providers

Name Version
aws n/a

Modules

No modules.

Resources

Name Type
aws_fsx_openzfs_file_system.example resource
aws_fsx_openzfs_snapshot.example resource
aws_fsx_openzfs_volume.example resource

Inputs

Name Description Type Default Required
file_system n/a
object({
storage_capacity = number
deployment_type = string
throughput_capacity = number
})
n/a yes
kms_key_id KMS key ARN string n/a yes
subnet_ids n/a list(any) n/a yes
volume_name Volume Name string "new" no

Outputs

Name Description
file_system n/a

Policy

This is the policy required to build this project:

The Terraform resource required is:

resource "aws_iam_policy" "terraform_pike" {
  name_prefix = "terraform_pike"
  path        = "/"
  description = "Pike Autogenerated policy from IAC"

  policy = jsonencode({
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
                "ec2:DescribeAccountAttributes"
            ],
            "Resource": "*"
        },
        {
            "Sid": "VisualEditor1",
            "Effect": "Allow",
            "Action": [
                "fsx:CreateFileSystem",
                "fsx:CreateSnapshot",
                "fsx:CreateVolume",
                "fsx:DeleteFileSystem",
                "fsx:DeleteSnapshot",
                "fsx:DeleteVolume",
                "fsx:DescribeFileSystems",
                "fsx:DescribeSnapshots",
                "fsx:DescribeVolumes",
                "fsx:ListTagsForResource",
                "fsx:UpdateFileSystem",
                "fsx:UpdateSnapshot",
                "fsx:UpdateVolume"
            ],
            "Resource": "*"
        },
        {
            "Sid": "VisualEditor2",
            "Effect": "Allow",
            "Action": [
                "iam:CreateServiceLinkedRole"
            ],
            "Resource": "*"
        },
        {
            "Sid": "VisualEditor3",
            "Effect": "Allow",
            "Action": [
                "kms:CreateGrant",
                "kms:DescribeKey"
            ],
            "Resource": "*"
        }
    ]
})
}

Instructions

Related Projects

Check out these related projects.

Help

Got a question?

File a GitHub issue.

Contributing

Bug Reports & Feature Requests

Please use the issue tracker to report any bugs or file feature requests.

Copyrights

Copyright © 2019-2022 James Woolfenden

License

License

See LICENSE for full details.

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Contributors

James Woolfenden
James Woolfenden