terraforming 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/README.md +1 -0
- data/lib/terraforming/resource/security_group.rb +1 -1
- data/lib/terraforming/template/tf/security_group.erb +0 -1
- data/lib/terraforming/util.rb +9 -7
- data/lib/terraforming/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9bd773aeb4acbfcd89f9d77fbdc54c68b7ee100
|
4
|
+
data.tar.gz: 699ad0b34423786c6b21983c4bb58295daecb988
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9fdcbf5652f6afcca90739c20a8a0e31f93f980c0273ed2d9fc6c09b72dc5c192e6f2d411fd2db4be1e4dc96e99341f6564abbbd69c18e0cfc6be465b88b2f71
|
7
|
+
data.tar.gz: 60566d25e730807e64d993f7b8b671c200b6e88a94aa622a5c36325f866a0b4bca33d9cb278bf55e1907e7a852a9d04346094325ce258746f198f374fb202a35
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
# v0.1.0 (UNRELEASED)
|
2
|
+
|
3
|
+
# [v0.0.4](https://github.com/dtan4/terraforming/releases/tag/v0.0.4) (2015-05-29)
|
4
|
+
|
5
|
+
### Fixed
|
6
|
+
|
7
|
+
- Generate tfstate `modules` as Hash #56 (thanks @endemics)
|
8
|
+
- Set unique module name to SecurityGroup #53
|
9
|
+
- Remove `owner_id` argument from SecurityGroup #54
|
10
|
+
|
1
11
|
# [v0.0.3](https://github.com/dtan4/terraforming/releases/tag/v0.0.3) (2015-05-26)
|
2
12
|
|
3
13
|
### Fixed
|
data/README.md
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
[![Code Climate](https://codeclimate.com/github/dtan4/terraforming/badges/gpa.svg)](https://codeclimate.com/github/dtan4/terraforming)
|
5
5
|
[![Test Coverage](https://codeclimate.com/github/dtan4/terraforming/badges/coverage.svg)](https://codeclimate.com/github/dtan4/terraforming)
|
6
6
|
[![Gem Version](https://badge.fury.io/rb/terraforming.svg)](http://badge.fury.io/rb/terraforming)
|
7
|
+
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)
|
7
8
|
[![Docker Repository on Quay.io](https://quay.io/repository/dtan4/terraforming/status "Docker Repository on Quay.io")](https://quay.io/repository/dtan4/terraforming)
|
8
9
|
|
9
10
|
Import existing AWS resources into [Terraform](https://terraform.io/) style (tf, tfstate)
|
@@ -2,7 +2,6 @@
|
|
2
2
|
resource "aws_security_group" "<%= module_name_of(security_group) %>" {
|
3
3
|
name = "<%= security_group.group_name %>"
|
4
4
|
description = "<%= security_group.description %>"
|
5
|
-
owner_id = "<%= security_group.owner_id %>"
|
6
5
|
vpc_id = "<%= security_group.vpc_id || '' %>"
|
7
6
|
|
8
7
|
<% security_group.ip_permissions.each do |permission| -%>
|
data/lib/terraforming/util.rb
CHANGED
@@ -21,13 +21,15 @@ module Terraforming
|
|
21
21
|
tfstate = {
|
22
22
|
"version" => 1,
|
23
23
|
"serial" => 1,
|
24
|
-
"modules" =>
|
25
|
-
|
26
|
-
"
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
24
|
+
"modules" => [
|
25
|
+
{
|
26
|
+
"path" => [
|
27
|
+
"root"
|
28
|
+
],
|
29
|
+
"outputs" => {},
|
30
|
+
"resources" => resources
|
31
|
+
}
|
32
|
+
]
|
31
33
|
}
|
32
34
|
|
33
35
|
JSON.pretty_generate(tfstate)
|
data/lib/terraforming/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: terraforming
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daisuke Fujita
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|
@@ -257,3 +257,4 @@ signing_key:
|
|
257
257
|
specification_version: 4
|
258
258
|
summary: Import existing AWS resources into Terraform style (tf, tfstate)
|
259
259
|
test_files: []
|
260
|
+
has_rdoc:
|