Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. # dynamic構文を記載(actionsとresourcesは便宜上記載していません。)
  2. data "aws_iam_policy_document" "dynamic_test_document" {
  3. dynamic "statement" {
  4. for_each = local.policy_document_effects
  5.  
  6. content {
  7. sid = statement.key + 1
  8. effect = statement.value
  9. actions = [
  10.  
  11. ]
  12. resources = [
  13.  
  14. ]
  15. }
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement