sumomo 0.8.9 → 0.8.13
Sign up to get free protection for your applications and to get access to all the features.
- 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 +12 -2
- data/lib/sumomo/api.rb +120 -9
- data/lib/sumomo/ec2.rb +9 -6
- data/lib/sumomo/stack.rb +1 -1
- data/lib/sumomo/version.rb +1 -1
- data/lib/sumomo.rb +33 -5
- data/sumomo.gemspec +6 -4
- data/update-spec.rb +381 -0
- metadata +51 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59006b478da1bfee06aeda72c61439bc432de97224c4d79b948cb9e4a69f1716
|
4
|
+
data.tar.gz: 87cad941fc2df847ab01578d970f622a281cd2237a083427163a7de447682fd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8ba7e03cdeccec460b30a458ec8fd13308212c19b65a9cff287d6cd064adf30fae512da4afcb39c8cfe0fd9f162bc613ea9eb7783794be50527bc41d0d0251f
|
7
|
+
data.tar.gz: a66f919eb07e22c61cb9428e756425150dc1bfc281599dfe51d40b8dfb13c7680fa927af09fe116169ea5810a170a3c8d38fedddabcb8d14b7d18ea96b442b8a
|
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
|
|