class GeoEngineer::Resources::AwsProxyProtocolPolicy
AwsProxyProtocolPolicy
is the aws_proxy_protocol_policy
terrform resource,
{www.terraform.io/docs/providers/aws/r/proxy_protocol_policy.html Terraform Docs}
Public Class Methods
_fetch_remote_resources(provider)
click to toggle source
This is a weird resource and it is not listed
# File lib/geoengineer/resources/aws_proxy_protocol_policy.rb, line 36 def self._fetch_remote_resources(provider) [] end
Public Instance Methods
short_type()
click to toggle source
# File lib/geoengineer/resources/aws_proxy_protocol_policy.rb, line 31 def short_type "elbppp" end
to_terraform_state()
click to toggle source
The loadbalancer and the instance ports are necessary in the terraform state for the policy
Calls superclass method
GeoEngineer::Resource#to_terraform_state
# File lib/geoengineer/resources/aws_proxy_protocol_policy.rb, line 15 def to_terraform_state tfstate = super tfstate[:primary][:attributes] = { 'load_balancer' => load_balancer._terraform_id, 'instance_ports.#' => instance_ports.length.to_s } instance_ports.each_with_index { |ip, i| tfstate[:primary][:attributes]["instance_ports.#{i}"] = ip } tfstate end