class GeoEngineer::Resources::AwsSnsTopic
AwsSnsTopic
is the aws_sns_topic
terrform resource,
{www.terraform.io/docs/providers/aws/r/sns_topic.html Terraform Docs}
Public Class Methods
_fetch_remote_resources(provider)
click to toggle source
# File lib/geoengineer/resources/aws_sns_topic.rb, line 19 def self._fetch_remote_resources(provider) AwsClients.sns(provider).list_topics.topics.map(&:to_h).map do |topic| { _terraform_id: topic[:topic_arn], _geo_id: topic[:topic_arn], name: topic[:topic_arn].split(':').last } end end