terraform0.12+

Terraform: How to install multiple versions of provider plugins? [duplicate]

给你一囗甜甜゛ 提交于 2020-07-08 03:34:21
问题 This question already has an answer here : Multiple provider versions with Terraform (1 answer) Closed last month . 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. I tried below configuration but it fails at initialize phase.

Issues after upgrade to terraform 0.12

北战南征 提交于 2020-05-17 06:35:07
问题 It's sad that terraform is not backward compatible. data "aws_security_group" "security_groupdev" { filter { name = "group-name" values = ["SecurityGroupdev"] } } resource "aws_instance" "ec2_instance" { count = "${var.ec2_instance_count}" ... } resource "aws_network_interface_sg_attachment" "sg_attachment" { security_group_id = "${data.aws_security_group.security_groupdev.id}" network_interface_id = "${aws_instance.ec2_instance.primary_network_interface_id}" } but after upgrading it to

Issues after upgrade to terraform 0.12

别说谁变了你拦得住时间么 提交于 2020-05-17 06:35:03
问题 It's sad that terraform is not backward compatible. data "aws_security_group" "security_groupdev" { filter { name = "group-name" values = ["SecurityGroupdev"] } } resource "aws_instance" "ec2_instance" { count = "${var.ec2_instance_count}" ... } resource "aws_network_interface_sg_attachment" "sg_attachment" { security_group_id = "${data.aws_security_group.security_groupdev.id}" network_interface_id = "${aws_instance.ec2_instance.primary_network_interface_id}" } but after upgrading it to

terraform destroy produces cycle error when no cycles present

你。 提交于 2020-01-02 12:26:54
问题 Terraform Version Terraform v0.12.1 Terraform Configuration Files main.tf in my root provider: provider "google" {} module "organisation_info" { source = "../../modules/organisation-info" top_level_domain = "smoothteam.fi" region = "us-central1" } module "stack_info" { source = "../../modules/stack-info" organisation_info = "${module.organisation_info}" } Here's module 'organisation-info': variable "top_level_domain" {} variable "region" {} data "google_organization" "organization" { domain =

terraform destroy produces cycle error when no cycles present

冷暖自知 提交于 2019-12-06 15:42:15
Terraform Version Terraform v0.12.1 Terraform Configuration Files main.tf in my root provider: provider "google" {} module "organisation_info" { source = "../../modules/organisation-info" top_level_domain = "smoothteam.fi" region = "us-central1" } module "stack_info" { source = "../../modules/stack-info" organisation_info = "${module.organisation_info}" } Here's module 'organisation-info': variable "top_level_domain" {} variable "region" {} data "google_organization" "organization" { domain = "${var.top_level_domain}" } locals { organization_id = "${data.google_organization.organization.id}"