作者:Jasper-ling玲 | 来源:互联网 | 2023-08-26 10:30
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!