{
    "componentChunkName": "component---src-templates-slide-js",
    "path": "/courses/devops/infrustructure-as-code/slides/5/",
    "result": {"data":{"slide":{"frontmatter":{"slug":"/courses/devops/infrustructure-as-code/slides/5/","title":"Immutable & mutable infrastructure"},"previous":{"frontmatter":{"slug":"/courses/devops/infrustructure-as-code/slides/4/"}},"next":{"frontmatter":{"slug":"/courses/devops/infrustructure-as-code/slides/6/"}},"module":{"frontmatter":{"slug":"/courses/devops/infrustructure-as-code/"}},"course":{"frontmatter":{"slug":"/courses/devops/"}},"parent":{"body":"var _excluded = [\"components\"];\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n/* @jsxRuntime classic */\n\n/* @jsx mdx */\nvar _frontmatter = {\n  \"duration\": \"3 hours\",\n  \"slideNumber\": 5,\n  \"lastSlide\": 17,\n  \"slug\": \"/courses/devops/infrustructure-as-code/slides/5/\"\n};\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n      props = _objectWithoutProperties(_ref, _excluded);\n\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"p\", null, mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Example:\")), mdx(\"p\", null, \"You add a database to your infrastructure: VM, VPC + database. Scale it 1000 times.\"), mdx(\"p\", null, mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Mutable approach\"), \" - environment (configuration) drift (move the infrastructure from V1 to V2 with a mutation \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"custom script\"), \"):\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"99% it is working, but 1% failing in a limbo state.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"Existing environment no longer matches what we have in our automation.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"To debug you would have to:\", mdx(\"ul\", {\n    parentName: \"li\"\n  }, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"wipe out the entire environment\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"redeploy V1\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"run those scripts\"))), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"When moving to scale it becomes incredibly hard to maintain.\")), mdx(\"p\", null, mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Immutable approach\"), \" - a new environment alongside the old one:\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"When they are both working you bring down the older version.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"It is expensive (V1 and V2 are running at the same time).\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"But it's a best practice to ensure that your infrastructure can scale.\")));\n}\n;\nMDXContent.isMDXComponent = true;"}}},"pageContext":{}},
    "staticQueryHashes": []}