lib/terraforming/resource/kms_key.rb in terraforming-0.14.0 vs lib/terraforming/resource/kms_key.rb in terraforming-0.15.0
- old
+ new
@@ -52,9 +52,10 @@
.list_keys
.keys
.reject { |key| managed_master_key?(key) }
.map { |key| @client.describe_key(key_id: key.key_id) }
.map(&:key_metadata)
+ .reject { |metadata| metadata.origin == "EXTERNAL" } # external origin key is not supoprted by Terraform
end
def key_policy_of(key)
policies = @client.list_key_policies(key_id: key.key_id).policy_names