-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create aurora instance error with audit logs enabled #5121
Comments
Hi @iwasnobody 👋 Thanks for submitting this and sorry for the trouble. Currently, we explicitly check the RDS instance status when performing create/update/delete operations to try and catch when they are complete. When RDS adds new functionality, sometimes they add a new status which the code is not expecting yet. We may switch up the logic at some point to only look for error conditions but for now we can add I have a branch with the code update ready, I'm just running acceptance testing on it now. 👍 |
Pull request submitted: #5124 |
The fix for this has been merged into master and will release with version 1.27.0 of the AWS provider, likely middle of this week. |
This has been released in version 1.27.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
Many thx |
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! |
should be related to "enabled_cloudwatch_logs_exports = ["audit"]"
Terraform Version
Terraform v0.11.7
Affected Resource(s)
aws_rds_cluster_instance
Terraform Configuration Files
resource "aws_rds_cluster" "web" {
provider = "aws.${var.project}"
cluster_identifier = "${var.project}-${var.env}-web-db"
availability_zones = "${var.aws_az}"
database_name = "web"
master_username = "XXXX"
master_password = "XXXXXXX"
backtrack_window = 259200
backup_retention_period = 5
port = 3306
vpc_security_group_ids = ["${aws_security_group.web_db.id}"]
storage_encrypted = true
db_subnet_group_name = "${aws_db_subnet_group.db_net.id}"
db_cluster_parameter_group_name = "${aws_rds_cluster_parameter_group.web.id}"
engine = "aurora"
enabled_cloudwatch_logs_exports = ["audit"]
skip_final_snapshot = true
tags {
Name = "${var.project}-${var.env}-web-cluster"
}
}
resource "aws_rds_cluster_instance" "web_instances_master" {
provider = "aws.${var.project}"
promotion_tier = 0
count = 1
identifier = "${var.project}-${var.env}-web-db"
cluster_identifier = "${aws_rds_cluster.web.id}"
instance_class = "db.r3.4xlarge"
db_subnet_group_name = "${aws_db_subnet_group.db_net.id}"
db_parameter_group_name = "${aws_db_parameter_group.web.id}"
auto_minor_version_upgrade = false
tags {
Name = "${var.project}-${var.env}-web-instance"
}
}
resource "aws_rds_cluster_instance" "web_instances_reader1" {
provider = "aws.${var.project}"
promotion_tier = 1
count = 1
identifier = "${var.project}-${var.env}-web-db-reader1"
cluster_identifier = "${aws_rds_cluster.web.id}"
instance_class = "db.r3.4xlarge"
db_subnet_group_name = "${aws_db_subnet_group.db_net.id}"
db_parameter_group_name = "${aws_db_parameter_group.web.id}"
auto_minor_version_upgrade = false
tags {
Name = "${var.project}-${var.env}-web-instance"
}
}
Actual Behavior
aws_rds_cluster_instance.web_instances_reader1: 1 error(s) occurred:
aws_rds_cluster_instance.web_instances_reader1: unexpected state 'configuring-log-exports', wanted target 'available'. last error: %!s()
aws_rds_cluster_instance.web_instances_master: 1 error(s) occurred:
aws_rds_cluster_instance.web_instances_master: unexpected state 'configuring-log-exports', wanted target 'available'. last error: %!s()
The text was updated successfully, but these errors were encountered: