awspec 1.29.1 → 1.29.2

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
  SHA256:
3
- metadata.gz: b6b956ea861790eb6a794fe100119d485438327a0a413933c40937999c1bee16
4
- data.tar.gz: 6ae230e42064a12eabd7d251c1e5eab8f861b7f96f11d402bd0fde40505b0868
3
+ metadata.gz: f9bf27292173e4e600200e1e2da93c24677e233509b1feb4ac2d6209ca203be6
4
+ data.tar.gz: 41672ff537b8faa646ec61fdc7d6dba83dd55f48abf447612d3dc8267467aede
5
5
  SHA512:
6
- metadata.gz: 3ec7cd9517fc020361b2828cecf800009cdefa2f15525244fc9e524083d2ff5a121a8903865f8cb218c9dfe9c2ee7f0fe03c4b03908dcf1768c02fe8abe7e78b
7
- data.tar.gz: 9abfcdc2d0b19552184be2c2fde33d126f8a3f0938bda476c33a29f67540732aaff569032cbc64592d047a38f7831f9d91cffc85c71aee6380bf6e770efc8565
6
+ metadata.gz: 40511260590d969bda70a2d6078cea94bbe09faba04ce7d51834a14894ecccbae0f5120e4047c1f90a56fc9d59fa89f266f83d866d8de7dd4c5271ef9a9d16ad
7
+ data.tar.gz: 1785bf2af76c9c919008a47817c385c177dc2b5f500af635cd19e6f9db7040ea29558801d844e4b53d58b11ab1c596d9403397d4d7d453fa150d1d89ad98ba0e
data/README.md CHANGED
@@ -172,6 +172,26 @@ Awspec.configure do |config|
172
172
  end
173
173
  ```
174
174
 
175
+ ### Advanced Tips: Setting A Custom Endpoint
176
+
177
+ Set the `endpoint` environment variable to tell awspec to use a different
178
+ endpoint to connect to aws. Common use cases are connecting to aws through a
179
+ proxy, using a different service with an aws compatible interface, or
180
+ connecting to a local mock aws environment.
181
+
182
+ For example, first create a resource on a local aws service using the aws cli:
183
+
184
+ ```
185
+ AWS_SECRET_ACCESS_KEY=dummy AWS_ACCESS_KEY_ID=dummy \
186
+ aws --endpoint-url http://localhost:5000 s3 mb s3://my-bucket
187
+ ```
188
+
189
+ Then you can tell awspec to run the test suite using the same custom endpoint:
190
+
191
+ ```
192
+ endpoint=http://localhost:5000 bundle exec rake spec
193
+ ```
194
+
175
195
  ## Support AWS Resources
176
196
 
177
197
  [Resource Types information here](doc/resource_types.md)
@@ -2905,7 +2905,7 @@ end
2905
2905
  ```
2906
2906
 
2907
2907
 
2908
- ### its(:vpc_id), its(:db_instance_identifier), its(:db_instance_class), its(:engine), its(:db_instance_status), its(:automatic_restart_time), 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(: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(: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(:db_instance_automated_backups_replications), its(:customer_owned_ip_enabled), its(:aws_backup_recovery_point_arn), 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(:automation_mode), its(:resume_full_automation_mode_time), its(:custom_iam_instance_profile), its(:backup_target), its(:network_type), its(:activity_stream_policy_status), its(:storage_throughput), its(:db_system_id), its(:master_user_secret), its(:certificate_details)
2908
+ ### its(:vpc_id), its(:db_instance_identifier), its(:db_instance_class), its(:engine), its(:db_instance_status), its(:automatic_restart_time), 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(: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(: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(:db_instance_automated_backups_replications), its(:customer_owned_ip_enabled), its(:aws_backup_recovery_point_arn), 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(:automation_mode), its(:resume_full_automation_mode_time), its(:custom_iam_instance_profile), its(:backup_target), its(:network_type), its(:activity_stream_policy_status), its(:storage_throughput), its(:db_system_id), its(:master_user_secret), its(:certificate_details), its(:read_replica_source_db_cluster_identifier)
2909
2909
  ### :unlock: Advanced use
2910
2910
 
2911
2911
  `rds` can use `Aws::RDS::DBInstance` resource (see http://docs.aws.amazon.com/sdkforruby/api/Aws/RDS/DBInstance.html).
@@ -173,6 +173,13 @@ module Awspec::Helper
173
173
  http_wire_trace: ENV['http_wire_trace'] || false
174
174
  }
175
175
 
176
+ # We have to set this conditionally after defining `CLIENT_OPTIONS`,
177
+ # because setting the `endpoint` argument to `nil` results in an error from
178
+ # the aws sdk.
179
+ if ENV.key?('endpoint')
180
+ CLIENT_OPTIONS[:endpoint] = ENV['endpoint']
181
+ end
182
+
176
183
  check_configuration = ENV['DISABLE_AWS_CLIENT_CHECK'] != 'true' if ENV.key?('DISABLE_AWS_CLIENT_CHECK')
177
184
 
178
185
  # define_method below will "hide" any exception that comes from bad
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Awspec
4
- VERSION = '1.29.1'
4
+ VERSION = '1.29.2'
5
5
  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: 1.29.1
4
+ version: 1.29.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - k1LoW
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-21 00:00:00.000000000 Z
11
+ date: 2023-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable