Commit bab3192
authored
Update to v5.x of terraform-provider-aws (#27)
Switch this and dependent modules to the v5.x of the Terraform AWS
provider to support the latest AWS features, like RDS' io2.
- Fix dynamic statement block
```
│ on .terraform/modules/production.auth_token/secret/main.tf line 43, in data "aws_iam_policy_document" "secret":
│ 43: identifiers = [statement.arn]
│
│ This object does not have an attribute named "arn".
```
https://developer.hashicorp.com/terraform/language/expressions/dynamic-blocks
- Fix user managed secret environment variables
NOTE: This cherry picks a commit from a [PR @jferris opened] to address the same issue.
- Terraform was complaining about calling `nonsensitive` when the value
wasn't sensitive; this forces the initial value to potentially be
sensitive to avoid the error.
- We can skip parsing out the environment variables for the user managed
secret module, because they are passed in directly.
[PR @jferris opened]: #131 parent d93c347 commit bab3192
2 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | | - | |
| 291 | + | |
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments