Sha256: 27b3bae9fbf0838e3f0db025c2f3edb2549337eef5dd1af65dea7845313379cd

Contents?: true

Size: 1.16 KB

Versions: 11

Compression:

Stored size: 1.16 KB

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.tags = {} # can set tags for both s3 bucket and dynamodb table with this config
      c.tag_existing = true

      c.s3 = ActiveSupport::OrderedOptions.new
      c.s3.access_logging = false
      c.s3.block_public_access = true
      c.s3.encryption = true
      c.s3.enforce_ssl = true
      c.s3.lifecycle = true
      c.s3.versioning = 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.s3.tags = {} # cannot assign to c.tags here because it's a copy

      c.dynamodb = ActiveSupport::OrderedOptions.new
      c.dynamodb.encryption = true
      c.dynamodb.kms_master_key_id = nil
      c.dynamodb.sse_type = "KMS"
      c.dynamodb.tags = {} # cannot assign to c.tags here because it's a copy

      c
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
terraspace_plugin_aws-0.6.1 lib/terraspace_plugin_aws/interfaces/config.rb
terraspace_plugin_aws-0.6.0 lib/terraspace_plugin_aws/interfaces/config.rb
terraspace_plugin_aws-0.5.1 lib/terraspace_plugin_aws/interfaces/config.rb
terraspace_plugin_aws-0.5.0 lib/terraspace_plugin_aws/interfaces/config.rb
terraspace_plugin_aws-0.4.2 lib/terraspace_plugin_aws/interfaces/config.rb
terraspace_plugin_aws-0.4.1 lib/terraspace_plugin_aws/interfaces/config.rb
terraspace_plugin_aws-0.4.0 lib/terraspace_plugin_aws/interfaces/config.rb
terraspace_plugin_aws-0.3.8 lib/terraspace_plugin_aws/interfaces/config.rb
terraspace_plugin_aws-0.3.7 lib/terraspace_plugin_aws/interfaces/config.rb
terraspace_plugin_aws-0.3.6 lib/terraspace_plugin_aws/interfaces/config.rb
terraspace_plugin_aws-0.3.5 lib/terraspace_plugin_aws/interfaces/config.rb