{
    "url": "https://delaparra-services.nl/nl/skills/terraform-module-library",
    "locale": "nl",
    "title": "Terraform-modulelibrary | DeLaParra Services",
    "description": "Maak herbruikbare Terraform-modules voor AWS-, Azure-, GCP- en OCI-infrastructuur volgens de best practices voor ‘infrastructure-as-code’. Gebruik deze bij het maken van infrastructuurmodules, het standaardiseren van cloudprovisioning of het implementeren van herbruikbare IaC-componenten.",
    "alternates": {
        "en": "https://delaparra-services.nl/skills/terraform-module-library",
        "nl": "https://delaparra-services.nl/nl/skills/terraform-module-library"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/nl/skills/terraform-module-library.csv",
        "md": "https://delaparra-services.nl/nl/skills/terraform-module-library.md",
        "json": "https://delaparra-services.nl/nl/skills/terraform-module-library.json",
        "zip": "https://delaparra-services.nl/nl/skills/terraform-module-library.zip",
        "pdf": "https://delaparra-services.nl/nl/skills/terraform-module-library.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/nl/skills/terraform-module-library.csv",
            "encodingFormat": "text/csv",
            "name": "terraform-module-library.csv"
        },
        {
            "url": "https://delaparra-services.nl/nl/skills/terraform-module-library.json",
            "encodingFormat": "application/json",
            "name": "terraform-module-library.json"
        },
        {
            "url": "https://delaparra-services.nl/nl/skills/terraform-module-library.md",
            "encodingFormat": "text/markdown",
            "name": "terraform-module-library.md"
        },
        {
            "url": "https://delaparra-services.nl/nl/skills/terraform-module-library.pdf",
            "encodingFormat": "application/pdf",
            "name": "terraform-module-library.pdf"
        },
        {
            "url": "https://delaparra-services.nl/nl/skills/terraform-module-library.zip",
            "encodingFormat": "application/zip",
            "name": "terraform-module-library.zip"
        },
        {
            "url": "https://delaparra-services.nl/skills/terraform-module-library/download",
            "encodingFormat": "application/zip",
            "name": "terraform-module-library-files.zip"
        }
    ],
    "markdown": "# Terraform-modulelibrary\n\n \n\nMaak herbruikbare Terraform-modules voor AWS-, Azure-, GCP- en OCI-infrastructuur volgens de best practices voor ‘infrastructure-as-code’. Gebruik deze bij het maken van infrastructuurmodules, het standaardiseren van cloudprovisioning of het implementeren van herbruikbare IaC-componenten.\n\n \n\n**Licentie** MIT\n\n \n\n**Bron** wshobson/agents\n\n [Download zip](<https://delaparra-services.nl/skills/terraform-module-library/download>)   \n\n# Terraform-modulelibrary\n\n \n\nKant-en-klare Terraform-modulepatronen voor infrastructuur op AWS, Azure, GCP en OCI.\n\n \n\n## Doel\n\n \n\nMaak herbruikbare, grondig geteste Terraform-modules voor veelvoorkomende patronen in cloudinfrastructuur bij verschillende cloudproviders.\n\n \n\n## Wanneer gebruik je dit?\n\n \n\n- Bouw herbruikbare infrastructuurcomponenten \n- De toewijzing van cloudresources standaardiseren \n- Pas de best practices voor ‘infrastructuur als code’ toe \n- Maak modules die geschikt zijn voor multi-cloud \n- Stel Terraform-richtlijnen voor de organisatie op\n\n \n\n## Opbouw van de module\n\n \n\n```\nterraform-modules/\n├── aws/\n│   ├── vpc/\n│   ├── eks/\n│   ├── rds/\n│   └── s3/\n├── azure/\n│   ├── vnet/\n│   ├── aks/\n│   └── storage/\n├── gcp/\n│   ├── vpc/\n│   ├── gke/\n│   └── cloud-sql/\n└── oci/\n    ├── vcn/\n    ├── oke/\n    └── object-storage/\n```\n\n \n\n## Standaardmodulepatroon\n\n \n\n```\nmodule-name/\n├── main.tf          # Main resources\n├── variables.tf     # Input variables\n├── outputs.tf       # Output values\n├── versions.tf      # Provider versions\n├── README.md        # Documentation\n├── examples/        # Usage examples\n│   └── complete/\n│       ├── main.tf\n│       └── variables.tf\n└── tests/           # Terratest files\n    └── module_test.go\n```\n\n \n\n## Voorbeeld van de AWS VPC-module\n\n \n\n**main.tf:**\n\n \n\n```\nresource \"aws_vpc\" \"main\" {\n  cidr_block           = var.cidr_block\n  enable_dns_hostnames = var.enable_dns_hostnames\n  enable_dns_support   = var.enable_dns_support\n\n  tags = merge(\n    {\n      Name = var.name\n    },\n    var.tags\n  )\n}\n\nresource \"aws_subnet\" \"private\" {\n  count             = length(var.private_subnet_cidrs)\n  vpc_id            = aws_vpc.main.id\n  cidr_block        = var.private_subnet_cidrs[count.index]\n  availability_zone = var.availability_zones[count.index]\n\n  tags = merge(\n    {\n      Name = \"${var.name}-private-${count.index + 1}\"\n      Tier = \"private\"\n    },\n    var.tags\n  )\n}\n\nresource \"aws_internet_gateway\" \"main\" {\n  count  = var.create_internet_gateway ? 1 : 0\n  vpc_id = aws_vpc.main.id\n\n  tags = merge(\n    {\n      Name = \"${var.name}-igw\"\n    },\n    var.tags\n  )\n}\n```\n\n \n\n**variables.tf:**\n\n \n\n```\nvariable \"name\" {\n  description = \"Name of the VPC\"\n  type        = string\n}\n\nvariable \"cidr_block\" {\n  description = \"CIDR block for VPC\"\n  type        = string\n  validation {\n    condition     = can(regex(\"^([0-9]{1,3}\\\\.){3}[0-9]{1,3}/[0-9]{1,2}$\", var.cidr_block))\n    error_message = \"CIDR block must be valid IPv4 CIDR notation.\"\n  }\n}\n\nvariable \"availability_zones\" {\n  description = \"List of availability zones\"\n  type        = list(string)\n}\n\nvariable \"private_subnet_cidrs\" {\n  description = \"CIDR blocks for private subnets\"\n  type        = list(string)\n  default     = []\n}\n\nvariable \"enable_dns_hostnames\" {\n  description = \"Enable DNS hostnames in VPC\"\n  type        = bool\n  default     = true\n}\n\nvariable \"tags\" {\n  description = \"Additional tags\"\n  type        = map(string)\n  default     = {}\n}\n```\n\n \n\n**outputs.tf:**\n\n \n\n```\noutput \"vpc_id\" {\n  description = \"ID of the VPC\"\n  value       = aws_vpc.main.id\n}\n\noutput \"private_subnet_ids\" {\n  description = \"IDs of private subnets\"\n  value       = aws_subnet.private[*].id\n}\n\noutput \"vpc_cidr_block\" {\n  description = \"CIDR block of VPC\"\n  value       = aws_vpc.main.cidr_block\n}\n```\n\n \n\n## Beste praktijken\n\n \n\n1. **Gebruik semantische versiebeheer** voor modules \n1. **Documenteer alle variabelen** met beschrijvingen \n1. **Geef voorbeelden** in de map examples/ \n1. **Gebruik validatieblokken** om invoer te valideren \n1. **Belangrijke kenmerken weergeven** voor de samenstelling van de module \n1. **Versies van pin-providers** in versions.tf \n1. **Gebruik lokale variabelen** voor berekende waarden \n1. **Voorwaardelijke bronnen implementeren** met count/for\\_each \n1. **Testmodules** met Terratest \n1. **Zet consequent tags op alle bronnen**\n\n \n\n**Bronvermelding:** Zie ` references/aws-modules.md ` en ` references/oci-modules.md `\n\n \n\n## Samenstelling van de module\n\n \n\n```\nmodule \"vpc\" {\n  source = \"../../modules/aws/vpc\"\n\n  name               = \"production\"\n  cidr_block         = \"10.0.0.0/16\"\n  availability_zones = [\"us-west-2a\", \"us-west-2b\", \"us-west-2c\"]\n\n  private_subnet_cidrs = [\n    \"10.0.1.0/24\",\n    \"10.0.2.0/24\",\n    \"10.0.3.0/24\"\n  ]\n\n  tags = {\n    Environment = \"production\"\n    ManagedBy   = \"terraform\"\n  }\n}\n\nmodule \"rds\" {\n  source = \"../../modules/aws/rds\"\n\n  identifier     = \"production-db\"\n  engine         = \"postgres\"\n  engine_version = \"15.3\"\n  instance_class = \"db.t3.large\"\n\n  vpc_id     = module.vpc.vpc_id\n  subnet_ids = module.vpc.private_subnet_ids\n\n  tags = {\n    Environment = \"production\"\n  }\n}\n```\n\n \n\n## Testen\n\n \n\n```\n// tests/vpc_test.go\npackage test\n\nimport (\n    \"testing\"\n    \"github.com/gruntwork-io/terratest/modules/terraform\"\n    \"github.com/stretchr/testify/assert\"\n)\n\nfunc TestVPCModule(t *testing.T) {\n    terraformOptions := &terraform.Options{\n        TerraformDir: \"../examples/complete\",\n    }\n\n    defer terraform.Destroy(t, terraformOptions)\n    terraform.InitAndApply(t, terraformOptions)\n\n    vpcID := terraform.Output(t, terraformOptions, \"vpc_id\")\n    assert.NotEmpty(t, vpcID)\n}\n```\n\n \n\n## Gerelateerde vaardigheden\n\n \n\n- ` multi-cloud-architecture ` - Voor architecturale keuzes \n- ` cost-optimization ` - Voor kostenefficiënte ontwerpen\n\n \n\n## Bestanden\n\n \n\n- ` LICENSE ` \n- ` SKILL.md ` \n- ` SOURCE.md ` \n- ` references/aws-modules.md ` \n- ` references/oci-modules.md `\n\n \n\n## Gerelateerde termen\n\n \n\n- [apply](<https://delaparra-services.nl/nl/kennisbank/apply-terraform>) \n- [attribute](<https://delaparra-services.nl/nl/kennisbank/attribute>) \n- [block](<https://delaparra-services.nl/nl/kennisbank/block>) \n- [count](<https://delaparra-services.nl/nl/kennisbank/count>) \n- [data source](<https://delaparra-services.nl/nl/kennisbank/data-source>) \n- [depends\\_on](<https://delaparra-services.nl/nl/kennisbank/depends-on-terraform>) \n- [destroy](<https://delaparra-services.nl/nl/kennisbank/destroy>) \n- [drift](<https://delaparra-services.nl/nl/kennisbank/drift>) \n- [expression](<https://delaparra-services.nl/nl/kennisbank/expression>) \n- [fmt](<https://delaparra-services.nl/nl/kennisbank/fmt>) \n- [for expression](<https://delaparra-services.nl/nl/kennisbank/for-expression>) \n- [for\\_each](<https://delaparra-services.nl/nl/kennisbank/for-each>) \n- [heredoc](<https://delaparra-services.nl/nl/kennisbank/heredoc>) \n- [IaC (Infrastructure as Code)](<https://delaparra-services.nl/nl/kennisbank/iac-infrastructure-as-code>) \n- [import](<https://delaparra-services.nl/nl/kennisbank/import>) \n- [init](<https://delaparra-services.nl/nl/kennisbank/init>) \n- [interpolation](<https://delaparra-services.nl/nl/kennisbank/interpolation>) \n- [lifecycle](<https://delaparra-services.nl/nl/kennisbank/lifecycle>) \n- [locals](<https://delaparra-services.nl/nl/kennisbank/locals>) \n- [module](<https://delaparra-services.nl/nl/kennisbank/module>) \n- [output](<https://delaparra-services.nl/nl/kennisbank/output>) \n- [plan](<https://delaparra-services.nl/nl/kennisbank/plan>) \n- [provider](<https://delaparra-services.nl/nl/kennisbank/provider>) \n- [provider alias](<https://delaparra-services.nl/nl/kennisbank/provider-alias>) \n- [refresh](<https://delaparra-services.nl/nl/kennisbank/refresh>) \n- [remote backend](<https://delaparra-services.nl/nl/kennisbank/remote-backend>) \n- [resource](<https://delaparra-services.nl/nl/kennisbank/resource>) \n- [state file](<https://delaparra-services.nl/nl/kennisbank/state-file>) \n- [state lock](<https://delaparra-services.nl/nl/kennisbank/state-lock>) \n- [state mv / rm](<https://delaparra-services.nl/nl/kennisbank/state-mv-rm>) \n- [taint](<https://delaparra-services.nl/nl/kennisbank/taint-terraform>) \n- [ternary](<https://delaparra-services.nl/nl/kennisbank/ternary>) \n- [terraform block](<https://delaparra-services.nl/nl/kennisbank/terraform-block>) \n- [terraform.tfstate](<https://delaparra-services.nl/nl/kennisbank/terraformtfstate>) \n- [validate](<https://delaparra-services.nl/nl/kennisbank/validate>) \n- [variable](<https://delaparra-services.nl/nl/kennisbank/variable>) \n- [workspace](<https://delaparra-services.nl/nl/kennisbank/workspace>)\n\n \n\n[Een skill installeren in je AI-assistent](<https://delaparra-services.nl/nl/handleidingen/een-skill-installeren-in-je-ai-assistent>)\n\n[HTML version](https://delaparra-services.nl/nl/skills/terraform-module-library)\n",
    "structured_data": {
        "@context": "https://schema.org",
        "@graph": [
            {
                "@type": "Organization",
                "@id": "https://delaparra-services.nl/#practice",
                "logo": "https://delaparra-services.nl/logo.png",
                "name": "DeLaParra Services",
                "legalName": "DeLaParra Services",
                "url": "https://delaparra-services.nl/",
                "description": "Maatwerk software, webapplicaties en mobiele apps, ontwikkeld in Laravel door één ontwikkelaar in Groningen. Vaste prijs vooraf, volledige broncode bij oplevering.",
                "email": "info@delaparra-services.nl",
                "address": {
                    "@type": "PostalAddress",
                    "addressLocality": "Groningen",
                    "addressRegion": "Groningen",
                    "addressCountry": "NL"
                },
                "areaServed": "Groningen, Nederland",
                "knowsLanguage": [
                    "en",
                    "nl"
                ],
                "knowsAbout": [
                    "Webdesign en -ontwikkeling",
                    "App-ontwikkeling",
                    "Maatwerk software en webapplicaties",
                    "OpenSpec",
                    "Beoordeling van AI-code",
                    "Je eigen programmeeragent"
                ],
                "founder": {
                    "@id": "https://delaparra-services.nl/#person"
                }
            },
            {
                "@type": "WebPage",
                "@id": "https://delaparra-services.nl/nl/skills/terraform-module-library#webpage",
                "url": "https://delaparra-services.nl/nl/skills/terraform-module-library",
                "name": "Terraform-modulelibrary | DeLaParra Services",
                "description": "Maak herbruikbare Terraform-modules voor AWS-, Azure-, GCP- en OCI-infrastructuur volgens de best practices voor ‘infrastructure-as-code’. Gebruik deze bij het maken van infrastructuurmodules, het standaardiseren van cloudprovisioning of het implementeren van herbruikbare IaC-componenten.",
                "isPartOf": {
                    "@id": "https://delaparra-services.nl/#website"
                },
                "about": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "inLanguage": "nl",
                "breadcrumb": {
                    "@id": "https://delaparra-services.nl/nl/skills/terraform-module-library#breadcrumb"
                }
            },
            {
                "@type": "BreadcrumbList",
                "@id": "https://delaparra-services.nl/nl/skills/terraform-module-library#breadcrumb",
                "itemListElement": [
                    {
                        "@type": "ListItem",
                        "position": 1,
                        "name": "Home",
                        "item": "https://delaparra-services.nl/nl"
                    },
                    {
                        "@type": "ListItem",
                        "position": 2,
                        "name": "Terraform-modulelibrary"
                    }
                ]
            },
            {
                "@type": "Person",
                "@id": "https://delaparra-services.nl/#person",
                "name": "Reinier de la Parra",
                "url": "https://delaparra-services.nl/nl/about"
            },
            {
                "@type": "SoftwareSourceCode",
                "@id": "https://delaparra-services.nl/nl/skills/terraform-module-library#skill",
                "url": "https://delaparra-services.nl/nl/skills/terraform-module-library",
                "name": "Terraform-modulelibrary",
                "description": "Maak herbruikbare Terraform-modules voor AWS-, Azure-, GCP- en OCI-infrastructuur volgens de best practices voor ‘infrastructure-as-code’. Gebruik deze bij het maken van infrastructuurmodules, het standaardiseren van cloudprovisioning of het implementeren van herbruikbare IaC-componenten.",
                "inLanguage": "nl",
                "license": "https://spdx.org/licenses/MIT.html",
                "subjectOf": {
                    "@id": "https://delaparra-services.nl/nl/skills/terraform-module-library#dataset"
                }
            },
            {
                "@type": "Dataset",
                "@id": "https://delaparra-services.nl/nl/skills/terraform-module-library#dataset",
                "name": "Terraform-modulelibrary",
                "description": "Maak herbruikbare Terraform-modules voor AWS-, Azure-, GCP- en OCI-infrastructuur volgens de best practices voor ‘infrastructure-as-code’. Gebruik deze bij het maken van infrastructuurmodules, het standaardiseren van cloudprovisioning of het implementeren van herbruikbare IaC-componenten.",
                "url": "https://delaparra-services.nl/nl/skills/terraform-module-library",
                "identifier": "https://delaparra-services.nl/nl/skills/terraform-module-library#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/nl/skills/terraform-module-library#skill"
                },
                "creditText": "wshobson/agents",
                "publisher": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "license": "https://spdx.org/licenses/MIT.html",
                "isAccessibleForFree": true,
                "inLanguage": "nl",
                "dateModified": "2026-11-28T14:00:12+00:00",
                "isPartOf": {
                    "@type": "Dataset",
                    "@id": "https://delaparra-services.nl/nl/kennisbank#skills",
                    "name": "Skills voor AI-programmeerassistenten",
                    "url": "https://delaparra-services.nl/nl/kennisbank"
                },
                "includedInDataCatalog": {
                    "@type": "DataCatalog",
                    "@id": "https://delaparra-services.nl/nl/kennisbank#catalog",
                    "name": "Datacatalogus van de kennisbank",
                    "url": "https://delaparra-services.nl/nl/kennisbank"
                },
                "distribution": [
                    {
                        "@type": "DataDownload",
                        "name": "terraform-module-library.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/nl/skills/terraform-module-library.csv",
                        "inLanguage": "nl",
                        "dateModified": "2026-11-28T14:00:12+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "terraform-module-library.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/nl/skills/terraform-module-library.json",
                        "inLanguage": "nl",
                        "dateModified": "2026-11-28T14:00:12+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "terraform-module-library.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/nl/skills/terraform-module-library.md",
                        "inLanguage": "nl",
                        "dateModified": "2026-11-28T14:00:12+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "terraform-module-library.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/nl/skills/terraform-module-library.pdf",
                        "inLanguage": "nl",
                        "dateModified": "2026-11-28T14:00:12+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "terraform-module-library.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/nl/skills/terraform-module-library.zip",
                        "inLanguage": "nl",
                        "dateModified": "2026-11-28T14:00:12+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "terraform-module-library-files.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/skills/terraform-module-library/download",
                        "inLanguage": "nl",
                        "dateModified": "2026-11-28T14:00:12+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    }
                ]
            }
        ]
    }
}