awspec 1.33.0 → 1.35.0
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/.github/release.yml +4 -0
- data/.github/workflows/ci.yml +7 -7
- data/.github/workflows/doc.yml +4 -4
- data/.github/workflows/tagpr.yml +58 -0
- data/.tagpr +37 -0
- data/CHANGELOG.md +104 -0
- data/doc/resource_types.md +12 -10
- data/lib/awspec/generator/doc/type/account.rb +1 -1
- data/lib/awspec/generator/doc/type/account_attribute.rb +2 -1
- data/lib/awspec/generator/doc/type/base.rb +1 -1
- data/lib/awspec/generator/doc/type.rb +1 -1
- data/lib/awspec/generator/spec/acm.rb +1 -1
- data/lib/awspec/generator/spec/alb.rb +1 -1
- data/lib/awspec/generator/spec/alb_listener.rb +1 -1
- data/lib/awspec/generator/spec/autoscaling_group.rb +1 -1
- data/lib/awspec/generator/spec/cloudwatch_alarm.rb +1 -1
- data/lib/awspec/generator/spec/cloudwatch_event.rb +1 -1
- data/lib/awspec/generator/spec/cloudwatch_logs.rb +1 -1
- data/lib/awspec/generator/spec/codebuild.rb +1 -1
- data/lib/awspec/generator/spec/codepipeline.rb +1 -1
- data/lib/awspec/generator/spec/directconnect.rb +1 -1
- data/lib/awspec/generator/spec/ebs.rb +2 -2
- data/lib/awspec/generator/spec/ec2.rb +1 -1
- data/lib/awspec/generator/spec/efs.rb +1 -1
- data/lib/awspec/generator/spec/eip.rb +1 -1
- data/lib/awspec/generator/spec/elasticache.rb +1 -1
- data/lib/awspec/generator/spec/elasticsearch.rb +1 -1
- data/lib/awspec/generator/spec/elb.rb +1 -1
- data/lib/awspec/generator/spec/iam_group.rb +1 -1
- data/lib/awspec/generator/spec/iam_policy.rb +1 -1
- data/lib/awspec/generator/spec/iam_role.rb +1 -1
- data/lib/awspec/generator/spec/iam_user.rb +1 -1
- data/lib/awspec/generator/spec/internet_gateway.rb +1 -1
- data/lib/awspec/generator/spec/kms.rb +1 -1
- data/lib/awspec/generator/spec/lambda.rb +1 -1
- data/lib/awspec/generator/spec/managed_prefix_list.rb +1 -1
- data/lib/awspec/generator/spec/nat_gateway.rb +1 -1
- data/lib/awspec/generator/spec/network_acl.rb +1 -1
- data/lib/awspec/generator/spec/network_interface.rb +1 -1
- data/lib/awspec/generator/spec/nlb.rb +1 -1
- data/lib/awspec/generator/spec/nlb_listener.rb +1 -1
- data/lib/awspec/generator/spec/rds.rb +1 -1
- data/lib/awspec/generator/spec/rds_db_cluster.rb +1 -1
- data/lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb +1 -1
- data/lib/awspec/generator/spec/rds_db_parameter_group.rb +1 -1
- data/lib/awspec/generator/spec/rds_global_cluster.rb +1 -1
- data/lib/awspec/generator/spec/rds_proxy.rb +1 -1
- data/lib/awspec/generator/spec/redshift.rb +1 -1
- data/lib/awspec/generator/spec/redshift_cluster_parameter_group.rb +1 -1
- data/lib/awspec/generator/spec/route53_hosted_zone.rb +2 -2
- data/lib/awspec/generator/spec/route_table.rb +10 -6
- data/lib/awspec/generator/spec/s3_bucket.rb +3 -3
- data/lib/awspec/generator/spec/security_group.rb +3 -3
- data/lib/awspec/generator/spec/subnet.rb +1 -1
- data/lib/awspec/generator/spec/vpc.rb +1 -1
- data/lib/awspec/generator/spec/wafv2_ip_set.rb +1 -1
- data/lib/awspec/generator/spec/wafv2_web_acl.rb +1 -1
- data/lib/awspec/helper/finder/backup.rb +9 -0
- data/lib/awspec/helper/finder/iam.rb +17 -1
- data/lib/awspec/matcher/have_plan_rule.rb +38 -0
- data/lib/awspec/matcher.rb +3 -0
- data/lib/awspec/stub/backup_plan.rb +38 -0
- data/lib/awspec/stub/iam_policy.rb +15 -1
- data/lib/awspec/stub/iam_role.rb +11 -1
- data/lib/awspec/type/backup_plan.rb +40 -0
- data/lib/awspec/version.rb +1 -1
- metadata +8 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: db3c043ecfd88d5ba4d3172eacd752be77fced5cfc8437e8eff6309f08d2cf1d
|
|
4
|
+
data.tar.gz: f2681be63ef0ebe27769fa955c44a8fea5bc40b46ac68fc5d2d84c5dc56b2454
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 97c866e601968425dc87fc154a3a24894bb0361a8a1a0af891a4e06a86d799f8a2778059c234cd09de7d4c6f44de405c6dc481f85de30c916624533b586662a4
|
|
7
|
+
data.tar.gz: ea9f60784223a778a2bc4a2fbda77b6fac713a27863eed4deb716211e81693e122623279641089bfedda0058bd70caa00a25f15f787123f00afc92929999be45
|
data/.github/release.yml
ADDED
data/.github/workflows/ci.yml
CHANGED
|
@@ -3,7 +3,7 @@ name: CI
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
5
|
branches:
|
|
6
|
-
-
|
|
6
|
+
- main
|
|
7
7
|
pull_request:
|
|
8
8
|
|
|
9
9
|
jobs:
|
|
@@ -13,16 +13,16 @@ jobs:
|
|
|
13
13
|
|
|
14
14
|
steps:
|
|
15
15
|
- name: Checkout
|
|
16
|
-
uses: actions/checkout@
|
|
16
|
+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
17
17
|
|
|
18
18
|
- name: Set up Ruby
|
|
19
|
-
uses: ruby/setup-ruby@v1
|
|
19
|
+
uses: ruby/setup-ruby@ab177d40ee5483edb974554986f56b33477e21d0 # v1.265.0
|
|
20
20
|
with:
|
|
21
|
-
ruby-version:
|
|
21
|
+
ruby-version: ruby
|
|
22
22
|
bundler-cache: true
|
|
23
23
|
|
|
24
24
|
- name: Run rubocop
|
|
25
|
-
uses: reviewdog/action-rubocop@v1
|
|
25
|
+
uses: reviewdog/action-rubocop@a434f50eaae1589b90edcb14cabf70555571577a # v1.11.0
|
|
26
26
|
with:
|
|
27
27
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
28
28
|
reporter: github-pr-review
|
|
@@ -46,10 +46,10 @@ jobs:
|
|
|
46
46
|
|
|
47
47
|
steps:
|
|
48
48
|
- name: Checkout
|
|
49
|
-
uses: actions/checkout@
|
|
49
|
+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
50
50
|
|
|
51
51
|
- name: Set up Ruby
|
|
52
|
-
uses: ruby/setup-ruby@v1
|
|
52
|
+
uses: ruby/setup-ruby@ab177d40ee5483edb974554986f56b33477e21d0 # v1.265.0
|
|
53
53
|
with:
|
|
54
54
|
ruby-version: ${{ matrix.ruby-version }}
|
|
55
55
|
bundler-cache: true
|
data/.github/workflows/doc.yml
CHANGED
|
@@ -12,18 +12,18 @@ jobs:
|
|
|
12
12
|
DISABLE_AWS_CLIENT_CHECK: true
|
|
13
13
|
steps:
|
|
14
14
|
- name: Checkout
|
|
15
|
-
uses: actions/checkout@
|
|
15
|
+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
16
16
|
|
|
17
17
|
- name: Set up Ruby
|
|
18
|
-
uses: ruby/setup-ruby@v1
|
|
18
|
+
uses: ruby/setup-ruby@ab177d40ee5483edb974554986f56b33477e21d0 # v1.265.0
|
|
19
19
|
with:
|
|
20
|
-
ruby-version:
|
|
20
|
+
ruby-version: ruby
|
|
21
21
|
bundler-cache: true
|
|
22
22
|
|
|
23
23
|
- name: Generate document
|
|
24
24
|
run: bundle exec bin/toolbox docgen > doc/resource_types.md
|
|
25
25
|
|
|
26
|
-
- uses: EndBug/add-and-commit@v7
|
|
26
|
+
- uses: EndBug/add-and-commit@8c12ff729a98cfbcd3fe38b49f55eceb98a5ec02 # v7.5.0
|
|
27
27
|
with:
|
|
28
28
|
default_author: github_actions
|
|
29
29
|
add: 'doc/resource_types.md'
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
name: tagpr
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches:
|
|
5
|
+
- main
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
tagpr:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
outputs:
|
|
11
|
+
tagpr-tag: ${{ steps.run-tagpr.outputs.tag }}
|
|
12
|
+
permissions:
|
|
13
|
+
contents: write
|
|
14
|
+
pull-requests: write
|
|
15
|
+
issues: write
|
|
16
|
+
packages: write
|
|
17
|
+
env:
|
|
18
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
19
|
+
steps:
|
|
20
|
+
- name: Check out source code
|
|
21
|
+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
22
|
+
with:
|
|
23
|
+
fetch-depth: 0
|
|
24
|
+
|
|
25
|
+
- name: Set up Ruby
|
|
26
|
+
uses: ruby/setup-ruby@ab177d40ee5483edb974554986f56b33477e21d0 # v1.265.0
|
|
27
|
+
with:
|
|
28
|
+
ruby-version: ruby
|
|
29
|
+
bundler-cache: true
|
|
30
|
+
|
|
31
|
+
- id: run-tagpr
|
|
32
|
+
name: Run tagpr
|
|
33
|
+
uses: Songmu/tagpr@9c294c8b7b1815a5f3b7c61d6ee6aa50ac25b030 # v1.8.4
|
|
34
|
+
|
|
35
|
+
release:
|
|
36
|
+
needs: tagpr
|
|
37
|
+
if: needs.tagpr.outputs.tagpr-tag != ''
|
|
38
|
+
runs-on: ubuntu-latest
|
|
39
|
+
permissions:
|
|
40
|
+
contents: write
|
|
41
|
+
packages: write
|
|
42
|
+
id-token: write
|
|
43
|
+
env:
|
|
44
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
45
|
+
steps:
|
|
46
|
+
- name: Check out source code
|
|
47
|
+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
48
|
+
with:
|
|
49
|
+
fetch-depth: 0
|
|
50
|
+
|
|
51
|
+
- name: Set up Ruby
|
|
52
|
+
uses: ruby/setup-ruby@ab177d40ee5483edb974554986f56b33477e21d0 # v1.265.0
|
|
53
|
+
with:
|
|
54
|
+
ruby-version: ruby
|
|
55
|
+
bundler-cache: true
|
|
56
|
+
|
|
57
|
+
- name: release gem
|
|
58
|
+
uses: rubygems/release-gem@9fc8c0f9a461e67716cde28f188b9a5c029333a8 # v1
|
data/.tagpr
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# config file for the tagpr in git config format
|
|
2
|
+
# The tagpr generates the initial configuration, which you can rewrite to suit your environment.
|
|
3
|
+
# CONFIGURATIONS:
|
|
4
|
+
# tagpr.releaseBranch
|
|
5
|
+
# Generally, it is "main." It is the branch for releases. The pcpr tracks this branch,
|
|
6
|
+
# creates or updates a pull request as a release candidate, or tags when they are merged.
|
|
7
|
+
#
|
|
8
|
+
# tagpr.versionFile
|
|
9
|
+
# Versioning file containing the semantic version needed to be updated at release.
|
|
10
|
+
# It will be synchronized with the "git tag".
|
|
11
|
+
# Often this is a meta-information file such as gemspec, setup.cfg, package.json, etc.
|
|
12
|
+
# Sometimes the source code file, such as version.go or Bar.pm, is used.
|
|
13
|
+
# If you do not want to use versioning files but only git tags, specify the "-" string here.
|
|
14
|
+
# You can specify multiple version files by comma separated strings.
|
|
15
|
+
#
|
|
16
|
+
# tagpr.vPrefix
|
|
17
|
+
# Flag whether or not v-prefix is added to semver when git tagging. (e.g. v1.2.3 if true)
|
|
18
|
+
# This is only a tagging convention, not how it is described in the version file.
|
|
19
|
+
#
|
|
20
|
+
# tagpr.changelog (Optional)
|
|
21
|
+
# Flag whether or not changelog is added or changed during the release.
|
|
22
|
+
#
|
|
23
|
+
# tagpr.command (Optional)
|
|
24
|
+
# Command to change files just before release.
|
|
25
|
+
#
|
|
26
|
+
# tagpr.tmplate (Optional)
|
|
27
|
+
# Pull request template in go template format
|
|
28
|
+
#
|
|
29
|
+
# tagpr.release (Optional)
|
|
30
|
+
# GitHub Release creation behavior after tagging [true, draft, false]
|
|
31
|
+
# If this value is not set, the release is to be created.
|
|
32
|
+
[tagpr]
|
|
33
|
+
vPrefix = true
|
|
34
|
+
releaseBranch = main
|
|
35
|
+
versionFile = lib/awspec/version.rb
|
|
36
|
+
majorLabels = "tagpr:major"
|
|
37
|
+
minorLabels = "tagpr:minor"
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [v1.35.0](https://github.com/k1LoW/awspec/compare/v1.34.0...v1.35.0) - 2025-11-10
|
|
4
|
+
- Improve backup plan rules output by @endemics in https://github.com/k1LoW/awspec/pull/611
|
|
5
|
+
- Add missing details for IAM roles and policies by @endemics in https://github.com/k1LoW/awspec/pull/609
|
|
6
|
+
- chore: remove ERB trim fix warnings by @endemics in https://github.com/k1LoW/awspec/pull/610
|
|
7
|
+
- chore: setup tagpr labels by @k1LoW in https://github.com/k1LoW/awspec/pull/608
|
|
8
|
+
|
|
9
|
+
## [v1.34.0](https://github.com/k1LoW/awspec/compare/v1.33.0...v1.34.0) - 2025-10-18
|
|
10
|
+
- Add support for aws backup rules (under backup plan) by @endemics in https://github.com/k1LoW/awspec/pull/605
|
|
11
|
+
- feat: setup tagpr by @k1LoW in https://github.com/k1LoW/awspec/pull/606
|
|
12
|
+
|
|
13
|
+
## [v1.33.0](https://github.com/k1LoW/awspec/compare/v1.32.0...v1.33.0) - 2025-08-10
|
|
14
|
+
- Add wafv2_web_acl resource by @alpineriveredge in https://github.com/k1LoW/awspec/pull/600
|
|
15
|
+
- Add type backup (new PR - no copyright headers) by @endemics in https://github.com/k1LoW/awspec/pull/601
|
|
16
|
+
- Add tag support for DB and Global clusters by @alpineriveredge in https://github.com/k1LoW/awspec/pull/603
|
|
17
|
+
- Make transfer_server searchable by name by @alpineriveredge in https://github.com/k1LoW/awspec/pull/604
|
|
18
|
+
|
|
19
|
+
## [v1.32.0](https://github.com/k1LoW/awspec/compare/v1.31.0...v1.32.0) - 2025-01-28
|
|
20
|
+
- Add codepipeline resource by @alpineriveredge in https://github.com/k1LoW/awspec/pull/592
|
|
21
|
+
- Add wafv2_ip_set resource by @alpineriveredge in https://github.com/k1LoW/awspec/pull/597
|
|
22
|
+
- Fix find vpc_endpoint by Name by @alpineriveredge in https://github.com/k1LoW/awspec/pull/598
|
|
23
|
+
|
|
24
|
+
## [v1.31.0](https://github.com/k1LoW/awspec/compare/v1.30.0...v1.31.0) - 2025-01-22
|
|
25
|
+
- Enhance codebuild resource by @alpineriveredge in https://github.com/k1LoW/awspec/pull/591
|
|
26
|
+
- fix: Drop support for Ruby 2.x by @k1LoW in https://github.com/k1LoW/awspec/pull/596
|
|
27
|
+
- Fix finding Gateway VPC Endpoints by id by @alexjfisher in https://github.com/k1LoW/awspec/pull/595
|
|
28
|
+
|
|
29
|
+
## [v1.30.0](https://github.com/k1LoW/awspec/compare/v1.29.3...v1.30.0) - 2024-04-16
|
|
30
|
+
- Make `transit_gateway` `have_attachment` work with names by @alexjfisher in https://github.com/k1LoW/awspec/pull/586
|
|
31
|
+
- Add managed_prefix_list resource by @alpineriveredge in https://github.com/k1LoW/awspec/pull/587
|
|
32
|
+
|
|
33
|
+
## [v1.29.3](https://github.com/k1LoW/awspec/compare/v1.29.2...v1.29.3) - 2024-01-04
|
|
34
|
+
- Added pagination support to ssm_parameter by @anjo-swe in https://github.com/k1LoW/awspec/pull/583
|
|
35
|
+
|
|
36
|
+
## [v1.29.2](https://github.com/k1LoW/awspec/compare/v1.29.1...v1.29.2) - 2023-04-08
|
|
37
|
+
- Add support for a custom aws endpoint by @sverch in https://github.com/k1LoW/awspec/pull/580
|
|
38
|
+
|
|
39
|
+
## [v1.29.1](https://github.com/k1LoW/awspec/compare/v1.29.0...v1.29.1) - 2023-03-21
|
|
40
|
+
- Make network_interface searchable by name by @alpineriveredge in https://github.com/k1LoW/awspec/pull/582
|
|
41
|
+
|
|
42
|
+
## [v1.29.0](https://github.com/k1LoW/awspec/compare/v1.28.2...v1.29.0) - 2023-03-18
|
|
43
|
+
- Make 'nat_gateway have_eip' searchable by name by @alpineriveredge in https://github.com/k1LoW/awspec/pull/576
|
|
44
|
+
- Fix ECR Repository document by @alpineriveredge in https://github.com/k1LoW/awspec/pull/577
|
|
45
|
+
- Add policy_document to IAM Policy by @alpineriveredge in https://github.com/k1LoW/awspec/pull/578
|
|
46
|
+
- Fix ALB & NLB have_subnet by @alpineriveredge in https://github.com/k1LoW/awspec/pull/579
|
|
47
|
+
- [BREAKING] Drop 2.1 2.2 from supported Ruby versions / Add 3.2 by @k1LoW in https://github.com/k1LoW/awspec/pull/581
|
|
48
|
+
- Update doc for ecs_service for using non-default cluster by @jedipunkz in https://github.com/k1LoW/awspec/pull/508
|
|
49
|
+
|
|
50
|
+
## [v1.28.2](https://github.com/k1LoW/awspec/compare/v1.28.1...v1.28.2) - 2022-10-24
|
|
51
|
+
- Add vpc_endpoints attributes by @alpineriveredge in https://github.com/k1LoW/awspec/pull/571
|
|
52
|
+
- Add Elastic IP attributes by @alpineriveredge in https://github.com/k1LoW/awspec/pull/572
|
|
53
|
+
- s3_bucket - fixed documentation for prefix in have_lifecycle_rule by @anjo-swe in https://github.com/k1LoW/awspec/pull/573
|
|
54
|
+
- Make 'vpc_endponts have_subnet' testable by name by @alpineriveredge in https://github.com/k1LoW/awspec/pull/574
|
|
55
|
+
- Make vpn_gateway searchable by name by @alpineriveredge in https://github.com/k1LoW/awspec/pull/575
|
|
56
|
+
|
|
57
|
+
## [v1.28.1](https://github.com/k1LoW/awspec/compare/v1.28.0...v1.28.1) - 2022-08-29
|
|
58
|
+
- Fix vpc_endpoints document by @alpineriveredge in https://github.com/k1LoW/awspec/pull/569
|
|
59
|
+
- Allow Tags of CloudFormation Stack by @alpineriveredge in https://github.com/k1LoW/awspec/pull/570
|
|
60
|
+
|
|
61
|
+
## [v1.28.0](https://github.com/k1LoW/awspec/compare/v1.27.1...v1.28.0) - 2022-08-16
|
|
62
|
+
- Add RDS DB Cluster & Global Cluster by @alpineriveredge in https://github.com/k1LoW/awspec/pull/566
|
|
63
|
+
|
|
64
|
+
## [v1.27.1](https://github.com/k1LoW/awspec/compare/v1.27.0...v1.27.1) - 2022-07-18
|
|
65
|
+
- Make eip searchable by name by @alpineriveredge in https://github.com/k1LoW/awspec/pull/565
|
|
66
|
+
|
|
67
|
+
## [v1.27.0](https://github.com/k1LoW/awspec/compare/v1.26.0...v1.27.0) - 2022-07-03
|
|
68
|
+
- Add RDS Proxy by @alpineriveredge in https://github.com/k1LoW/awspec/pull/564
|
|
69
|
+
|
|
70
|
+
## [v1.26.0](https://github.com/k1LoW/awspec/compare/v1.25.2...v1.26.0) - 2022-06-06
|
|
71
|
+
- Use parallel.gem by @k1LoW in https://github.com/k1LoW/awspec/pull/557
|
|
72
|
+
- Add transfer_server type by @andoniaf in https://github.com/k1LoW/awspec/pull/558
|
|
73
|
+
- Make vpc_endpoint searchable by name by @alpineriveredge in https://github.com/k1LoW/awspec/pull/561
|
|
74
|
+
- require octorelease when not CI by @k1LoW in https://github.com/k1LoW/awspec/pull/562
|
|
75
|
+
|
|
76
|
+
## [v1.25.2](https://github.com/k1LoW/awspec/compare/v1.25.1...v1.25.2) - 2022-01-25
|
|
77
|
+
- Support Ruby 3.0.x by @k1LoW in https://github.com/k1LoW/awspec/pull/554
|
|
78
|
+
- Support Ruby 3.1.x by @k1LoW in https://github.com/k1LoW/awspec/pull/555
|
|
79
|
+
- Update rubocop by @k1LoW in https://github.com/k1LoW/awspec/pull/556
|
|
80
|
+
|
|
81
|
+
## [v1.25.1](https://github.com/k1LoW/awspec/compare/v1.25.0...v1.25.1) - 2021-10-08
|
|
82
|
+
- Fix: undefined method `by_cidr' by @k1LoW in https://github.com/k1LoW/awspec/pull/550
|
|
83
|
+
|
|
84
|
+
## [v1.25.0](https://github.com/k1LoW/awspec/compare/v1.24.4...v1.25.0) - 2021-09-04
|
|
85
|
+
- Bugfix/issue 264 by @glasswalk3r in https://github.com/k1LoW/awspec/pull/538
|
|
86
|
+
- Added missing SNS specs by @glasswalk3r in https://github.com/k1LoW/awspec/pull/547
|
|
87
|
+
- Bugfix/issue 527 by @glasswalk3r in https://github.com/k1LoW/awspec/pull/548
|
|
88
|
+
|
|
89
|
+
## [v1.24.4](https://github.com/k1LoW/awspec/compare/v1.24.3...v1.24.4) - 2021-08-09
|
|
90
|
+
- Use GitHub Actions by @k1LoW in https://github.com/k1LoW/awspec/pull/541
|
|
91
|
+
- Update rubocop by @k1LoW in https://github.com/k1LoW/awspec/pull/542
|
|
92
|
+
- refactor: faster EC2 instance search by @glasswalk3r in https://github.com/k1LoW/awspec/pull/535
|
|
93
|
+
- Feature/issue 407 by @glasswalk3r in https://github.com/k1LoW/awspec/pull/543
|
|
94
|
+
- Feature/metric filter pattern support by @JinhuaK in https://github.com/k1LoW/awspec/pull/544
|
|
95
|
+
|
|
96
|
+
## [v1.24.3](https://github.com/k1LoW/awspec/compare/v1.24.2...v1.24.3) - 2021-07-12
|
|
97
|
+
- Added elasticache spec generator by @inokappa in https://github.com/k1LoW/awspec/pull/540
|
|
98
|
+
|
|
99
|
+
## [v1.24.2](https://github.com/k1LoW/awspec/compare/v1.24.1...v1.24.2) - 2021-07-04
|
|
100
|
+
- fix: properly handling EC2 errors by @glasswalk3r in https://github.com/k1LoW/awspec/pull/534
|
|
101
|
+
- Bugfix/issue 325 by @glasswalk3r in https://github.com/k1LoW/awspec/pull/537
|
|
102
|
+
|
|
103
|
+
## [v1.24.1](https://github.com/k1LoW/awspec/compare/v1.24.0...v1.24.1) - 2021-05-08
|
|
104
|
+
- Fixed a bug when a bucket was placed in us-east-1 by @soruma in https://github.com/k1LoW/awspec/pull/533
|
data/doc/resource_types.md
CHANGED
|
@@ -385,6 +385,8 @@ describe backup_plan('my-backup-plan') do
|
|
|
385
385
|
end
|
|
386
386
|
```
|
|
387
387
|
|
|
388
|
+
### have_plan_rule
|
|
389
|
+
|
|
388
390
|
### its(:backup_plan_arn), its(:backup_plan_id), its(:creation_date), its(:deletion_date), its(:version_id), its(:backup_plan_name), its(:creator_request_id), its(:last_execution_date), its(:advanced_backup_settings)
|
|
389
391
|
## <a name="backup_selection">backup_selection</a>
|
|
390
392
|
|
|
@@ -412,7 +414,7 @@ end
|
|
|
412
414
|
```
|
|
413
415
|
|
|
414
416
|
|
|
415
|
-
### its(:backup_vault_name), its(:backup_vault_arn), its(:vault_type), its(:vault_state), its(:creation_date), its(:encryption_key_arn), its(:creator_request_id), its(:number_of_recovery_points), its(:locked), its(:min_retention_days), its(:max_retention_days), its(:lock_date)
|
|
417
|
+
### its(:backup_vault_name), its(:backup_vault_arn), its(:vault_type), its(:vault_state), its(:creation_date), its(:encryption_key_arn), its(:creator_request_id), its(:number_of_recovery_points), its(:locked), its(:min_retention_days), its(:max_retention_days), its(:lock_date), its(:encryption_key_type)
|
|
416
418
|
## <a name="batch_compute_environment">batch_compute_environment</a>
|
|
417
419
|
|
|
418
420
|
BatchComputeEnvironment resource type.
|
|
@@ -940,7 +942,7 @@ describe directconnect_virtual_interface('my-directconnect-virtual-interface') d
|
|
|
940
942
|
end
|
|
941
943
|
```
|
|
942
944
|
|
|
943
|
-
### its(:owner_account), its(:virtual_interface_id), its(:location), its(:connection_id), its(:virtual_interface_type), its(:virtual_interface_name), its(:vlan), its(:asn), its(:amazon_side_asn), its(:auth_key), its(:amazon_address), its(:customer_address), its(:address_family), its(:virtual_interface_state), its(:customer_router_config), its(:mtu), its(:jumbo_frame_capable), its(:virtual_gateway_id), its(:direct_connect_gateway_id), its(:route_filter_prefixes), its(:bgp_peers), its(:region), its(:aws_device_v2), its(:aws_logical_device_id), its(:tags), its(:site_link_enabled)
|
|
945
|
+
### its(:owner_account), its(:virtual_interface_id), its(:location), its(:connection_id), its(:virtual_interface_type), its(:virtual_interface_name), its(:vlan), its(:asn), its(:asn_long), its(:amazon_side_asn), its(:auth_key), its(:amazon_address), its(:customer_address), its(:address_family), its(:virtual_interface_state), its(:customer_router_config), its(:mtu), its(:jumbo_frame_capable), its(:virtual_gateway_id), its(:direct_connect_gateway_id), its(:route_filter_prefixes), its(:bgp_peers), its(:region), its(:aws_device_v2), its(:aws_logical_device_id), its(:tags), its(:site_link_enabled)
|
|
944
946
|
## <a name="dynamodb_table">dynamodb_table</a>
|
|
945
947
|
|
|
946
948
|
DynamodbTable resource type.
|
|
@@ -1036,7 +1038,7 @@ end
|
|
|
1036
1038
|
```
|
|
1037
1039
|
|
|
1038
1040
|
|
|
1039
|
-
### its(:outpost_arn), its(:iops), its(:volume_type), its(:fast_restored), its(:multi_attach_enabled), its(:throughput), its(:sse_type), its(:operator), its(:volume_initialization_rate), its(:volume_id), its(:size), its(:snapshot_id), its(:availability_zone), its(:state), its(:create_time), its(:encrypted), its(:kms_key_id)
|
|
1041
|
+
### its(:availability_zone_id), its(:outpost_arn), its(:source_volume_id), its(:iops), its(:volume_type), its(:fast_restored), its(:multi_attach_enabled), its(:throughput), its(:sse_type), its(:operator), its(:volume_initialization_rate), its(:volume_id), its(:size), its(:snapshot_id), its(:availability_zone), its(:state), its(:create_time), its(:encrypted), its(:kms_key_id)
|
|
1040
1042
|
### :unlock: Advanced use
|
|
1041
1043
|
|
|
1042
1044
|
`ebs` can use `Aws::EC2::Volume` resource (see http://docs.aws.amazon.com/sdkforruby/api/Aws/EC2/Volume.html).
|
|
@@ -1469,7 +1471,7 @@ describe eks('my-eks') do
|
|
|
1469
1471
|
end
|
|
1470
1472
|
```
|
|
1471
1473
|
|
|
1472
|
-
### its(:name), its(:arn), its(:created_at), its(:version), its(:endpoint), its(:role_arn), its(:kubernetes_network_config), its(:logging), its(:identity), its(:status), its(:client_request_token), its(:platform_version), its(:tags), its(:encryption_config), its(:connector_config), its(:id), its(:health), its(:outpost_config), its(:access_config), its(:upgrade_policy), its(:zonal_shift_config), its(:remote_network_config), its(:compute_config), its(:storage_config)
|
|
1474
|
+
### its(:name), its(:arn), its(:created_at), its(:version), its(:endpoint), its(:role_arn), its(:kubernetes_network_config), its(:logging), its(:identity), its(:status), its(:client_request_token), its(:platform_version), its(:tags), its(:encryption_config), its(:connector_config), its(:id), its(:health), its(:outpost_config), its(:access_config), its(:upgrade_policy), its(:zonal_shift_config), its(:remote_network_config), its(:compute_config), its(:storage_config), its(:deletion_protection)
|
|
1473
1475
|
## <a name="eks_nodegroup">eks_nodegroup</a>
|
|
1474
1476
|
|
|
1475
1477
|
EksNodegroup resource type.
|
|
@@ -2282,7 +2284,7 @@ describe kinesis('my-kinesis') do
|
|
|
2282
2284
|
end
|
|
2283
2285
|
```
|
|
2284
2286
|
|
|
2285
|
-
### its(:stream_name), its(:stream_arn), its(:stream_status), its(:stream_mode_details), its(:retention_period_hours), its(:stream_creation_timestamp), its(:encryption_type), its(:key_id), its(:open_shard_count), its(:consumer_count)
|
|
2287
|
+
### its(:stream_name), its(:stream_arn), its(:stream_status), its(:stream_mode_details), its(:retention_period_hours), its(:stream_creation_timestamp), its(:encryption_type), its(:key_id), its(:open_shard_count), its(:consumer_count), its(:warm_throughput), its(:max_record_size_in_ki_b)
|
|
2286
2288
|
## <a name="kms">kms</a>
|
|
2287
2289
|
|
|
2288
2290
|
Kms resource type.
|
|
@@ -2530,7 +2532,7 @@ end
|
|
|
2530
2532
|
```
|
|
2531
2533
|
|
|
2532
2534
|
|
|
2533
|
-
### its(:prefix_list_id), its(:address_family), its(:state), its(:state_message), its(:prefix_list_arn), its(:prefix_list_name), its(:max_entries), its(:version), its(:owner_id)
|
|
2535
|
+
### its(:prefix_list_id), its(:address_family), its(:state), its(:state_message), its(:prefix_list_arn), its(:prefix_list_name), its(:max_entries), its(:version), its(:owner_id), its(:ipam_prefix_list_resolver_target_id), its(:ipam_prefix_list_resolver_sync_enabled)
|
|
2534
2536
|
## <a name="mq">mq</a>
|
|
2535
2537
|
|
|
2536
2538
|
MQ resource type.
|
|
@@ -2793,7 +2795,7 @@ describe network_interface('eni-12ab3cde') do
|
|
|
2793
2795
|
end
|
|
2794
2796
|
```
|
|
2795
2797
|
|
|
2796
|
-
### its(:association), its(:availability_zone), its(:connection_tracking_configuration), its(:description), its(:interface_type), its(:ipv_6_addresses), its(:mac_address), its(:network_interface_id), its(:outpost_arn), its(:owner_id), its(:private_dns_name), its(:public_dns_name), its(:public_ip_dns_name_options), its(:private_ip_address), its(:ipv_4_prefixes), its(:ipv_6_prefixes), its(:requester_id), its(:requester_managed), its(:source_dest_check), its(:status), its(:subnet_id), its(:vpc_id), its(:deny_all_igw_traffic), its(:ipv_6_native), its(:ipv_6_address), its(:operator), its(:associated_subnets)
|
|
2798
|
+
### its(:association), its(:availability_zone), its(:connection_tracking_configuration), its(:description), its(:interface_type), its(:ipv_6_addresses), its(:mac_address), its(:network_interface_id), its(:outpost_arn), its(:owner_id), its(:private_dns_name), its(:public_dns_name), its(:public_ip_dns_name_options), its(:private_ip_address), its(:ipv_4_prefixes), its(:ipv_6_prefixes), its(:requester_id), its(:requester_managed), its(:source_dest_check), its(:status), its(:subnet_id), its(:vpc_id), its(:deny_all_igw_traffic), its(:ipv_6_native), its(:ipv_6_address), its(:operator), its(:associated_subnets), its(:availability_zone_id)
|
|
2797
2799
|
## <a name="nlb">nlb</a>
|
|
2798
2800
|
|
|
2799
2801
|
NLB resource type.
|
|
@@ -3021,7 +3023,7 @@ end
|
|
|
3021
3023
|
```
|
|
3022
3024
|
|
|
3023
3025
|
|
|
3024
|
-
### its(:vpc_id), its(:db_instance_identifier), its(:db_instance_class), its(:engine), its(:db_instance_status), its(:
|
|
3026
|
+
### its(:vpc_id), its(:db_instance_identifier), its(:db_instance_class), its(:engine), its(:db_instance_status), its(:master_username), its(:db_name), its(:endpoint), its(:allocated_storage), its(:instance_create_time), its(:preferred_backup_window), its(:backup_retention_period), its(:db_security_groups), its(:availability_zone), its(:preferred_maintenance_window), its(:pending_modified_values), its(:latest_restorable_time), its(:multi_az), its(:engine_version), its(:auto_minor_version_upgrade), its(:read_replica_source_db_instance_identifier), its(:read_replica_db_instance_identifiers), its(:read_replica_db_cluster_identifiers), its(:replica_mode), its(:license_model), its(:iops), its(:storage_throughput), its(:character_set_name), its(:nchar_character_set_name), its(:secondary_availability_zone), its(:publicly_accessible), its(:status_infos), its(:storage_type), its(:tde_credential_arn), its(:db_instance_port), its(:db_cluster_identifier), its(:storage_encrypted), its(:kms_key_id), its(:dbi_resource_id), its(:ca_certificate_identifier), its(:domain_memberships), its(:copy_tags_to_snapshot), its(:monitoring_interval), its(:enhanced_monitoring_resource_arn), its(:monitoring_role_arn), its(:promotion_tier), its(:db_instance_arn), its(:timezone), its(:iam_database_authentication_enabled), its(:database_insights_mode), its(:performance_insights_enabled), its(:performance_insights_kms_key_id), its(:performance_insights_retention_period), its(:enabled_cloudwatch_logs_exports), its(:processor_features), its(:deletion_protection), its(:associated_roles), its(:listener_endpoint), its(:max_allocated_storage), its(:tag_list), its(:automation_mode), its(:resume_full_automation_mode_time), its(:customer_owned_ip_enabled), its(:network_type), its(:activity_stream_status), its(:activity_stream_kms_key_id), its(:activity_stream_kinesis_stream_name), its(:activity_stream_mode), its(:activity_stream_engine_native_audit_fields_included), its(:aws_backup_recovery_point_arn), its(:db_instance_automated_backups_replications), its(:backup_target), its(:automatic_restart_time), its(:custom_iam_instance_profile), its(:activity_stream_policy_status), its(:certificate_details), its(:db_system_id), its(:master_user_secret), its(:read_replica_source_db_cluster_identifier), its(:percent_progress), its(:multi_tenant), its(:dedicated_log_volume), its(:is_storage_config_upgrade_available), its(:engine_lifecycle_support)
|
|
3025
3027
|
### :unlock: Advanced use
|
|
3026
3028
|
|
|
3027
3029
|
`rds` can use `Aws::RDS::DBInstance` resource (see http://docs.aws.amazon.com/sdkforruby/api/Aws/RDS/DBInstance.html).
|
|
@@ -3103,7 +3105,7 @@ describe rds_db_cluster('my-rds-db-cluster') do
|
|
|
3103
3105
|
end
|
|
3104
3106
|
```
|
|
3105
3107
|
|
|
3106
|
-
### its(:allocated_storage), its(:availability_zones), its(:backup_retention_period), its(:character_set_name), its(:database_name), its(:db_cluster_identifier), its(:db_cluster_parameter_group), its(:db_subnet_group), its(:status), its(:
|
|
3108
|
+
### its(:allocated_storage), its(:availability_zones), its(:backup_retention_period), its(:character_set_name), its(:database_name), its(:db_cluster_identifier), its(:db_cluster_parameter_group), its(:db_subnet_group), its(:status), its(:percent_progress), its(:earliest_restorable_time), its(:endpoint), its(:reader_endpoint), its(:custom_endpoints), its(:multi_az), its(:engine), its(:engine_version), its(:latest_restorable_time), its(:port), its(:master_username), its(:db_cluster_option_group_memberships), its(:preferred_backup_window), its(:preferred_maintenance_window), its(:replication_source_identifier), its(:read_replica_identifiers), its(:status_infos), its(:hosted_zone_id), its(:storage_encrypted), its(:kms_key_id), its(:db_cluster_resource_id), its(:db_cluster_arn), its(:associated_roles), its(:iam_database_authentication_enabled), its(:clone_group_id), its(:cluster_create_time), its(:earliest_backtrack_time), its(:backtrack_window), its(:backtrack_consumed_change_records), its(:enabled_cloudwatch_logs_exports), its(:capacity), its(:pending_modified_values), its(:engine_mode), its(:scaling_configuration_info), its(:rds_custom_cluster_configuration), its(:db_cluster_instance_class), its(:storage_type), its(:iops), its(:storage_throughput), its(:io_optimized_next_allowed_modification_time), its(:publicly_accessible), its(:auto_minor_version_upgrade), its(:deletion_protection), its(:http_endpoint_enabled), its(:activity_stream_mode), its(:activity_stream_status), its(:activity_stream_kms_key_id), its(:activity_stream_kinesis_stream_name), its(:copy_tags_to_snapshot), its(:cross_account_clone), its(:domain_memberships), its(:global_cluster_identifier), its(:global_write_forwarding_status), its(:global_write_forwarding_requested), its(:network_type), its(:automatic_restart_time), its(:serverless_v2_scaling_configuration), its(:serverless_v2_platform_version), its(:monitoring_interval), its(:monitoring_role_arn), its(:database_insights_mode), its(:performance_insights_enabled), its(:performance_insights_kms_key_id), its(:performance_insights_retention_period), its(:db_system_id), its(:master_user_secret), its(:local_write_forwarding_status), its(:aws_backup_recovery_point_arn), its(:limitless_database), its(:cluster_scalability_type), its(:certificate_details), its(:engine_lifecycle_support)
|
|
3107
3109
|
## <a name="rds_db_cluster_parameter_group">rds_db_cluster_parameter_group</a>
|
|
3108
3110
|
|
|
3109
3111
|
RdsDBClusterParameterGroup resource type.
|
|
@@ -3282,7 +3284,7 @@ describe rds_proxy('my-rds-proxy') do
|
|
|
3282
3284
|
end
|
|
3283
3285
|
```
|
|
3284
3286
|
|
|
3285
|
-
### its(:vpc_id), its(:db_proxy_name), its(:db_proxy_arn), its(:status), its(:engine_family), its(:vpc_id), its(:vpc_security_group_ids), its(:vpc_subnet_ids), its(:role_arn), its(:endpoint), its(:require_tls), its(:idle_client_timeout), its(:debug_logging), its(:created_date), its(:updated_date)
|
|
3287
|
+
### its(:vpc_id), its(:db_proxy_name), its(:db_proxy_arn), its(:status), its(:engine_family), its(:vpc_id), its(:vpc_security_group_ids), its(:vpc_subnet_ids), its(:default_auth_scheme), its(:role_arn), its(:endpoint), its(:require_tls), its(:idle_client_timeout), its(:debug_logging), its(:created_date), its(:updated_date), its(:endpoint_network_type), its(:target_connection_network_type)
|
|
3286
3288
|
## <a name="redshift">redshift</a>
|
|
3287
3289
|
|
|
3288
3290
|
Redshift resource type.
|
|
@@ -15,7 +15,7 @@ module Awspec::Generator
|
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
def generate_doc
|
|
18
|
-
@account_spec = ERB.new(account_spec_template,
|
|
18
|
+
@account_spec = ERB.new(account_spec_template, trim_mode: '-').result(binding).gsub(/^\n/, '')
|
|
19
19
|
super
|
|
20
20
|
end
|
|
21
21
|
|
|
@@ -14,8 +14,9 @@ module Awspec::Generator
|
|
|
14
14
|
@describes = []
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
+
# rubocop:disable Layout/LineLength
|
|
17
18
|
def generate_doc
|
|
18
|
-
@account_attribute_spec = ERB.new(account_attribute_spec_template,
|
|
19
|
+
@account_attribute_spec = ERB.new(account_attribute_spec_template, trim_mode: '-').result(binding).gsub(/^\n/, '')
|
|
19
20
|
super
|
|
20
21
|
end
|
|
21
22
|
|
|
@@ -18,7 +18,7 @@ module Awspec::Generator
|
|
|
18
18
|
<%= links.join("\n| ") %>
|
|
19
19
|
|
|
20
20
|
EOF
|
|
21
|
-
doc = ERB.new(header,
|
|
21
|
+
doc = ERB.new(header, trim_mode: '-').result(binding)
|
|
22
22
|
|
|
23
23
|
types.sort.map do |type|
|
|
24
24
|
doc += eval "Awspec::Generator::Doc::Type::#{type.camelize}.new.generate_doc"
|
|
@@ -8,7 +8,7 @@ module Awspec::Generator
|
|
|
8
8
|
certificates = select_all_certificates
|
|
9
9
|
raise 'Not Found Certificates' if certificates.empty?
|
|
10
10
|
|
|
11
|
-
ERB.new(acm_spec_template,
|
|
11
|
+
ERB.new(acm_spec_template, trim_mode: '-').result(binding).chomp
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
def acm_spec_template
|
|
@@ -16,7 +16,7 @@ module Awspec::Generator
|
|
|
16
16
|
albs = select_alb_by_vpc_id(@vpc_id)
|
|
17
17
|
|
|
18
18
|
specs = albs.map do |alb|
|
|
19
|
-
content = ERB.new(alb_spec_template,
|
|
19
|
+
content = ERB.new(alb_spec_template, trim_mode: '-').result(binding).gsub(/^\n/, '')
|
|
20
20
|
end
|
|
21
21
|
specs.join("\n")
|
|
22
22
|
end
|
|
@@ -20,7 +20,7 @@ module Awspec::Generator
|
|
|
20
20
|
alb_listeners.map do |listener|
|
|
21
21
|
rules = select_rule_by_alb_listener_id(listener.listener_arn).map(&:to_h)
|
|
22
22
|
rules.map do |rule|
|
|
23
|
-
content = ERB.new(alb_listener_spec_template,
|
|
23
|
+
content = ERB.new(alb_listener_spec_template, trim_mode: '-').result(binding).gsub(/^\n/, '')
|
|
24
24
|
end
|
|
25
25
|
end
|
|
26
26
|
end
|
|
@@ -17,7 +17,7 @@ module Awspec::Generator
|
|
|
17
17
|
@vpc_tag_name = vpc.tag_name
|
|
18
18
|
autoscaling_groups = select_autoscaling_group_by_vpc_id(@vpc_id)
|
|
19
19
|
specs = autoscaling_groups.map do |autoscaling_group|
|
|
20
|
-
content = ERB.new(autoscaling_group_spec_template,
|
|
20
|
+
content = ERB.new(autoscaling_group_spec_template, trim_mode: '-').result(binding).gsub(/^\n/, '')
|
|
21
21
|
end
|
|
22
22
|
specs.join("\n")
|
|
23
23
|
end
|
|
@@ -8,7 +8,7 @@ module Awspec::Generator
|
|
|
8
8
|
alarms = select_all_cloudwatch_alarms
|
|
9
9
|
raise 'Not Found alarm' if alarms.empty?
|
|
10
10
|
|
|
11
|
-
ERB.new(alarm_spec_template,
|
|
11
|
+
ERB.new(alarm_spec_template, trim_mode: '-').result(binding).chomp
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
def alarm_spec_template
|
|
@@ -8,7 +8,7 @@ module Awspec::Generator
|
|
|
8
8
|
events = select_all_cloudwatch_events
|
|
9
9
|
raise 'Not Found event' if events.empty?
|
|
10
10
|
|
|
11
|
-
ERB.new(event_spec_template,
|
|
11
|
+
ERB.new(event_spec_template, trim_mode: '-').result(binding).chomp
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
def event_spec_template
|
|
@@ -12,7 +12,7 @@ module Awspec::Generator
|
|
|
12
12
|
log_stream_line = generate_log_stream_spec(log_group.log_group_name)
|
|
13
13
|
metric_filter_lines = generate_log_metric_filters_specs(log_group.log_group_name)
|
|
14
14
|
subscription_filter_lines = generate_log_subscription_filters_specs(log_group.log_group_name)
|
|
15
|
-
content = ERB.new(cloudwatch_logs_spec_template,
|
|
15
|
+
content = ERB.new(cloudwatch_logs_spec_template, trim_mode: '-').result(binding).gsub(/^\n/, '')
|
|
16
16
|
end
|
|
17
17
|
specs.join("\n")
|
|
18
18
|
end
|
|
@@ -8,7 +8,7 @@ module Awspec::Generator
|
|
|
8
8
|
projects = select_all_codebuild_projects
|
|
9
9
|
raise 'Not Found CodeBuild Project' if projects.empty?
|
|
10
10
|
|
|
11
|
-
ERB.new(codebuild_spec_template,
|
|
11
|
+
ERB.new(codebuild_spec_template, trim_mode: '-').result(binding).chomp
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
def codebuild_spec_template
|
|
@@ -8,7 +8,7 @@ module Awspec::Generator
|
|
|
8
8
|
pipelines = select_all_codepipelines
|
|
9
9
|
raise 'Not Found CodePipeline' if pipelines.empty?
|
|
10
10
|
|
|
11
|
-
ERB.new(codepipeline_spec_template,
|
|
11
|
+
ERB.new(codepipeline_spec_template, trim_mode: '-').result(binding).chomp
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
def codepipeline_spec_template
|
|
@@ -12,7 +12,7 @@ module Awspec::Generator
|
|
|
12
12
|
virtual_interfaces = select_virtual_interfaces
|
|
13
13
|
raise 'Not Found virtual_interfaces' if virtual_interfaces.empty?
|
|
14
14
|
|
|
15
|
-
ERB.new(virtual_interface_spec_template,
|
|
15
|
+
ERB.new(virtual_interface_spec_template, trim_mode: '-').result(binding).chomp
|
|
16
16
|
end
|
|
17
17
|
|
|
18
18
|
def virtual_interface_spec_template
|
|
@@ -10,7 +10,7 @@ module Awspec::Generator
|
|
|
10
10
|
|
|
11
11
|
specs = volumes.map do |volume|
|
|
12
12
|
attachment_specs = generate_attachment_specs(volume)
|
|
13
|
-
content = ERB.new(ebs_spec_template,
|
|
13
|
+
content = ERB.new(ebs_spec_template, trim_mode: '-').result(binding).gsub(/^\n/, '')
|
|
14
14
|
end
|
|
15
15
|
specs.join("\n")
|
|
16
16
|
end
|
|
@@ -19,7 +19,7 @@ module Awspec::Generator
|
|
|
19
19
|
linespecs = []
|
|
20
20
|
volume.attachments.each do |attachment|
|
|
21
21
|
instance = find_ec2(attachment.instance_id)
|
|
22
|
-
linespecs.push(ERB.new(attachment_linetemplate,
|
|
22
|
+
linespecs.push(ERB.new(attachment_linetemplate, trim_mode: '-').result(binding)) if attachment.instance_id
|
|
23
23
|
end
|
|
24
24
|
linespecs
|
|
25
25
|
end
|
|
@@ -23,7 +23,7 @@ module Awspec::Generator
|
|
|
23
23
|
volumes = select_ebs_by_instance_id(instance_id)
|
|
24
24
|
network_interfaces = select_network_interface_by_instance_id(instance_id)
|
|
25
25
|
credit_specification = find_ec2_credit_specifications(instance_id)
|
|
26
|
-
content = ERB.new(ec2_spec_template,
|
|
26
|
+
content = ERB.new(ec2_spec_template, trim_mode: '-').result(binding).gsub(/^\n/, '')
|
|
27
27
|
end
|
|
28
28
|
specs.join("\n")
|
|
29
29
|
end
|
|
@@ -10,7 +10,7 @@ module Awspec::Generator
|
|
|
10
10
|
|
|
11
11
|
specs = file_systems.map do |file_system|
|
|
12
12
|
file_system.name = get_name_by_id(file_system.file_system_id)
|
|
13
|
-
content = ERB.new(file_system_spec_template,
|
|
13
|
+
content = ERB.new(file_system_spec_template, trim_mode: '-').result(binding).gsub(/^\n/, '')
|
|
14
14
|
end
|
|
15
15
|
specs.join("\n")
|
|
16
16
|
end
|
|
@@ -13,7 +13,7 @@ module Awspec::Generator
|
|
|
13
13
|
eips = select_all_addresses
|
|
14
14
|
raise 'Not Found Elastic IP addresses.' if eips.empty?
|
|
15
15
|
|
|
16
|
-
ERB.new(eip_spec_template,
|
|
16
|
+
ERB.new(eip_spec_template, trim_mode: '-').result(binding).chomp
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
def eip_spec_template
|
|
@@ -16,7 +16,7 @@ module Awspec::Generator
|
|
|
16
16
|
end
|
|
17
17
|
raise 'Not Found Cache Clusters' if clusters.empty?
|
|
18
18
|
|
|
19
|
-
ERB.new(cache_clusters_spec_template,
|
|
19
|
+
ERB.new(cache_clusters_spec_template, trim_mode: '-').result(binding).gsub(/^\n/, '')
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
def cache_clusters_spec_template
|
|
@@ -8,7 +8,7 @@ module Awspec::Generator
|
|
|
8
8
|
domains = select_all_elasticsearch_domains
|
|
9
9
|
raise 'Not Found Domain' if domains.empty?
|
|
10
10
|
|
|
11
|
-
ERB.new(domain_spec_template,
|
|
11
|
+
ERB.new(domain_spec_template, trim_mode: '-').result(binding).gsub(/^\n/, '')
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
def domain_spec_template
|
|
@@ -20,7 +20,7 @@ module Awspec::Generator
|
|
|
20
20
|
lbs = select_elb_by_vpc_id(@vpc_id)
|
|
21
21
|
|
|
22
22
|
specs = lbs.map do |lb|
|
|
23
|
-
content = ERB.new(elb_spec_template,
|
|
23
|
+
content = ERB.new(elb_spec_template, trim_mode: '-').result(binding).gsub(/^\n/, '')
|
|
24
24
|
end
|
|
25
25
|
specs.join("\n")
|
|
26
26
|
end
|