sumomo 0.8.10 → 0.8.14
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 +4 -4
- data/README.md +12 -11
- data/data/sumomo/custom_resources/{USEastCertificate.js → ACMCertificate.js} +8 -3
- data/data/sumomo/custom_resources/{USEastCertificateWaiter.js → ACMCertificateWaiter.js} +3 -1
- data/data/sumomo/custom_resources/AMILookup.js +378 -150
- data/data/sumomo/custom_resources/SelectSpot.js +376 -142
- data/exe/sumomo +16 -3
- data/lib/sumomo/api.rb +120 -9
- data/lib/sumomo/ec2.rb +2 -1
- data/lib/sumomo/stack.rb +7 -4
- data/lib/sumomo/version.rb +1 -1
- data/lib/sumomo.rb +23 -3
- data/sumomo.gemspec +6 -4
- data/update-spec.rb +381 -0
- metadata +47 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14cea3c6a1850dccbf4f44fc0de5aac2f55082d2d881bd6b09486715b1514629
|
4
|
+
data.tar.gz: 2e8b573a332ba356006ee19f00cc92150faf04ad0b4bd05e1515f6ad150532d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c12ab52d9b883043cc9aa335ca2ce44420061c328831708c25a7a66f76289e7e913dc8c09b271e33067fbe2a9c98bc43403830ffbadadb3831b75529f5dcf27
|
7
|
+
data.tar.gz: 21bc6b234abed78dc5effb72cf516200b5ae9a1f104bcbc22b629c9df5ed8a702ba8142063bc2e950b6fea86b026da00c731d4a556c281c55b4e6d23b7b7c435
|
data/README.md
CHANGED
@@ -75,22 +75,23 @@ Sumomo::wait_for_stack(name: "mystack", region: "ap-northeast-1")
|
|
75
75
|
You can make a server
|
76
76
|
|
77
77
|
```ruby
|
78
|
-
network = make_network(layers: [
|
79
|
-
|
78
|
+
network = make_network(layers: %w[web])
|
80
79
|
eip = make "AWS::EC2::EIP"
|
81
80
|
|
82
81
|
make_autoscaling_group(
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
82
|
+
network: network,
|
83
|
+
layer: 'web',
|
84
|
+
eip: eip,
|
85
|
+
type: "a1.medium",
|
86
|
+
vol_size: 15, # GB,
|
87
|
+
script: <<-SCRIPT
|
88
|
+
yum install git gcc g++
|
89
|
+
echo "hello world" >> ~/hello
|
90
|
+
SCRIPT
|
92
91
|
)
|
93
92
|
|
93
|
+
output 'IP', eip
|
94
|
+
|
94
95
|
```
|
95
96
|
|
96
97
|
You can make apis with this now
|
@@ -1,4 +1,6 @@
|
|
1
|
-
var
|
1
|
+
var cert_region = request.ResourceProperties.RegionOverride || request.ResourceProperties.Region;
|
2
|
+
|
3
|
+
var acm = new aws.ACM({region: cert_region});
|
2
4
|
|
3
5
|
var return_properties = {};
|
4
6
|
|
@@ -66,9 +68,12 @@ function create(domain_name, on_success, on_fail)
|
|
66
68
|
DomainValidationOptions: [
|
67
69
|
{
|
68
70
|
DomainName: domain_name,
|
69
|
-
ValidationDomain: extractRootDomain(domain_name)
|
71
|
+
ValidationDomain: extractRootDomain(domain_name),
|
70
72
|
},
|
71
|
-
]
|
73
|
+
],
|
74
|
+
Options: {
|
75
|
+
CertificateTransparencyLoggingPreference: 'ENABLED'
|
76
|
+
}
|
72
77
|
}
|
73
78
|
|
74
79
|
if (request.ResourceProperties.ValidationMethod === "DNS")
|
@@ -1,4 +1,6 @@
|
|
1
|
-
var
|
1
|
+
var cert_region = request.ResourceProperties.RegionOverride || request.ResourceProperties.Region;
|
2
|
+
|
3
|
+
var acm = new aws.ACM({region: cert_region});
|
2
4
|
|
3
5
|
var arn = request.ResourceProperties.Certificate;
|
4
6
|
|