You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
aws_iam_role.ddslevel2role - *terraform.NodeValidatableResourceInstance
2017/10/20 11:23:39 [TRACE] Graph after step *terraform.AttachStateTransformer:
aws_iam_role.ddslevel3role - *terraform.NodeValidatableResourceInstance
2017/10/20 11:23:39 [DEBUG] Resource state not found for "aws_iam_role_policy_attachment.ddslevel2role[0]": aws_iam_role_policy_attachment.ddslevel2role[0]
2017/10/20 11:23:39 [DEBUG] Resource state not found for "aws_iam_role_policy_attachment.ddslevel2role[1]": aws_iam_role_policy_attachment.ddslevel2role[1]
2017/10/20 11:23:39 [DEBUG] ReferenceTransformer: "aws_iam_role_policy_attachment.ddslevel2role[0]" references: []
2017/10/20 11:23:39 [DEBUG] ReferenceTransformer: "aws_iam_role_policy_attachment.ddslevel2role[1]" references: []
2017/10/20 11:23:39 [DEBUG] Resource state not found for "aws_iam_role_policy_attachment.ddslevel3role[2]": aws_iam_role_policy_attachment.ddslevel3role[2]
2017/10/20 11:23:39 [DEBUG] Resource state not found for "aws_iam_role_policy_attachment.ddslevel3role[3]": aws_iam_role_policy_attachment.ddslevel3role[3]
2017/10/20 11:23:39 [DEBUG] Resource state not found for "aws_iam_role_policy_attachment.ddslevel3role[0]": aws_iam_role_policy_attachment.ddslevel3role[0]
2017/10/20 11:23:39 [DEBUG] ReferenceTransformer: "aws_iam_role_policy_attachment.ddslevel3role[1]" references: []
2017/10/20 11:23:39 [DEBUG] ReferenceTransformer: "aws_iam_role_policy_attachment.ddslevel3role[2]" references: []
2017/10/20 11:23:39 [DEBUG] ReferenceTransformer: "aws_iam_role_policy_attachment.ddslevel3role[3]" references: []
2017/10/20 11:23:39 [TRACE] root: eval: *terraform.EvalValidateResource
2017/10/20 11:23:39 [DEBUG] ReferenceTransformer: "aws_iam_role_policy_attachment.ddslevel3role[0]" references: []
2017/10/20 11:23:39 [DEBUG] plugin: waiting for all plugin processes to complete...
9 error(s) occurred:
This is using the aws provider.
Terraform Version
Terraform v0.10.7
Terraform Configuration Files
Debug Output
data.aws_iam_policy_document.ddslevel3role - *terraform.NodeValidatableResourceInstance
2017/10/20 11:23:39 [DEBUG] Resource state not found for "data.aws_iam_policy_document.ddslevel2role": data.aws_iam_policy_document.ddslevel2role
2017/10/20 11:23:39 [TRACE] root: eval: *terraform.EvalInterpolate
2017/10/20 11:23:39 [DEBUG] ReferenceTransformer: "data.aws_iam_policy_document.ddslevel2role" references: []
2017/10/20 11:23:39 [ERROR] root: eval: *terraform.EvalValidateResource, err: Warnings: []. Errors: [statement.0.principals.0: expected object, got string]
2017/10/20 11:23:39 [ERROR] root: eval: *terraform.EvalSequence, err: Warnings: []. Errors: [statement.0.principals.0: expected object, got string]
2017/10/20 11:23:39 [TRACE] [walkValidate] Exiting eval tree: data.aws_iam_policy_document.ddslevel2role
2017/10/20 11:23:39 [ERROR] root: eval: *terraform.EvalValidateResource, err: Warnings: []. Errors: [statement.0.principals.0: expected object, got string statement.0.principals.1: expected object, got string statement.0.principals.2: expected object, got string statement.0.principals.3: expected object, got string statement.0.principals.4: expected object, got string statement.0.principals.5: expected object, got string statement.0.principals.6: expected object, got string statement.0.principals.7: expected object, got string]
2017/10/20 11:23:39 [ERROR] root: eval: *terraform.EvalSequence, err: Warnings: []. Errors: [statement.0.principals.0: expected object, got string statement.0.principals.1: expected object, got string statement.0.principals.2: expected object, got string statement.0.principals.3: expected object, got string statement.0.principals.4: expected object, got string statement.0.principals.5: expected object, got string statement.0.principals.6: expected object, got string statement.0.principals.7: expected object, got string]
2017/10/20 11:23:39 [TRACE] [walkValidate] Exiting eval tree: data.aws_iam_policy_document.ddslevel3role
2017/10/20 11:23:39 [TRACE] dag/walk: walking "aws_iam_role.ddslevel2role"
2017/10/20 11:23:39 [DEBUG] Resource state not found for "aws_iam_role.ddslevel2role": aws_iam_role.ddslevel2role
2017/10/20 11:23:39 [DEBUG] Resource state not found for "aws_iam_role.ddslevel3role": aws_iam_role.ddslevel3role
2017/10/20 11:23:39 [TRACE] Graph after step *terraform.AttachStateTransformer:
aws_iam_role.ddslevel2role - *terraform.NodeValidatableResourceInstance
2017/10/20 11:23:39 [TRACE] Graph after step *terraform.AttachStateTransformer:
aws_iam_role.ddslevel3role - *terraform.NodeValidatableResourceInstance
2017/10/20 11:23:39 [DEBUG] Resource state not found for "aws_iam_role_policy_attachment.ddslevel2role[0]": aws_iam_role_policy_attachment.ddslevel2role[0]
2017/10/20 11:23:39 [DEBUG] Resource state not found for "aws_iam_role_policy_attachment.ddslevel2role[1]": aws_iam_role_policy_attachment.ddslevel2role[1]
2017/10/20 11:23:39 [DEBUG] ReferenceTransformer: "aws_iam_role_policy_attachment.ddslevel2role[0]" references: []
2017/10/20 11:23:39 [DEBUG] ReferenceTransformer: "aws_iam_role_policy_attachment.ddslevel2role[1]" references: []
2017/10/20 11:23:39 [DEBUG] Resource state not found for "aws_iam_role_policy_attachment.ddslevel3role[2]": aws_iam_role_policy_attachment.ddslevel3role[2]
2017/10/20 11:23:39 [DEBUG] Resource state not found for "aws_iam_role_policy_attachment.ddslevel3role[3]": aws_iam_role_policy_attachment.ddslevel3role[3]
2017/10/20 11:23:39 [DEBUG] Resource state not found for "aws_iam_role_policy_attachment.ddslevel3role[0]": aws_iam_role_policy_attachment.ddslevel3role[0]
2017/10/20 11:23:39 [DEBUG] ReferenceTransformer: "aws_iam_role_policy_attachment.ddslevel3role[1]" references: []
2017/10/20 11:23:39 [DEBUG] ReferenceTransformer: "aws_iam_role_policy_attachment.ddslevel3role[2]" references: []
2017/10/20 11:23:39 [DEBUG] ReferenceTransformer: "aws_iam_role_policy_attachment.ddslevel3role[3]" references: []
2017/10/20 11:23:39 [TRACE] root: eval: *terraform.EvalValidateResource
2017/10/20 11:23:39 [DEBUG] ReferenceTransformer: "aws_iam_role_policy_attachment.ddslevel3role[0]" references: []
2017/10/20 11:23:39 [DEBUG] plugin: waiting for all plugin processes to complete...
9 error(s) occurred:
Expected Behavior
terraform plan
Finishes normally.
Actual Behavior
Terraform fails to handle list of strings correctly when a variable is used.
Steps to Reproduce
Please list the full steps required to reproduce the issue, for example:
terraform init
terraform plan
References
The text was updated successfully, but these errors were encountered: