terraform

Not able to add multiple target_id inside targer group using terraform

不问归期 提交于 2020-12-06 02:19:31
问题 I'm trying to create target groups and attach multiple machines to the target groups using terraform script. I'm not able to attach multiple target_id please help me to achieve this. 回答1: As of Terraform 0.12 , this could simply be resource "aws_alb_target_group_attachment" "test" { count = length(aws_instance.test) target_group_arn = aws_alb_target_group.test.arn target_id = aws_instance.test[count.index].id } assuming aws_instance.test returns a list . https://blog.gruntwork.io/terraform

Not able to add multiple target_id inside targer group using terraform

 ̄綄美尐妖づ 提交于 2020-12-06 02:19:01
问题 I'm trying to create target groups and attach multiple machines to the target groups using terraform script. I'm not able to attach multiple target_id please help me to achieve this. 回答1: As of Terraform 0.12 , this could simply be resource "aws_alb_target_group_attachment" "test" { count = length(aws_instance.test) target_group_arn = aws_alb_target_group.test.arn target_id = aws_instance.test[count.index].id } assuming aws_instance.test returns a list . https://blog.gruntwork.io/terraform

Connecting to Google Cloud SQL instance on private IP from a VM with both private and public IPs fails

ぐ巨炮叔叔 提交于 2020-12-04 05:19:00
问题 What I'm trying to set up: Cloud SQL instance with private IP, Postgresql database A VM with one public IP and one private IP on same VPC network as the SQL instance is on (VM, SQL instance and VPC are all in the same region) VM has a service account with sufficient Cloud SQL client/viewer permissions SQL proxy on VM connecting to SQL instance. I run it with the -ip_address_types=PRIVATE argument I've found in some of the documentation. Configuration code Slightly simplified Terraform code

Connecting to Google Cloud SQL instance on private IP from a VM with both private and public IPs fails

前提是你 提交于 2020-12-04 05:17:39
问题 What I'm trying to set up: Cloud SQL instance with private IP, Postgresql database A VM with one public IP and one private IP on same VPC network as the SQL instance is on (VM, SQL instance and VPC are all in the same region) VM has a service account with sufficient Cloud SQL client/viewer permissions SQL proxy on VM connecting to SQL instance. I run it with the -ip_address_types=PRIVATE argument I've found in some of the documentation. Configuration code Slightly simplified Terraform code

Connecting to Google Cloud SQL instance on private IP from a VM with both private and public IPs fails

荒凉一梦 提交于 2020-12-04 05:17:33
问题 What I'm trying to set up: Cloud SQL instance with private IP, Postgresql database A VM with one public IP and one private IP on same VPC network as the SQL instance is on (VM, SQL instance and VPC are all in the same region) VM has a service account with sufficient Cloud SQL client/viewer permissions SQL proxy on VM connecting to SQL instance. I run it with the -ip_address_types=PRIVATE argument I've found in some of the documentation. Configuration code Slightly simplified Terraform code

Terraform modules using a git branch as a source

我与影子孤独终老i 提交于 2020-11-29 04:22:28
问题 Using Terraform modules with a git branch as a source, I am referring to: git::ssh://private_server:myport/kbf/my_repository.git//ecs-cluster?ref=v0.0.1 In my module source parameter, this works great and provides me with my module at tag v0.0.1 on master. However I'd like to specify a branch, not a tag, but am not sure how to do this. 回答1: As mentioned in the Terraform documentation here: git::ssh://private_server:myport/kbf/my_repository.git//ecs-cluster?ref=myBranch 回答2: Exactly the same

DevOps如何解决技术债务挑战?

我是研究僧i 提交于 2020-11-25 07:23:05
许多组织在迁移到云期间发现了大量的技术债务。但是什么是技术债务呢?DevOps如何帮助我们去解决技术债务呢?在这篇文章中,我们将讨论使用DevOps将您的技术债务负担减少的方式! 什么是技术债务? 技术债务是指在整个应用程序生命周期内做出的 次优技术决策 的累积。最终,改变事物变得越来越困难,使IT计划陷入停顿。 例如,应用程序中不良的状态管理可能会使水平缩放策略难以实施。在执行您真正想做的事情(横向扩展应用程序,以便应对日益增长的流量)之前,您需要重新编写代码的状态管理部分。 “先做需要做的事,然后再做想做的事”的工作就是技术债务 。 值得指出的是,技术债务不仅会发生在开发中,还可能发生在运营中。例如:仍在运行不再受支持的过时的操作系统(Windows Server 2008或Ubuntu 11.04)。不保持服务器的修补程序更新和最新状态,会使您容易受到网络攻击和勒索软件的攻击。这些都是技术债务。 为什么会存在技术债务? 马丁·福勒(Martin Fowler)的技术债务象限指出,有时技术债务是无意的。您不知道的内容,但是现在您知道了,因此可以对其进行修复。 谨慎,刻意的技术债务是精益创业公司 Eric Ries的“构建-度量-学习”周期的核心。有时,了解您是否拥有可行产品的唯一方法是 发布产品并将其掌握在客户手中 。这可能意味着您“偷工减料”,从而招致技术债务。