inspec-iggy 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +15 -0
- data/README.md +114 -0
- data/inspec-iggy.gemspec +26 -0
- data/lib/inspec-iggy.rb +7 -0
- data/lib/inspec-iggy/cli.rb +53 -0
- data/lib/inspec-iggy/cloudformation.rb +104 -0
- data/lib/inspec-iggy/inspec_helper.rb +59 -0
- data/lib/inspec-iggy/terraform.rb +146 -0
- data/lib/inspec-iggy/version.rb +11 -0
- data/test/bad.json +6 -0
- data/test/bjc-demo-aws-4.5.4.json +851 -0
- data/test/main.tf +156 -0
- data/test/outputs.tf +11 -0
- data/test/terraform.tfstate +383 -0
- data/test/variables.tf +35 -0
- metadata +80 -0
data/test/variables.tf
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
# Two-Tier example from https://github.com/terraform-providers/terraform-provider-aws
|
2
|
+
|
3
|
+
variable "public_key_path" {
|
4
|
+
description = <<DESCRIPTION
|
5
|
+
Path to the SSH public key to be used for authentication.
|
6
|
+
Ensure this keypair is added to your local SSH agent so provisioners can
|
7
|
+
connect.
|
8
|
+
|
9
|
+
Example: ~/.ssh/terraform.pub
|
10
|
+
DESCRIPTION
|
11
|
+
}
|
12
|
+
|
13
|
+
variable "private_key_path" {
|
14
|
+
description = "Path to the private key - for ssh login. Example: ~/.ssh/terraform.pem"
|
15
|
+
}
|
16
|
+
|
17
|
+
variable "key_name" {
|
18
|
+
description = "Desired name of AWS key pair"
|
19
|
+
}
|
20
|
+
|
21
|
+
variable "aws_region" {
|
22
|
+
description = "AWS region to launch servers."
|
23
|
+
default = "us-west-1"
|
24
|
+
}
|
25
|
+
|
26
|
+
# Ubuntu Precise 12.04 LTS (x64)
|
27
|
+
variable "aws_amis" {
|
28
|
+
default = {
|
29
|
+
eu-central-1 = "ami-fa2fb595"
|
30
|
+
eu-west-1 = "ami-674cbc1e"
|
31
|
+
us-east-1 = "ami-1d4e7a66"
|
32
|
+
us-west-1 = "ami-969ab1f6"
|
33
|
+
us-west-2 = "ami-8803e0f0"
|
34
|
+
}
|
35
|
+
}
|
metadata
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: inspec-iggy
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Matt Ray
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-05-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: inspec
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.0'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 3.0.0
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '2.0'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 3.0.0
|
33
|
+
description: Generate InSpec compliance profiles from Terraform by tagging instances
|
34
|
+
and mapping Terraform to InSpec.
|
35
|
+
email:
|
36
|
+
- matt@chef.io
|
37
|
+
executables: []
|
38
|
+
extensions: []
|
39
|
+
extra_rdoc_files: []
|
40
|
+
files:
|
41
|
+
- Gemfile
|
42
|
+
- README.md
|
43
|
+
- inspec-iggy.gemspec
|
44
|
+
- lib/inspec-iggy.rb
|
45
|
+
- lib/inspec-iggy/cli.rb
|
46
|
+
- lib/inspec-iggy/cloudformation.rb
|
47
|
+
- lib/inspec-iggy/inspec_helper.rb
|
48
|
+
- lib/inspec-iggy/terraform.rb
|
49
|
+
- lib/inspec-iggy/version.rb
|
50
|
+
- test/bad.json
|
51
|
+
- test/bjc-demo-aws-4.5.4.json
|
52
|
+
- test/main.tf
|
53
|
+
- test/outputs.tf
|
54
|
+
- test/terraform.tfstate
|
55
|
+
- test/variables.tf
|
56
|
+
homepage: https://github.com/inspec/inspec-iggy
|
57
|
+
licenses:
|
58
|
+
- Apache-2.0
|
59
|
+
metadata: {}
|
60
|
+
post_install_message:
|
61
|
+
rdoc_options: []
|
62
|
+
require_paths:
|
63
|
+
- lib
|
64
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '0'
|
74
|
+
requirements: []
|
75
|
+
rubyforge_project:
|
76
|
+
rubygems_version: 2.6.14.1
|
77
|
+
signing_key:
|
78
|
+
specification_version: 4
|
79
|
+
summary: InSpec plugin to generate InSpec compliance profiles from Terraform.
|
80
|
+
test_files: []
|