Closed tormodmacleod closed 4 years ago
i don't think this is a result of some silly mistake i'm making but apologies in advance if it is. i hope i've provided all the necessary information but please do let me know if something's missing
seeing similar behavior with the current AWS provider (2.60.0):
2020-05-06T19:43:50.132-0400 [DEBUG] plugin.terraform-provider-aws_v2.60.0_x4: 2020/05/06 19:43:50 [DEBUG] RDS DB Instance (arn:aws:rds:us-east-1:123456789123:db:test) IAM Role associating: arn:aws:iam::123456789123:role/test-612qbmsl-rds
2020-05-06T19:43:50.273-0400 [DEBUG] plugin.terraform-provider-aws_v2.60.0_x4: 2020/05/06 19:43:50 [DEBUG] Waiting for RDS DB Instance (arn:aws:rds:us-east-1:123456789123:db:test) IAM Role association: arn:aws:iam::123456789123:role/test-612qbmsl-rds
2020-05-06T19:43:50.273-0400 [DEBUG] plugin.terraform-provider-aws_v2.60.0_x4: 2020/05/06 19:43:50 [DEBUG] Waiting for state to become: [ACTIVE]
2020/05/06 19:43:52 [TRACE] dag/walk: vertex "root" is waiting for "provider.aws (close)"
2020/05/06 19:43:55 [TRACE] dag/walk: vertex "provider.aws (close)" is waiting for "aws_db_instance_role_association.this"
2020/05/06 19:43:55 [TRACE] dag/walk: vertex "meta.count-boundary (EachMode fixup)" is waiting for "aws_db_instance_role_association.this"
2020-05-06T19:43:55.274-0400 [DEBUG] plugin.terraform-provider-aws_v2.60.0_x4: 2020/05/06 19:43:55 [DEBUG] Describing RDS DB Instance: {
2020-05-06T19:43:55.274-0400 [DEBUG] plugin.terraform-provider-aws_v2.60.0_x4: DBInstanceIdentifier: "arn:aws:rds:us-east-1:123456789123:db:test"
2020-05-06T19:43:55.274-0400 [DEBUG] plugin.terraform-provider-aws_v2.60.0_x4: }
2020-05-06T19:43:55.430-0400 [DEBUG] plugin.terraform-provider-aws_v2.60.0_x4: panic: runtime error: invalid memory address or nil pointer dereference
2020-05-06T19:43:55.430-0400 [DEBUG] plugin.terraform-provider-aws_v2.60.0_x4: [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x424a8d6]
2020-05-06T19:43:55.430-0400 [DEBUG] plugin.terraform-provider-aws_v2.60.0_x4:
2020-05-06T19:43:55.430-0400 [DEBUG] plugin.terraform-provider-aws_v2.60.0_x4: goroutine 170 [running]:
2020-05-06T19:43:55.430-0400 [DEBUG] plugin.terraform-provider-aws_v2.60.0_x4: github.com/terraform-providers/terraform-provider-aws/aws.waitForRdsDbInstanceRoleAssociation.func1(0xc000bf9f50, 0xc000bf9e78, 0x2, 0x1, 0xc000bf9f01, 0x42ca0a)
2020-05-06T19:43:55.430-0400 [DEBUG] plugin.terraform-provider-aws_v2.60.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_instance_role_association.go:210 +0x66
2020-05-06T19:43:55.430-0400 [DEBUG] plugin.terraform-provider-aws_v2.60.0_x4: github.com/hashicorp/terraform-plugin-sdk/helper/resource.(*StateChangeConf).WaitForState.func1(0xc0005ffa40, 0xc000210540, 0xc0000e0b40, 0xc0000e2ae0, 0xc000d75d78, 0xc000d75d70)
2020-05-06T19:43:55.430-0400 [DEBUG] plugin.terraform-provider-aws_v2.60.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform-plugin-sdk/helper/resource/state.go:103 +0x29d
2020-05-06T19:43:55.430-0400 [DEBUG] plugin.terraform-provider-aws_v2.60.0_x4: created by github.com/hashicorp/terraform-plugin-sdk/helper/resource.(*StateChangeConf).WaitForState
2020-05-06T19:43:55.430-0400 [DEBUG] plugin.terraform-provider-aws_v2.60.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform-plugin-sdk/helper/resource/state.go:80 +0x1bf
2020-05-06T19:43:55.431-0400 [DEBUG] plugin: plugin process exited: path=/home/tcmulder/rds-testing/.terragrunt-cache/vs3-yD2YSBV1lP4J2dFgOpNU62Q/00ZR20X4VzyFR6aEyQ22UqCUu5k/.terraform/plugins/linux_amd64/terraform-provider-aws_v2.60.0_x4 pid=14233 error="exit status 2"
The fix for this has been merged and will release with version 2.69.0 of the Terraform AWS Provider, likely later today. π
This has been released in version 2.69.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.
For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!
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!
Community Note
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
Actual Behavior
Steps to Reproduce
terraform apply
Important Factoids
References
0000