how to conditionally exclude flag to AWS CLI command in Terraform null_resource
I am using a null_resource in Terraform to execute an AWS CLI command for terraform version 1.5.1.
how to conditionally exclude flag to AWS CLI command in Terraform null_resource
I am using a null_resource in Terraform to execute an AWS CLI command for terraform version 1.5.1.
how to conditionally exclude flag to AWS CLI command in Terraform null_resource
I am using a null_resource in Terraform to execute an AWS CLI command for terraform version 1.5.1.
Assigning a Security Group to all EC2 Instance Primary Interface Fails
The requirements for this are to find all VPCs, create a Security Group in each one, find all running & stopped EC2 instances then attach this new security group to the primary interface to each instance. The TF file:
How to pass output variable from child to grand parent
I spend 10 hours to try to understand why the output value of a ressource is empty without success.
Terraform Error : Can’t access attributes on a primitive-typed value (number)
I am getting Error in terraform execution with “Can’t access attributes on a primitive-typed value (number).”
Terraform: How to write x3 Nested for loop (DRY)
Hello and sorry for the naive question – I’ve been banging my head trying to get this one right and not repeating myself.
Cloudwatch log metric filter Dimension not working as expected. aws_cloudwatch_log_metric_filter
[![locals { metric_filter_name = “ResolverErrorMetricFilter” metric_name = “ResolverErrorMetric” metric_namespace = “CustomAppsyncMetric” metric_filter_pattern = “{($.graphQLAPIId = “${aws_appsync_graphql_api.my_api.id}”) && ($.logType = “ResponseFunctionEvaluation”) && ($.fieldInError IS TRUE)}” } resource “aws_cloudwatch_log_metric_filter” “appsync_custom_metric” { name = local.metric_name pattern = local.metric_filter_pattern log_group_name = aws_cloudwatch_log_group.logs-Appsync.name metric_transformation { name = local.metric_name namespace = local.metric_namespace value = 1 unit = “Count” dimensions = { […]
Terraform Conditional Resource Block
I have a workflow that creates 2 AWS CloudFront distributions as required resources. I want to add an option where you can optionally create a 3rd distribution if it’s needed.