{
    "url": "https://delaparra-services.nl/knowledge-hub/workspace",
    "locale": "en",
    "title": "workspace: Knowledge hub | DeLaParra Services",
    "description": "Named state instances within one backend, letting you reuse a config for dev/staging/prod with separate state.",
    "alternates": {
        "en": "https://delaparra-services.nl/knowledge-hub/workspace",
        "nl": "https://delaparra-services.nl/nl/kennisbank/workspace"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/knowledge-hub/workspace.csv",
        "md": "https://delaparra-services.nl/knowledge-hub/workspace.md",
        "json": "https://delaparra-services.nl/knowledge-hub/workspace.json",
        "zip": "https://delaparra-services.nl/knowledge-hub/workspace.zip",
        "pdf": "https://delaparra-services.nl/knowledge-hub/workspace.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/knowledge-hub/workspace.csv",
            "encodingFormat": "text/csv",
            "name": "workspace.csv"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/workspace.json",
            "encodingFormat": "application/json",
            "name": "workspace.json"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/workspace.md",
            "encodingFormat": "text/markdown",
            "name": "workspace.md"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/workspace.pdf",
            "encodingFormat": "application/pdf",
            "name": "workspace.pdf"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/workspace.zip",
            "encodingFormat": "application/zip",
            "name": "workspace.zip"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/workspace/skills.zip",
            "encodingFormat": "application/zip",
            "name": "workspace-skills.zip"
        }
    ],
    "markdown": "1. [Home](<https://delaparra-services.nl/>) \n1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) \n1. [workspace](<https://delaparra-services.nl/knowledge-hub/workspace>)\n\n  \n\nCategory: Terraform \n\n# workspace\n\n  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    \n\n## What is workspace?\n\n \n\nworkspace: Named state instances within one backend, letting you reuse a config for dev/staging/prod with separate state. Terraform workspaces let one configuration manage several separate states in the same backend, such as ` default `, ` staging ` and ` production `. ` terraform workspace select staging ` switches which state you are working on. Inside the configuration, ` terraform.workspace ` returns the current name, so you can adjust sizes or names per environment.\n\n \n\nDefinition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)\n\n \n\n## Frequently asked questions about workspace\n\n  \n\n### What should you keep in mind with workspace?\n\n \n\nWorkspaces are convenient but easy to misuse. It is simple to apply to production while thinking you are in staging, because nothing in the code itself shows the difference. Many teams prefer separate folders or separate backend configurations per environment, which make the target explicit and allow different permissions. If you use workspaces, show the current one in your shell prompt and in CI logs.\n\n    \n\n### What does an example of workspace look like?\n\n \n\n```\nterraform workspace new staging terraform workspace select staging\n```\n\n \n\n## At a glance\n\n   CategoryTerraform Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026\n\n \n\n## More Terraform terms\n\n \n\n- [taint](<https://delaparra-services.nl/knowledge-hub/taint-terraform>) \n- [ternary](<https://delaparra-services.nl/knowledge-hub/ternary>) \n- [terraform block](<https://delaparra-services.nl/knowledge-hub/terraform-block>) \n- [terraform.tfstate](<https://delaparra-services.nl/knowledge-hub/terraformtfstate>) \n- [validate](<https://delaparra-services.nl/knowledge-hub/validate>) \n- [variable](<https://delaparra-services.nl/knowledge-hub/variable>)\n\n \n\n[All terms starting with W](<https://delaparra-services.nl/knowledge-hub#letter-w>)\n\n \n\n## Skills\n\n \n\n- ### Terraform safe workflow\n\n \n\nUse when running or changing Terraform (or OpenTofu) - init, fmt, validate, plan, apply, destroy, import, state mv/rm, refresh, workspaces, remote backends, state locking, drift, taint/-replace. Enforces a plan-review-apply workflow and protects state.\n\n [View skill](<https://delaparra-services.nl/skills/terraform-safe-workflow>) [Download zip](<https://delaparra-services.nl/skills/terraform-safe-workflow/download>) \n- ### Terraform Module Library\n\n \n\nBuild reusable Terraform modules for AWS, Azure, GCP, and OCI infrastructure following infrastructure-as-code best practices. Use when creating infrastructure modules, standardizing cloud provisioning, or implementing reusable IaC components.\n\n [View skill](<https://delaparra-services.nl/skills/terraform-module-library>) [Download zip](<https://delaparra-services.nl/skills/terraform-module-library/download>) \n- ### Multi-Cloud Architecture\n\n \n\nDesign multi-cloud architectures using a decision framework to select and integrate services across AWS, Azure, GCP, and OCI. Use when building multi-cloud systems, avoiding vendor lock-in, or leveraging best-of-breed services from multiple providers.\n\n [View skill](<https://delaparra-services.nl/skills/multi-cloud-architecture>) [Download zip](<https://delaparra-services.nl/skills/multi-cloud-architecture/download>)\n\n [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/workspace/skills.zip>)\n\n \n\n## Manuals\n\n \n\n- [Kubernetes and Terraform: do you need them?](<https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig>) \n- [Choosing cloud services for your app](<https://delaparra-services.nl/manuals/cloud-diensten-kiezen>)\n\n \n\n## Related services\n\n \n\n- [Custom software and web applications](<https://delaparra-services.nl/services#service-03>)\n\nPerhaps your customers need somewhere to download their invoices, or your staff are managing bookings in a spreadsheet.\n\n \n\n## Need any help?\n\n \n\nStuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.\n\n  [Get in touch](<https://delaparra-services.nl/availability>)\n\n[HTML version](https://delaparra-services.nl/knowledge-hub/workspace)\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": "Bespoke software, web applications and mobile apps, developed in Laravel by a single developer in Groningen. Fixed price agreed in advance, full source code provided upon delivery.",
                "email": "info@delaparra-services.nl",
                "address": {
                    "@type": "PostalAddress",
                    "addressLocality": "Groningen",
                    "addressRegion": "Groningen",
                    "addressCountry": "NL"
                },
                "areaServed": "Groningen, the Netherlands",
                "knowsLanguage": [
                    "en",
                    "nl"
                ],
                "knowsAbout": [
                    "Web design and development",
                    "App development",
                    "Custom software and web applications",
                    "OpenSpec",
                    "AI code review",
                    "Your own coding agent"
                ],
                "founder": {
                    "@id": "https://delaparra-services.nl/#person"
                }
            },
            {
                "@type": "FAQPage",
                "@id": "https://delaparra-services.nl/knowledge-hub/workspace#webpage",
                "url": "https://delaparra-services.nl/knowledge-hub/workspace",
                "name": "workspace: Knowledge hub | DeLaParra Services",
                "description": "Named state instances within one backend, letting you reuse a config for dev/staging/prod with separate state.",
                "isPartOf": {
                    "@id": "https://delaparra-services.nl/#website"
                },
                "about": {
                    "@type": "DefinedTerm",
                    "@id": "https://delaparra-services.nl/knowledge-hub/workspace#term",
                    "name": "workspace",
                    "description": "Named state instances within one backend, letting you reuse a config for dev/staging/prod with separate state.",
                    "termCode": "workspace",
                    "url": "https://delaparra-services.nl/knowledge-hub/workspace",
                    "inLanguage": "en",
                    "keywords": "Terraform",
                    "dateModified": "2026-11-25T17:46:31+00:00",
                    "inDefinedTermSet": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#terms"
                    },
                    "isPartOf": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#dataset"
                    },
                    "subjectOf": [
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/workspace#webpage"
                        },
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/workspace#dataset"
                        }
                    ]
                },
                "inLanguage": "en",
                "breadcrumb": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/workspace#breadcrumb"
                },
                "mainEntity": [
                    {
                        "@type": "Question",
                        "name": "What is workspace?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "Named state instances within one backend, letting you reuse a config for dev/staging/prod with separate state. Terraform workspaces let one configuration manage several separate states in the same backend, such as default, staging and production. terraform workspace select staging switches which state you are working on. Inside the configuration, terraform.workspace returns the current name, so you can adjust sizes or names per environment."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What should you keep in mind with workspace?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "Workspaces are convenient but easy to misuse. It is simple to apply to production while thinking you are in staging, because nothing in the code itself shows the difference. Many teams prefer separate folders or separate backend configurations per environment, which make the target explicit and allow different permissions. If you use workspaces, show the current one in your shell prompt and in CI logs."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What does an example of workspace look like?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "terraform workspace new staging terraform workspace select staging"
                        }
                    }
                ],
                "author": {
                    "@id": "https://delaparra-services.nl/#person"
                },
                "mentions": [
                    {
                        "@id": "https://delaparra-services.nl/skills/terraform-safe-workflow#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/terraform-module-library#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/multi-cloud-architecture#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig#article"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/cloud-diensten-kiezen#article"
                    }
                ]
            },
            {
                "@type": "BreadcrumbList",
                "@id": "https://delaparra-services.nl/knowledge-hub/workspace#breadcrumb",
                "itemListElement": [
                    {
                        "@type": "ListItem",
                        "position": 1,
                        "name": "Home",
                        "item": "https://delaparra-services.nl/"
                    },
                    {
                        "@type": "ListItem",
                        "position": 2,
                        "name": "Knowledge hub",
                        "item": "https://delaparra-services.nl/knowledge-hub"
                    },
                    {
                        "@type": "ListItem",
                        "position": 3,
                        "name": "workspace"
                    }
                ]
            },
            {
                "@type": "Person",
                "@id": "https://delaparra-services.nl/#person",
                "name": "Reinier de la Parra",
                "url": "https://delaparra-services.nl/about"
            },
            {
                "@type": "Dataset",
                "@id": "https://delaparra-services.nl/knowledge-hub/workspace#dataset",
                "name": "workspace",
                "description": "Named state instances within one backend, letting you reuse a config for dev/staging/prod with separate state.",
                "url": "https://delaparra-services.nl/knowledge-hub/workspace",
                "identifier": "https://delaparra-services.nl/knowledge-hub/workspace#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/workspace#term"
                },
                "creator": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "publisher": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "license": "https://creativecommons.org/licenses/by/4.0/",
                "creditText": "Coders Lingo (https://coderslingo.com/resources/open-dataset/), CC BY 4.0",
                "isAccessibleForFree": true,
                "inLanguage": "en",
                "keywords": "Terraform",
                "version": "2026-11-25",
                "dateModified": "2026-11-25T17:46:31+00:00",
                "isPartOf": {
                    "@type": "Dataset",
                    "@id": "https://delaparra-services.nl/knowledge-hub#dataset",
                    "name": "IT terms from A to Z",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "includedInDataCatalog": {
                    "@type": "DataCatalog",
                    "@id": "https://delaparra-services.nl/knowledge-hub#catalog",
                    "name": "Knowledge hub data catalog",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "distribution": [
                    {
                        "@type": "DataDownload",
                        "name": "workspace.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/workspace.csv",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:31+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "workspace.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/workspace.json",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:31+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "workspace.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/workspace.md",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:31+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "workspace.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/workspace.pdf",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:31+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "workspace.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/workspace.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:31+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "workspace-skills.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/workspace/skills.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:31+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    }
                ]
            }
        ]
    }
}