{"id":39591,"date":"2026-11-27T22:05:37","date_gmt":"2026-11-27T22:05:37","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=39591"},"modified":"2026-11-27T22:05:37","modified_gmt":"2026-11-27T22:05:37","slug":"terraform-error-handing-with-try-catch","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/terraform-error-handing-with-try-catch\/","title":{"rendered":"Terraform Error Handing with Try Catch"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Terraform has no <code>try { } catch { }<\/code> block. Error handling in HCL uses the <code>try()<\/code> function, which returns the first of its arguments that evaluates without an error, and the <code>can()<\/code> function, which returns true or false. This page explains why the example above will not run, then gives a working version that decrypts Windows EC2 Administrator passwords and falls back to a message when decryption fails.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The code could be improved by adding some error handling. For example, you could check to make sure that the PEM file exists and that the password data is valid. You could also add a retry mechanism in case the AWS API call fails.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This code uses the <code>try<\/code> and <code>catch<\/code> blocks to handle errors. If the <code>rsadecrypt<\/code> function fails, the <code>catch<\/code> block will be executed and the output will be set to the specified error message.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">resource <span class=\"hljs-string\">\"aws_instance\"<\/span> <span class=\"hljs-string\">\"example\"<\/span> {\r\n  ami = <span class=\"hljs-string\">\"ami-065b889ab5c33720e\"<\/span>\r\n  count         = <span class=\"hljs-string\">\"18\"<\/span>\r\n  instance_type = <span class=\"hljs-string\">\"t2.medium\"<\/span>\r\n  key_name = <span class=\"hljs-string\">\"aws-hl-training\"<\/span>\r\n  vpc_security_group_ids =&#91;<span class=\"hljs-string\">\"sg-0541801a7a059ba17\"<\/span>]\r\n  get_password_data = <span class=\"hljs-string\">\"true\"<\/span>\r\n}\r\n\r\noutput <span class=\"hljs-string\">\"public_ip\"<\/span> {\r\n    value = <span class=\"hljs-string\">\"${aws_instance.example.*.public_ip}\"<\/span>\r\n}\r\n\r\noutput <span class=\"hljs-string\">\"public_dns\"<\/span> {\r\n    value = <span class=\"hljs-string\">\"${aws_instance.example.*.public_dns}\"<\/span>\r\n}\r\n\r\noutput <span class=\"hljs-string\">\"Administrator_Password1\"<\/span> {\r\n  value = <span class=\"hljs-keyword\">try<\/span> {\r\n    &#91;\r\n      <span class=\"hljs-keyword\">for<\/span> g <span class=\"hljs-keyword\">in<\/span> aws_instance.example : rsadecrypt(g.password_data,file(<span class=\"hljs-string\">\"aws-hl-training.pem\"<\/span>))\r\n    ]\r\n  } <span class=\"hljs-keyword\">catch<\/span> {\r\n    <span class=\"hljs-comment\">\/\/ Handle the error<\/span>\r\n    <span class=\"hljs-string\">\"Unable to decrypt password data\"<\/span>\r\n  }\r\n}<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Why the example above fails<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">HCL is a declarative configuration language, not a general-purpose programming language, and it has no exception-handling statements. <code>try<\/code> is a built-in <strong>function<\/strong>, so it takes arguments in parentheses. Writing <code>try { ... } catch { ... }<\/code> gives a parse error the moment you run <code>terraform validate<\/code> or <code>terraform plan<\/code>, before anything reaches AWS.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The function form looks like this:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\"><span class=\"hljs-keyword\">try<\/span>(expression_1, expression_2, ..., fallback_value)<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">Terraform evaluates the arguments from left to right and returns the first one that does not produce an error. If every argument fails, <code>try()<\/code> itself returns an error. The last argument is usually a plain value such as a string, <code>null<\/code> or an empty list, so it cannot fail.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Corrected configuration<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The version below keeps the intent of the original: launch Windows instances, read each encrypted password, and decrypt it with the key pair&#039;s private key. It also checks that the PEM file exists, as the text above suggests.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">variable <span class=\"hljs-string\">\"key_name\"<\/span> {\n  type    = string\n  <span class=\"hljs-keyword\">default<\/span> = <span class=\"hljs-string\">\"aws-hl-training\"<\/span>\n}\n\nvariable <span class=\"hljs-string\">\"private_key_path\"<\/span> {\n  type    = string\n  <span class=\"hljs-keyword\">default<\/span> = <span class=\"hljs-string\">\"aws-hl-training.pem\"<\/span>\n\n  validation {\n    condition     = fileexists(<span class=\"hljs-keyword\">var<\/span>.private_key_path)\n    error_message = <span class=\"hljs-string\">\"The private key file was not found at private_key_path.\"<\/span>\n  }\n}\n\nresource <span class=\"hljs-string\">\"aws_instance\"<\/span> <span class=\"hljs-string\">\"example\"<\/span> {\n  count                  = <span class=\"hljs-number\">18<\/span>\n  ami                    = <span class=\"hljs-string\">\"ami-065b889ab5c33720e\"<\/span>\n  instance_type          = <span class=\"hljs-string\">\"t2.medium\"<\/span>\n  key_name               = <span class=\"hljs-keyword\">var<\/span>.key_name\n  vpc_security_group_ids = &#91;<span class=\"hljs-string\">\"sg-0541801a7a059ba17\"<\/span>]\n  get_password_data      = <span class=\"hljs-keyword\">true<\/span>\n}\n\nlocals {\n  <span class=\"hljs-comment\"># null if the file cannot be read, instead of a hard failure<\/span>\n  private_key = <span class=\"hljs-keyword\">try<\/span>(file(<span class=\"hljs-keyword\">var<\/span>.private_key_path), <span class=\"hljs-keyword\">null<\/span>)\n}\n\noutput <span class=\"hljs-string\">\"public_ip\"<\/span> {\n  value = aws_instance.example&#91;*].public_ip\n}\n\noutput <span class=\"hljs-string\">\"public_dns\"<\/span> {\n  value = aws_instance.example&#91;*].public_dns\n}\n\noutput <span class=\"hljs-string\">\"administrator_passwords\"<\/span> {\n  value = &#91;\n    <span class=\"hljs-keyword\">for<\/span> inst in aws_instance.example :\n    <span class=\"hljs-keyword\">try<\/span>(rsadecrypt(inst.password_data, local.private_key), <span class=\"hljs-string\">\"Unable to decrypt password data\"<\/span>)\n  ]\n  sensitive = <span class=\"hljs-keyword\">true<\/span>\n}<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">Important lines:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>validation<\/code> with <code>fileexists()<\/code> stops the run with a clear message if the key file is missing. That is better than letting decryption fail silently.<\/li>\n\n\n<li><code>try()<\/code> is placed <strong>inside<\/strong> the <code>for<\/code> expression, so each instance is handled separately. If one password is not ready, only that entry shows the fallback message and the other 17 still decrypt. Wrapping the whole list, as the original tries to do, would replace every password with one string.<\/li>\n\n\n<li><code>sensitive = true<\/code> is required. The AWS provider marks <code>password_data<\/code> as sensitive, and an output built from it is rejected unless the output is marked sensitive too.<\/li>\n\n\n<li><code>count = 18<\/code> and <code>get_password_data = true<\/code> use a number and a boolean instead of the quoted strings in the original.<\/li>\n\n\n<li><code>aws_instance.example[*].public_ip<\/code> replaces the legacy <code>&quot;${aws_instance.example.*.public_ip}&quot;<\/code> interpolation-only syntax.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> The AMI ID and security group ID are region-specific and come from the original author&#039;s account. Replace them with a Windows AMI and a security group from your own account and region.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Running it and reading the passwords<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Put the private key for the <code>aws-hl-training<\/code> key pair next to the configuration. <code>rsadecrypt<\/code> needs a PEM-encoded RSA private key that is not protected with a passphrase.<\/li>\n\n\n<li>Run <code>terraform init<\/code> to download the AWS provider.<\/li>\n\n\n<li>Run <code>terraform validate<\/code> to catch syntax errors such as the <code>try { }<\/code> block.<\/li>\n\n\n<li>Run <code>terraform apply<\/code>. With <code>get_password_data = true<\/code>, the provider waits for Windows to generate the password before it marks the instance as created, so the apply takes longer than it does for a Linux instance.<\/li>\n\n\n<li>Read the decrypted passwords with <code>terraform output -json administrator_passwords<\/code>.<\/li>\n<\/ol>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">$ terraform output\nadministrator_passwords = &lt;sensitive&gt;\npublic_dns = &#91; ... ]\npublic_ip = &#91; ... ]\n\n$ terraform output -json administrator_passwords\n&#91;<span class=\"hljs-string\">\"p@ssExample1\"<\/span>,<span class=\"hljs-string\">\"Unable to decrypt password data\"<\/span>, ...]<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> Marking an output sensitive only hides it in the CLI. The encrypted password data and anything derived from it are still saved in plain text in the state file. Use an encrypted remote backend with restricted access, and do not commit <code>terraform.tfstate<\/code> or the <code>.pem<\/code> file to Git.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">try, can and the other error-handling tools<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><code>try()<\/code> is only one option. Choose the tool based on whether you want to fall back quietly or stop with a clear error.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Tool<\/th><th>What it does<\/th><th>Typical use<\/th><\/tr><\/thead><tbody><tr><td><code>try(a, b, ...)<\/code><\/td><td>Returns the first argument that evaluates without error<\/td><td>Default values for optional attributes, missing map keys, failed decoding<\/td><\/tr><tr><td><code>can(expr)<\/code><\/td><td>Returns <code>true<\/code> if the expression evaluates without error, <code>false<\/code> otherwise<\/td><td>Conditions in <code>validation<\/code> blocks and conditional expressions<\/td><\/tr><tr><td><code>variable<\/code> <code>validation<\/code><\/td><td>Rejects bad input with a custom message<\/td><td>Checking file paths, CIDR formats, allowed values<\/td><\/tr><tr><td><code>precondition<\/code> \/ <code>postcondition<\/code> in <code>lifecycle<\/code><\/td><td>Checks assumptions before or after a resource is planned or created<\/td><td>Making sure an AMI is Windows, or that an instance received a public IP<\/td><\/tr><tr><td><code>check<\/code> block<\/td><td>Reports a failed assertion as a warning without stopping the run<\/td><td>Health checks after deployment<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-5\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">variable <span class=\"hljs-string\">\"vpc_cidr\"<\/span> {\n  type = string\n  validation {\n    condition     = can(cidrhost(<span class=\"hljs-keyword\">var<\/span>.vpc_cidr, <span class=\"hljs-number\">0<\/span>))\n    error_message = <span class=\"hljs-string\">\"vpc_cidr must be a valid CIDR block, for example 10.0.0.0\/16.\"<\/span>\n  }\n}\n\nlocals {\n  <span class=\"hljs-comment\"># Optional key in a map: fall back to a default if it is missing<\/span>\n  env = <span class=\"hljs-keyword\">try<\/span>(<span class=\"hljs-keyword\">var<\/span>.tags&#91;<span class=\"hljs-string\">\"Environment\"<\/span>], <span class=\"hljs-string\">\"dev\"<\/span>)\n\n  <span class=\"hljs-comment\"># Parse JSON that might be malformed<\/span>\n  settings = <span class=\"hljs-keyword\">try<\/span>(jsondecode(file(<span class=\"hljs-string\">\"settings.json\"<\/span>)), {})\n}<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-5\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">For more on conditional logic, see <a href=\"https:\/\/www.devopsschool.com\/blog\/terraform-conditioning-example-program\/\">Terraform Conditional Expressions and Logic<\/a>. For the <code>for<\/code> expressions and <code>count<\/code> used above, see <a href=\"https:\/\/www.devopsschool.com\/blog\/how-to-do-looping-iterations-in-terraform\/\">Terraform Loops and Iteration<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What try() cannot catch<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Syntax and static errors.<\/strong> A malformed reference such as a misspelled resource name fails during validation no matter where it sits, because Terraform can prove it is invalid for every input.<\/li>\n\n\n<li><strong>API failures.<\/strong> Errors such as <code>UnauthorizedOperation<\/code>, <code>InsufficientInstanceCapacity<\/code> or a limit being exceeded happen while the provider creates the resource, not while an expression is evaluated. No HCL function can catch them.<\/li>\n\n\n<li><strong>Values not yet known at plan time.<\/strong> If an argument depends on an attribute known only after apply, <code>try()<\/code> waits until that value is known. It does not choose the fallback early.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> Use <code>try()<\/code> sparingly. Wrapping everything in fallbacks hides real misconfigurations. Use it where a missing or invalid value is expected and acceptable, and use validation or preconditions where it is not.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Adding retries for AWS API calls<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The text above suggests a retry mechanism. You do not build this in HCL. The AWS provider already retries throttled and transient API errors, and you can raise the limit with <code>max_retries<\/code> in the provider block:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-6\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">provider <span class=\"hljs-string\">\"aws\"<\/span> {\n  region      = <span class=\"hljs-string\">\"us-east-1\"<\/span>\n  max_retries = <span class=\"hljs-number\">10<\/span>\n}<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-6\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">For errors that are not transient, such as missing permissions or a quota that is exhausted, retrying does not help. Fix the cause, then run <code>terraform apply<\/code> again. Terraform creates only the resources that are still missing.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common errors and fixes<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Symptom<\/th><th>Cause<\/th><th>Fix<\/th><\/tr><\/thead><tbody><tr><td>Parse error pointing at <code>try {<\/code><\/td><td><code>try<\/code> was written as a block<\/td><td>Use <code>try(expr, fallback)<\/code><\/td><\/tr><tr><td><code>Output refers to sensitive values<\/code><\/td><td>Output built from <code>password_data<\/code> is not marked sensitive<\/td><td>Add <code>sensitive = true<\/code> to the output<\/td><\/tr><tr><td>Every password shows the fallback message<\/td><td>Wrong key file, a passphrase-protected key, or an instance launched with a different key pair<\/td><td>Check that <code>key_name<\/code> matches the <code>.pem<\/code> file and remove the passphrase from a copy of the key<\/td><\/tr><tr><td><code>password_data<\/code> is empty<\/td><td>The AMI is not Windows, or <code>get_password_data<\/code> is not enabled<\/td><td>Use a Windows AMI and set <code>get_password_data = true<\/code><\/td><\/tr><tr><td>Warnings about interpolation-only expressions<\/td><td>Legacy <code>&quot;${...}&quot;<\/code> syntax<\/td><td>Write the reference directly, for example <code>aws_instance.example[*].public_ip<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">To catch problems like these before they reach review, run <code>terraform fmt<\/code> and <code>terraform validate<\/code> automatically. See <a href=\"https:\/\/www.devopsschool.com\/blog\/how-to-configure-pre-commit-for-terraform-complete-devops-guide-with-15-practical-use-cases-commands-security-checks-and-best-practices\/\">How to Configure pre-commit for Terraform<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently asked questions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Does Terraform support try\/catch?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">No. HCL has no exception-handling blocks. Use the <code>try()<\/code> function, which returns the first argument that evaluates without error, or <code>can()<\/code>, which returns a boolean.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What is the difference between try() and can() in Terraform?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>try()<\/code> returns a value: the first expression that succeeds, or your fallback. <code>can()<\/code> returns <code>true<\/code> or <code>false<\/code> depending on whether the expression succeeds, which is useful in <code>validation<\/code> conditions and conditional expressions.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can try() catch AWS API errors during terraform apply?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">No. <code>try()<\/code> only handles errors that happen while an expression is evaluated. Errors from the cloud provider during resource creation are reported by the provider and cannot be caught in HCL.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How do I view a sensitive output in Terraform?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Run <code>terraform output -json &lt;name&gt;<\/code>, or <code>terraform output -raw &lt;name&gt;<\/code> for a single string value. The value is still stored in plain text in the state file, so protect the state.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why does rsadecrypt fail on my EC2 password data?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The usual causes are a private key that does not match the instance&#039;s key pair, a key protected with a passphrase, or empty password data because the AMI is not Windows or <code>get_password_data<\/code> is not enabled.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related tutorials<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/terraform-conditioning-example-program\/\">Terraform Conditional Expressions and Logic: Complete Guide with Examples<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/how-to-do-looping-iterations-in-terraform\/\">Terraform Loops and Iteration: Complete Guide to count, for_each, for Expressions, and Dynamic Blocks<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/how-to-configure-pre-commit-for-terraform-complete-devops-guide-with-15-practical-use-cases-commands-security-checks-and-best-practices\/\">How to Configure pre-commit for Terraform: Complete DevOps Guide with 15 Practical Use Cases, Commands, Security Checks, and Best Practices<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/category\/infrastructure-as-code\/terraform\/\">More Terraform tutorials<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/category\/cloud-computing\/aws\/\">More AWS tutorials<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Terraform has no try { } catch { } block. Error handling in HCL uses the try() function, which returns the first of its arguments that evaluates&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[5129,5633],"tags":[3354,26224],"class_list":["post-39591","post","type-post","status-publish","format-standard","hentry","category-terraform","category-aws","tag-amazon-ec2","tag-hcl"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/39591","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=39591"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/39591\/revisions"}],"predecessor-version":[{"id":80383,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/39591\/revisions\/80383"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=39591"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=39591"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=39591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}