Use the count attribute with a conditional statement and set the count equal to 0 if the statement is false, or 1 if it is true, this will cause Terraform to ignore the resource unless it is "on" or count = 1. Count can't be used with for_each, in which case if the for_each ...
log("Lambda function context:", context); if (event.httpMethod === "OPTIONS") { // this is (probably) a CORS preflight request callback(null, { statusCode: 200, headers: CORS_HEADERS, }); } else { // this is a regular request callback(null, { statusCode: 200, headers: { ....
In summary, the agreement says: You may make copies of your eBook for your own use onto any machine You may not pass copies of the eBook on to anyone else How can I make a purchase on your website? If you want to purchase a video course, eBook or Bundle (Print+eBook) please ...
简介 Terraform 的特点: Infrastructure as Code Execution Plans Resource Graph Change Automation ...
Want to learn on how you can structure a Terraform project to deploy the same code to 1:N environments. Clone the repo and follow these...
locals{endpoint_id=length(regexall("dev|qa",var.env))>0?"id1":"id2"}
already present in the latest release ofhttps://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Terraform.gitlab-ci.ymlthat@timofurrerfixed, so not sure why it still isn't working.@timofurrer@alberts-gitlab@vyaklushinis there anything else I need to do to utilize ...
{"id":"0.aws:runShellScript","runCommand": ["#!/bin/bash","nomad node drain -enable -self -y","isEligible=$(nomad node-status -self -json | jq '.SchedulingEligibility | contains (\"ineligible\")')","if ((${isEligible}== true )) ; then exit 0 ; else exit 129; fi"] ...
resource "aws_iam_policy" "leader-discovery" { name = "consul-node-leader-discovery" path = "/" policy = <<EOF { "Version": "2012-10-17", "Statement": [ { "Sid": "Stmt1468377974000", "Effect": "Allow", "Action": [ "autoscaling:DescribeAutoScalingInstances", "autoscaling:Describe...
To enable AAD integration we used the following configuration for the role_base_access_control section# block will be applied only if `enable` is true in var.azure_ad object\n role_based_access_control {\n azure_active_directory {\n managed = ...