Skip to content

Instantly share code, notes, and snippets.

@zarnovican
Created October 22, 2019 08:35
Show Gist options
  • Save zarnovican/b0e6a80e108f5d6911409254e8c3643f to your computer and use it in GitHub Desktop.
Save zarnovican/b0e6a80e108f5d6911409254e8c3643f to your computer and use it in GitHub Desktop.
terraform auto-minor-version-upgrade
2019-10-22T10:29:51.359+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: 2019/10/22 10:29:51 [DEBUG] DB Instance Replica create configuration: {
ca_cert_identifier: "" => "<computed>"
2019-10-22T10:29:51.359+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: AutoMinorVersionUpgrade: true,
2019-10-22T10:29:51.359+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: CopyTagsToSnapshot: false,
character_set_name: "" => "<computed>"
2019-10-22T10:29:51.359+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: DBInstanceClass: "db.m5.xlarge",
2019-10-22T10:29:51.359+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: DBInstanceIdentifier: "slido-eu-crm2",
2019-10-22T10:29:51.359+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: DeletionProtection: false,
2019-10-22T10:29:51.359+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: EnableCloudwatchLogsExports: ["audit","error","slowquery"],
2019-10-22T10:29:51.359+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: EnableIAMDatabaseAuthentication: true,
2019-10-22T10:29:51.359+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: EnablePerformanceInsights: true,
2019-10-22T10:29:51.359+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: Iops: 3000,
2019-10-22T10:29:51.359+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: MonitoringInterval: 10,
2019-10-22T10:29:51.359+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: MonitoringRoleArn: "arn:aws:iam::073212908580:role/rds-monitoring-role",
2019-10-22T10:29:51.359+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: PubliclyAccessible: false,
copy_tags_to_snapshot: "" => "false"
2019-10-22T10:29:51.359+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: SourceDBInstanceIdentifier: "slido-eu",
2019-10-22T10:29:51.360+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: StorageType: "io1",
2019-10-22T10:29:51.360+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: Tags: [
2019-10-22T10:29:51.360+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: {
2019-10-22T10:29:51.360+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: Key: "terraform",
2019-10-22T10:29:51.360+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: Value: "true"
2019-10-22T10:29:51.360+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: },
2019-10-22T10:29:51.360+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: {
2019-10-22T10:29:51.360+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: Key: "environment",
2019-10-22T10:29:51.360+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: Value: "production"
2019-10-22T10:29:51.360+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: },
db_subnet_group_name: "" => "<computed>"
2019-10-22T10:29:51.360+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: {
2019-10-22T10:29:51.360+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: Key: "db-role",
2019-10-22T10:29:51.360+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: Value: "replica"
2019-10-22T10:29:51.360+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: },
2019-10-22T10:29:51.360+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: {
2019-10-22T10:29:51.360+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: Key: "it-cost-center",
2019-10-22T10:29:51.360+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: Value: "crm"
2019-10-22T10:29:51.360+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: }
2019-10-22T10:29:51.360+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: ]
2019-10-22T10:29:51.360+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: }
enabled_cloudwatch_logs_exports.#: "" => "3"
2019-10-22T10:29:51.360+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: 2019/10/22 10:29:51 [DEBUG] [aws-sdk-go] DEBUG: Request rds/CreateDBInstanceReadReplica Details:
enabled_cloudwatch_logs_exports.0: "" => "audit"
2019-10-22T10:29:51.360+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: ---[ REQUEST POST-SIGN ]-----------------------------
2019-10-22T10:29:51.360+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: POST / HTTP/1.1
2019-10-22T10:29:51.360+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: Host: rds.eu-west-1.amazonaws.com
2019-10-22T10:29:51.360+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: User-Agent: aws-sdk-go/1.25.10 (go1.13; linux; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.11+compatible (+https://www.terraform.io)
2019-10-22T10:29:51.360+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: Content-Length: 788
2019-10-22T10:29:51.360+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: Authorization: xxx
2019-10-22T10:29:51.360+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: Content-Type: application/x-www-form-urlencoded; charset=utf-8
2019-10-22T10:29:51.360+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: X-Amz-Date: 20191022T082951Z
2019-10-22T10:29:51.360+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: X-Amz-Security-Token: xxx
2019-10-22T10:29:51.360+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: Accept-Encoding: gzip
2019-10-22T10:29:51.360+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4:
2019-10-22T10:29:51.360+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: Action=CreateDBInstanceReadReplica&AutoMinorVersionUpgrade=true&CopyTagsToSnapshot=false&DBInstanceClass=db.m5.xlarge&DBInstanceIdentifier=slido-eu-crm2&DeletionProtection=false&EnableCloudwatchLogsExports.member.1=audit&EnableCloudwatchLogsExports.member.2=error&EnableCloudwatchLogsExports.member.3=slowquery&EnableIAMDatabaseAuthentication=true&EnablePerformanceInsights=true&Iops=3000&MonitoringInterval=10&MonitoringRoleArn=arn%3Aaws%3Aiam%3A%3A073212908580%3Arole%2Frds-monitoring-role&PubliclyAccessible=false&SourceDBInstanceIdentifier=slido-eu&StorageType=io1&Tags.Tag.1.Key=terraform&Tags.Tag.1.Value=true&Tags.Tag.2.Key=environment&Tags.Tag.2.Value=production&Tags.Tag.3.Key=db-role&Tags.Tag.3.Value=replica&Tags.Tag.4.Key=it-cost-center&Tags.Tag.4.Value=crm&Version=2014-10-31
2019-10-22T10:29:51.360+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: -----------------------------------------------------
enabled_cloudwatch_logs_exports.1: "" => "error"
enabled_cloudwatch_logs_exports.2: "" => "slowquery"
endpoint: "" => "<computed>"
engine: "" => "<computed>"
engine_version: "" => "<computed>"
hosted_zone_id: "" => "<computed>"
iam_database_authentication_enabled: "" => "true"
identifier: "" => "slido-eu-crm2"
identifier_prefix: "" => "<computed>"
instance_class: "" => "db.m5.xlarge"
iops: "" => "3000"
kms_key_id: "" => "<computed>"
license_model: "" => "<computed>"
maintenance_window: "" => "<computed>"
monitoring_interval: "" => "10"
monitoring_role_arn: "" => "arn:aws:iam::073212908580:role/rds-monitoring-role"
multi_az: "" => "false"
name: "" => "<computed>"
option_group_name: "" => "<computed>"
parameter_group_name: "" => "mysql5-7-production-crm"
performance_insights_enabled: "" => "true"
performance_insights_kms_key_id: "" => "<computed>"
performance_insights_retention_period: "" => "<computed>"
port: "" => "<computed>"
publicly_accessible: "" => "false"
replicas.#: "" => "<computed>"
replicate_source_db: "" => "slido-eu"
resource_id: "" => "<computed>"
skip_final_snapshot: "" => "true"
status: "" => "<computed>"
storage_encrypted: "" => "true"
storage_type: "" => "io1"
tags.%: "" => "4"
tags.db-role: "" => "replica"
tags.environment: "" => "production"
tags.it-cost-center: "" => "crm"
tags.terraform: "" => "true"
timezone: "" => "<computed>"
username: "" => "<computed>"
vpc_security_group_ids.#: "" => "1"
vpc_security_group_ids.150344762: "" => "sg-0a65914b3baa6e460"
2019-10-22T10:29:51.730+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: 2019/10/22 10:29:51 [DEBUG] [aws-sdk-go] DEBUG: Response rds/CreateDBInstanceReadReplica Details:
2019-10-22T10:29:51.730+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: ---[ RESPONSE ]--------------------------------------
2019-10-22T10:29:51.730+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: HTTP/1.1 400 Bad Request
2019-10-22T10:29:51.730+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: Connection: close
2019-10-22T10:29:51.730+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: Content-Length: 322
2019-10-22T10:29:51.730+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: Content-Type: text/xml
2019-10-22T10:29:51.730+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: Date: Tue, 22 Oct 2019 08:29:51 GMT
2019-10-22T10:29:51.730+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: X-Amzn-Requestid: 9cc8d585-c135-48df-8151-0048ab646fa4
2019-10-22T10:29:51.730+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4:
2019-10-22T10:29:51.730+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4:
2019-10-22T10:29:51.730+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: -----------------------------------------------------
2019-10-22T10:29:51.730+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: 2019/10/22 10:29:51 [DEBUG] [aws-sdk-go] <ErrorResponse xmlns="http://rds.amazonaws.com/doc/2014-10-31/">
2019-10-22T10:29:51.731+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: <Error>
2019-10-22T10:29:51.731+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: <Type>Sender</Type>
2019-10-22T10:29:51.731+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: <Code>InvalidParameterValue</Code>
2019-10-22T10:29:51.731+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: <Message>The auto-minor-version-upgrade value is not valid for the Read Replica</Message>
2019-10-22T10:29:51.731+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: </Error>
2019-10-22T10:29:51.731+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: <RequestId>9cc8d585-c135-48df-8151-0048ab646fa4</RequestId>
2019-10-22T10:29:51.731+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: </ErrorResponse>
2019-10-22T10:29:51.731+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: 2019/10/22 10:29:51 [DEBUG] [aws-sdk-go] DEBUG: Validate Response rds/CreateDBInstanceReadReplica failed, attempt 0/25, error InvalidParameterValue: The auto-minor-version-upgrade value is not valid for the Read Replica
2019-10-22T10:29:51.731+0200 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: status code: 400, request id: 9cc8d585-c135-48df-8151-0048ab646fa4
2019/10/22 10:29:51 [ERROR] root: eval: *terraform.EvalApplyPost, err: 1 error occurred:
* aws_db_instance.slido_replica_crm2: Error creating DB Instance: InvalidParameterValue: The auto-minor-version-upgrade value is not valid for the Read Replica
status code: 400, request id: 9cc8d585-c135-48df-8151-0048ab646fa4
2019/10/22 10:29:51 [ERROR] root: eval: *terraform.EvalSequence, err: 1 error occurred:
* aws_db_instance.slido_replica_crm2: Error creating DB Instance: InvalidParameterValue: The auto-minor-version-upgrade value is not valid for the Read Replica
status code: 400, request id: 9cc8d585-c135-48df-8151-0048ab646fa4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment