Greetings!
Something I noticed around terraform 0.13 or terraform 0.14, when I do a plan
, it’s outputting data source updates, such as…
$ terraform plan
...
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
~ update in-place
+/- create replacement and then destroy
<= read (data resources)
# module.bootstrap.module.public_website["app"].module.aws_iam["live"].data.aws_iam_policy_document.base will be read during apply
# (config refers to values not yet known)
<= data "aws_iam_policy_document" "base" {
~ id = "1812989946" -> (known after apply)
~ json = jsonencode(
{
- Statement = [
- {
- Action = [
- "s3:Put*",
- "s3:List*",
- "s3:Get*",
- "s3:Describe*",
- "s3:Delete*",
- "cloudfront:CreateInvalidation",
]
- Effect = "Allow"
- Resource = [
...REDACTED...
]
- Sid = ""
},
- {
- Action = [
- "s3:DeleteObjectVersion",
- "s3:DeleteBucket",
]
- Effect = "Deny"
- Resource = [
...REDACTED...
]
- Sid = ""
},
]
- Version = "2012-10-17"
}
) -> (known after apply)
- version = "2012-10-17" -> null
~ statement {
- effect = "Allow" -> null
- not_actions = [] -> null
- not_resources = [] -> null
# (2 unchanged attributes hidden)
}
~ statement {
- not_actions = [] -> null
- not_resources = [] -> null
# (3 unchanged attributes hidden)
}
}
It’s really making my plan
executions unreadable. I’m seeing this on the aws provider and the github provider, so it doesn’t appear to be a provider-specific issue.
Is something bad/incorrect happening that it terraform is feeling the need to inform me of data source refreshes? I don’t feel like they are actionable?