kumogata-template 0.0.27 → 0.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2383c2d571276248b35f727736cd4aea37204b62
4
- data.tar.gz: e33971d8091ebf93f0bb9b64928e9466e074225c
3
+ metadata.gz: 192abd8a01159a3a1373f2061dc56d8529b2f71b
4
+ data.tar.gz: c71a1eb3841a68a38c001f6355f72b2293e5f0ce
5
5
  SHA512:
6
- metadata.gz: 16d1afa6529932af0d96e5319637110cd09ea507838d3b207e685d7ec4f405bd99ec16e80291772531cb11d6a7ef705517dabbc55df0131cea9ea39674e95edf
7
- data.tar.gz: '01658b9dc49640b269209d5f9aaee2abcbf8f664c2f258c3dc6c6674c20f0fcad114161f33dce88701b0bca049ce5c3e0905d6d32d1bc6b74afabf770fd616b8'
6
+ metadata.gz: 01c7bce4d0aaafbcacd82c837c284515839522062a96a30cffd3f61cdd1cb174f799330ed4ddfaf5fa31a0e3e382fc8b03be48bb7534ee02d9ad28c6368dbb86
7
+ data.tar.gz: b4bdd068aa9b8d3a8be2eca82dce10eeb6c00cc1192aea2807a82a865495cbeebee987db76620d0e89884295d9f8491645161df50c281391bc1ac418e544eee6
@@ -56,7 +56,10 @@ def _iam_policies(name, args)
56
56
  policies = args[name.to_sym] || []
57
57
  policies.each_with_index do |v, i|
58
58
  array << _{
59
- PolicyDocument _iam_policy_document("document", v)
59
+ PolicyDocument do
60
+ Version "2012-10-17"
61
+ Statement _iam_policy_document("document", v)
62
+ end
60
63
  PolicyName v[:name] || _resource_name("policy", i)
61
64
  }
62
65
  end
@@ -1 +1 @@
1
- KUMOGATA_TEMPLATE_VERSION = '0.0.27'
1
+ KUMOGATA_TEMPLATE_VERSION = '0.0.28'
@@ -62,17 +62,20 @@ Policies _iam_policies "test", test: [ { document: [ { service: "s3" } ] } ]
62
62
  {
63
63
  "Policies": [
64
64
  {
65
- "PolicyDocument": [
66
- {
67
- "Effect": "Allow",
68
- "Action": [
69
- "s3:*"
70
- ],
71
- "Resource": [
72
- "*"
73
- ]
74
- }
75
- ],
65
+ "PolicyDocument": {
66
+ "Version": "2012-10-17",
67
+ "Statement": [
68
+ {
69
+ "Effect": "Allow",
70
+ "Action": [
71
+ "s3:*"
72
+ ],
73
+ "Resource": [
74
+ "*"
75
+ ]
76
+ }
77
+ ]
78
+ },
76
79
  "PolicyName": "Policy0"
77
80
  }
78
81
  ]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kumogata-template
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.27
4
+ version: 0.0.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naoya Nakazawa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-26 00:00:00.000000000 Z
11
+ date: 2017-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk
@@ -415,7 +415,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
415
415
  version: '0'
416
416
  requirements: []
417
417
  rubyforge_project:
418
- rubygems_version: 2.5.2
418
+ rubygems_version: 2.6.11
419
419
  signing_key:
420
420
  specification_version: 4
421
421
  summary: Template for Kumogata.