Data Your Query Returned No Results Please Change Your Search Criteria and Try Again

Okay. rm -rf .terraform then terraform init

This might offer to set up the backend.

Boston Voice

@bostonvoice_twitter

I've done that soo many times believee me--just did it again now and still the same

@ajaykumar1320 run terraform console and then put var.vpc_cidr into the console. What does it spit out?

@bostonvoice_twitter ohh wow I'm dumb. I missed that your backend config is in a subdirectory.

It has to be in the project root

Boston Voice

@bostonvoice_twitter

ooooooh!!!!

how to I make it so that it's different backend for each environment? oh wait... that doesn't make sense

let me try it in root now

@RulerOf terraform console
> var.vpc_cidr
192.168.0.0/16
>
i did , i got this info

@ajaykumar1320 what does your resource "aws_vpc" "default" block look like?

@RulerOf resource "aws_vpc" "default"{
cidr_block = "var.vpc_cidr"
enable_dns_hostnames = true
tags = {
Name = "{var.vpc_name}"
}

this is code i write on my .tf file

Boston Voice

@bostonvoice_twitter

I'm wondering, in a multi account set up, how can I have the state be in different account for different env?

@RulerOf : Successfully configured the backend "s3"! Terraform will automatically yay! first step-will see about the next step

thank you! that was obvious and silly.

Great @bostonvoice_twitter :)

Are you using terraform 0.12 or later @ajaykumar1320 (instead of 0.11)?

terraform version
Terraform v0.12.24

terraform plan --var-file test.tfvars

Error: Missing key/value separator

on main.tf line 9, in resource "aws_vpc" "default":
9: cidr_block = {"var.vpc_cidr"}

Expected an equals sign ("=") to mark the beginning of the attribute value.

Your cidr_block is wrapped in quotes. So instead of interpolating back into "192.168..." you get the literal var.vpc_cidr

Use cidr_block = var.vpc_cidr

@RulerOf terraform plan --var-file test.tfvars
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.

data.aws_ami.my_ami: Refreshing state...

Error: Your query returned no results. Please change your search criteria and try again.

on main.tf line 93, in data "aws_ami" "my_ami":
93: data "aws_ami" "my_ami" {

now i got this error

Hi there, what's the best way to try to get a PR looked at in the terraform-provider-aws repo? I totally appreciate that some PRs are more important than others, and there are lots to get through, but 4 months after raising a fairly small PR, it's quite frustrating and off-putting to a first-time contributor (me) to still be waiting and chasing in vain

Share it here. I'll review it if I can.

@gregmark yup read through all that, but what i am trying to accomplish i am asking what is that called so i can look it up specifically

Khaja Minhajuddin

@minhajuddin

Khaja Minhajuddin

@minhajuddin

but you don't specify it in the block, rather in the resource, either that or the example is wrong

I am trying to deploy Azure resources through Terraform 0.12 with azurerm provider. I have AKS module which works fine with azurerm version 2.5.0, but breaks with 2.9.0. On the other hand Postgresql module works with version 2.9.0 but breaks with 2.5.0 I want to deploy both resources through a single terraform apply.

How to install both provider versions and point AKS module to v2.5.0 and point Postgres module to v2.9.0

IIRC, terraform installs only a single provider version. Are there open issues in provider repo for the issues you're facing?

Can we create a custom event bridge in terraform?

ʎʞsʍoʃɐɥɔıW uɐſ

@the_jami_twitter

Is there a solution for the problem that a db provider use a bastion vpn tunnel to provision its db users?

Tom Callahan

@fatalglitch

Is there a way to use count conditional to check if a variable exists, and if it does not, substitute another value?

2 replies

arn = data.aws_msk_configuration.kafka[0].arn ? data.aws_msk_configuration.kafka[0].arn : aws_msk_configuration.kafka[0].arn

has anyone used Terraform with an IPAM service to get/query/manage IP ranges ?

I see some providers out there but I"m curious if anyones actually used one and what their experience was like

Chris Johnson

@chrisjohnson

I'm also very curious about this ^

It's been feeling like we're going to have to write a custom provider

I'm hoping someone chips in with an "I've used this provider with this tool with this usecase and it works like a charm"

Chris Johnson

@chrisjohnson

hehe

welchalaing.blogspot.com

Source: https://gitter.im/hashicorp-terraform/Lobby?at=5eb590bc347bd61630638059

0 Response to "Data Your Query Returned No Results Please Change Your Search Criteria and Try Again"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel