awspec 0.81.0 → 0.81.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5625d806b4bd3a01b32955ad8b99b0cb4635b837
4
- data.tar.gz: 60d454a8d4308daadf5e6cc8537ffc7d9a472672
3
+ metadata.gz: 56466cd39f5a8aefbc705c2cb8b5352ae18c9691
4
+ data.tar.gz: 6a6fb6651bd61ca56c0e2acfddcd4471bd202a29
5
5
  SHA512:
6
- metadata.gz: 18a8f0a1717b80acd561d5873820d0a11900ea935bd5d9f28e31e4f0c919d8df7f8d505f58fc14262fc937194fd4a73ffb7b549c73d7e8e3d21075000d2550ce
7
- data.tar.gz: af9ad1646190d10353c083ae3df1651d751cd875611dd631eb3b7193b8eff70763703173dc282378489d392de4cd1fd1157b4ed24b0b3592cd72c2677fdac7dc
6
+ metadata.gz: e9f23efd10847ac1542b8daef0ed0fd14950fd8f2744a1ca347b17fe1fba99214bf6332e9093388f409ba4fc4b6c8094965b59eba73ce259ab55f1f0a5703040
7
+ data.tar.gz: 4927d95c31066bca4d88984f8c48dc6a34a9070fa52caddaa92f6373c39611d4b9318434412053e8d2b5c8dce7b60e53354139ef991b6b0ef8deea67efa51c93
data/Rakefile CHANGED
@@ -1,6 +1,8 @@
1
1
  require 'bundler/gem_tasks'
2
2
 
3
3
  begin
4
+ require 'rspec'
5
+ require 'rspec/core'
4
6
  require 'rspec/core/rake_task'
5
7
  require 'octorelease'
6
8
  require 'rubocop/rake_task'
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.required_ruby_version = '>= 2.1'
23
23
  spec.add_runtime_dependency 'rspec', '~> 3.0'
24
24
  spec.add_runtime_dependency 'rspec-its'
25
- spec.add_runtime_dependency 'aws-sdk', '>= 2.2', '< 2.9'
25
+ spec.add_runtime_dependency 'aws-sdk', '>= 2.2', '< 2.10'
26
26
  spec.add_runtime_dependency 'awsecrets', '~> 1.11'
27
27
  spec.add_runtime_dependency 'thor'
28
28
  spec.add_runtime_dependency 'activesupport', '~> 4.0'
@@ -321,7 +321,7 @@ describe cloudwatch_alarm('my-cloudwatch-alarm') do
321
321
  end
322
322
  ```
323
323
 
324
- ### its(:alarm_name), its(:alarm_arn), its(:alarm_description), its(:alarm_configuration_updated_timestamp), its(:actions_enabled), its(:ok_actions), its(:alarm_actions), its(:insufficient_data_actions), its(:state_value), its(:state_reason), its(:state_reason_data), its(:state_updated_timestamp), its(:metric_name), its(:namespace), its(:statistic), its(:extended_statistic), its(:period), its(:unit), its(:evaluation_periods), its(:threshold), its(:comparison_operator)
324
+ ### its(:alarm_name), its(:alarm_arn), its(:alarm_description), its(:alarm_configuration_updated_timestamp), its(:actions_enabled), its(:ok_actions), its(:alarm_actions), its(:insufficient_data_actions), its(:state_value), its(:state_reason), its(:state_reason_data), its(:state_updated_timestamp), its(:metric_name), its(:namespace), its(:statistic), its(:extended_statistic), its(:period), its(:unit), its(:evaluation_periods), its(:threshold), its(:comparison_operator), its(:treat_missing_data), its(:evaluate_low_sample_count_percentile)
325
325
  ## <a name="cloudwatch_event">cloudwatch_event</a>
326
326
 
327
327
  CloudwatchEvent resource type.
@@ -801,7 +801,7 @@ end
801
801
  ```
802
802
 
803
803
 
804
- ### its(:container_instance_arn), its(:ec2_instance_id), its(:version), its(:version_info), its(:status), its(:agent_connected), its(:running_tasks_count), its(:pending_tasks_count), its(:agent_update_status), its(:attributes)
804
+ ### its(:container_instance_arn), its(:ec2_instance_id), its(:version), its(:version_info), its(:status), its(:agent_connected), its(:running_tasks_count), its(:pending_tasks_count), its(:agent_update_status), its(:attributes), its(:registered_at)
805
805
  ## <a name="ecs_service">ecs_service</a>
806
806
 
807
807
  ECS Service resource type.
@@ -1294,7 +1294,7 @@ end
1294
1294
  ```
1295
1295
 
1296
1296
 
1297
- ### its(:path), its(:role_name), its(:role_id), its(:arn), its(:create_date), its(:assume_role_policy_document)
1297
+ ### its(:path), its(:role_name), its(:role_id), its(:arn), its(:create_date), its(:assume_role_policy_document), its(:description)
1298
1298
  ### :unlock: Advanced use
1299
1299
 
1300
1300
  `iam_role` can use `Aws::IAM::Role` resource (see http://docs.aws.amazon.com/sdkforruby/api/Aws/IAM/Role.html).
@@ -1536,7 +1536,7 @@ end
1536
1536
 
1537
1537
  This matcher does not support Amazon S3 event sources. ( [See SDK doc](http://docs.aws.amazon.com/sdkforruby/api/Aws/Lambda/Client.html#list_event_source_mappings-instance_method) )
1538
1538
 
1539
- ### its(:function_name), its(:function_arn), its(:runtime), its(:role), its(:handler), its(:code_size), its(:description), its(:timeout), its(:memory_size), its(:last_modified), its(:code_sha_256), its(:version), its(:vpc_config), its(:dead_letter_config), its(:environment), its(:kms_key_arn)
1539
+ ### its(:function_name), its(:function_arn), its(:runtime), its(:role), its(:handler), its(:code_size), its(:description), its(:timeout), its(:memory_size), its(:last_modified), its(:code_sha_256), its(:version), its(:vpc_config), its(:dead_letter_config), its(:environment), its(:kms_key_arn), its(:tracing_config)
1540
1540
  ## <a name="launch_configuration">launch_configuration</a>
1541
1541
 
1542
1542
  LaunchConfiguration resource type.
@@ -1840,7 +1840,7 @@ end
1840
1840
  ```
1841
1841
 
1842
1842
 
1843
- ### 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(:license_model), its(:iops), its(: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)
1843
+ ### 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(:license_model), its(:iops), its(: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)
1844
1844
  ### :unlock: Advanced use
1845
1845
 
1846
1846
  `rds` can use `Aws::RDS::DBInstance` resource (see http://docs.aws.amazon.com/sdkforruby/api/Aws/RDS/DBInstance.html).
@@ -32,8 +32,18 @@ Aws.config[:autoscaling] = {
32
32
  created_time: Time.local(2015),
33
33
  tags: [
34
34
  {
35
- key: 'name',
36
- value: 'my-autoscaling-group'
35
+ key: 'Dept',
36
+ propagate_at_launch: true,
37
+ resource_id: 'my-auto-scaling-group',
38
+ resource_type: 'auto-scaling-group',
39
+ value: 'Research'
40
+ },
41
+ {
42
+ key: 'Role',
43
+ propagate_at_launch: true,
44
+ resource_id: 'my-auto-scaling-group',
45
+ resource_type: 'auto-scaling-group',
46
+ value: 'WebServer'
37
47
  }
38
48
  ],
39
49
  suspended_processes: [
@@ -43,6 +53,24 @@ Aws.config[:autoscaling] = {
43
53
  ]
44
54
  }
45
55
  ]
56
+ },
57
+ describe_tags: {
58
+ tags: [
59
+ {
60
+ key: 'Dept',
61
+ propagate_at_launch: true,
62
+ resource_id: 'my-auto-scaling-group',
63
+ resource_type: 'auto-scaling-group',
64
+ value: 'Research'
65
+ },
66
+ {
67
+ key: 'Role',
68
+ propagate_at_launch: true,
69
+ resource_id: 'my-auto-scaling-group',
70
+ resource_type: 'auto-scaling-group',
71
+ value: 'WebServer'
72
+ }
73
+ ]
46
74
  }
47
75
  }
48
76
  }
@@ -20,7 +20,7 @@ Aws.config[:elasticloadbalancing] = {
20
20
  healthy_threshold: 2
21
21
  },
22
22
  security_groups: [
23
- 'my-lb-security-group-name'
23
+ 'sg-5a2b3cd4'
24
24
  ],
25
25
  policies: {},
26
26
  source_security_group: {},
@@ -25,7 +25,7 @@ module Awspec::Type
25
25
  end
26
26
  return true if ret
27
27
  sg2 = find_security_group(sg_id)
28
- return true if sg2.tag_name == sg_id || sg2.group_name == sg_id
28
+ return true if sgs.include? sg2.group_id
29
29
  false
30
30
  end
31
31
  end
@@ -34,7 +34,7 @@ module Awspec::Type
34
34
  end
35
35
  return true if ret
36
36
  sg2 = find_security_group(sg_id)
37
- return true if sg2.tag_name == sg_id || sg2.group_name == sg_id
37
+ return true if sgs.include? sg2.group_id
38
38
  false
39
39
  end
40
40
 
@@ -1,3 +1,3 @@
1
1
  module Awspec
2
- VERSION = '0.81.0'
2
+ VERSION = '0.81.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.81.0
4
+ version: 0.81.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - k1LoW
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-19 00:00:00.000000000 Z
11
+ date: 2017-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -47,7 +47,7 @@ dependencies:
47
47
  version: '2.2'
48
48
  - - "<"
49
49
  - !ruby/object:Gem::Version
50
- version: '2.9'
50
+ version: '2.10'
51
51
  type: :runtime
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
@@ -57,7 +57,7 @@ dependencies:
57
57
  version: '2.2'
58
58
  - - "<"
59
59
  - !ruby/object:Gem::Version
60
- version: '2.9'
60
+ version: '2.10'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: awsecrets
63
63
  requirement: !ruby/object:Gem::Requirement