热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

Providerdoesn'tsupportresource:aws_db_proxy

Tryingtocreateaws_db_proxy.Butgettingerror:

Trying to create aws_db_proxy. But getting error:

1
Error: aws_db_proxy.mydbproxy: Provider doesn't support resource: aws_db_proxy

Following is my TF source code:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
resource "aws_db_proxy" "mydbproxy" {

  name                   = "mydbproxy"

  debug_logging          = false

  engine_family          = "MYSQL"

  idle_client_timeout    = 1800

  require_tls            = true

  role_arn               = "${data.aws_iam_role.myrdsrole.arn}"

  vpc_security_group_ids = ["${data.aws_security_group.default.id}"]

  vpc_subnet_ids         = ["${data.aws_subnet.default.id}"]



  auth {

    auth_scheme = "SECRETS"

    description = "example"

    iam_auth    = "DISABLED"

    secret_arn  = ""

    username    = "example"

  }



  tags = {

    Name = "example"

    Key  = "value"

  }

}



resource "aws_db_proxy_default_target_group" "mydbproxytargetgroup" {

  connection_pool_config {

    connection_borrow_timeout    = 120

    init_query                   = "SET x=1, y=2"

    max_connections_percent      = 100

    max_idle_connections_percent = 50

    session_pinning_filters      = ["SELECT"]

  }



  db_proxy_name     = "${aws_db_proxy.mydbproxy.name}"

}

该提问来源于开源项目:hashicorp/terraform-provider-aws

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.



If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!


   



推荐阅读
author-avatar
Jasper-ling玲
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有