class GeoEngineer::Resources::AwsSqsQueue

AwsSqsQueue is the aws_sqs_queue terrform resource,

{www.terraform.io/docs/providers/aws/r/sqs_queue.html Terraform Docs}

Public Class Methods

_fetch_remote_resources(provider) click to toggle source
# File lib/geoengineer/resources/aws_sqs_queue.rb, line 28
def self._fetch_remote_resources(provider)
  AwsClients.sqs(provider).list_queues['queue_urls'].map do |queue|
    {
      _terraform_id: queue,
      _geo_id: queue,
      name: URI.parse(queue).path.split('/').last
    }
  end
end

Public Instance Methods

support_tags?() click to toggle source
# File lib/geoengineer/resources/aws_sqs_queue.rb, line 24
def support_tags?
  false
end
to_terraform_state() click to toggle source

The loadbalancer and the instance ports are necessary in the terraform state for the policy

# File lib/geoengineer/resources/aws_sqs_queue.rb, line 16
def to_terraform_state
  tfstate = super
  tfstate[:primary][:attributes] = {
    'name' => name
  }
  tfstate
end