Sha256: 010b79b96f97d13f7b4ea2b858b907f7bbd3b17e2e70e9daf652e951a13c65d9

Contents?: true

Size: 881 Bytes

Versions: 3

Compression:

Stored size: 881 Bytes

Contents

module TerraspacePluginAws::Interfaces
  class Config
    include Terraspace::Plugin::Config::Interface
    include Singleton

    # interface method
    # load_project_config: config/plugins/aws.rb
    def provider
      "aws"
    end

    # interface method
    def defaults
      c = ActiveSupport::OrderedOptions.new

      c.auto_create = true

      c.s3 = ActiveSupport::OrderedOptions.new
      c.s3.encryption = true
      c.s3.enforce_ssl = true
      c.s3.versioning = true
      c.s3.lifecycle = true
      c.s3.access_logging = true
      c.s3.secure_existing = false # run the security controls on existing buckets. by default, only run on newly created bucket the first time

      c.dynamodb = ActiveSupport::OrderedOptions.new
      c.dynamodb.encryption = true
      c.dynamodb.kms_master_key_id = nil
      c.dynamodb.sse_type = "KMS"

      c
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
terraspace_plugin_aws-0.2.1 lib/terraspace_plugin_aws/interfaces/config.rb
terraspace_plugin_aws-0.2.0 lib/terraspace_plugin_aws/interfaces/config.rb
terraspace_plugin_aws-0.1.0 lib/terraspace_plugin_aws/interfaces/config.rb