Git Product home page Git Product logo

acp-tf-s3's Introduction

Module usage:

 module "s3" {

    source = "git::https://github.com/UKHomeOffice/acp-tf-s3?ref=master"

    name                 = "fake"
    acl                  = "private"
    environment          = "${var.environment}"
    kms_alias            = "mykey"
    bucket_iam_user      = "fake-s3-bucket-user"
    iam_user_policy_name = "fake-s3-bucket-policy"

 }

Inputs

Name Description Type Default Required
acceleration_status Sets the accelerate configuration of an existing bucket. Can be Enabled or Suspended. string "Suspended" no
acl The access control list assigned to this bucket string "private" no
bucket_iam_user The name of the iam user assigned to the created s3 bucket string n/a yes
cors_allowed_headers Specifies which headers are allowed. list <list> no
cors_allowed_methods Specifies which methods are allowed. Can be GET, PUT, POST, DELETE or HEAD. list <list> no
cors_allowed_origins Specifies which origins are allowed. list <list> no
cors_expose_headers Specifies expose header in the response. list <list> no
cors_max_age_seconds Specifies time in seconds that browser can cache the response for a preflight request. string "3000" no
environment The environment the S3 is running in i.e. dev, prod etc string n/a yes
iam_user_policy_name The policy name of attached to the user string n/a yes
kms_alias The alias name for the kms key used to encrypt and decrypt the created S3 bucket objects string "" no
lifecycle_days_to_expiration Specifies the number of days after object creation when the object expires. string "365" no
lifecycle_days_to_glacier_transition Specifies the number of days after object creation when it will be moved to Glacier storage. string "180" no
lifecycle_days_to_infrequent_storage_transition Specifies the number of days after object creation when it will be moved to standard infrequent access storage. string "60" no
lifecycle_expiration_enabled Specifies expiration lifecycle rule status. string "false" no
lifecycle_expiration_object_prefix Object key prefix identifying one or more objects to which the lifecycle rule applies. string "" no
lifecycle_expiration_object_tags Object tags to filter on for the expire object lifecycle rule. map <map> no
lifecycle_glacier_object_prefix Object key prefix identifying one or more objects to which the lifecycle rule applies. string "" no
lifecycle_glacier_object_tags Object tags to filter on for the transition to glacier lifecycle rule. map <map> no
lifecycle_glacier_transition_enabled Specifies Glacier transition lifecycle rule status. string "false" no
lifecycle_infrequent_storage_object_prefix Object key prefix identifying one or more objects to which the lifecycle rule applies. string "" no
lifecycle_infrequent_storage_object_tags Object tags to filter on for the transition to infrequent storage lifecycle rule. map <map> no
lifecycle_infrequent_storage_transition_enabled Specifies infrequent storage transition lifecycle rule status. string "false" no
log_target_bucket The S3 bucket that access logs should be sent to. string "" no
log_target_prefix The object prefix for access logs string "" no
logging_enabled Specifies whether server access logging is enabled or not. string "false" no
name A descriptive name for the S3 instance string n/a yes
number_of_users The number of user to generate credentials for string "1" no
server_side_encryption_configuration Provides access to override the server side encryption configuration list <list> no
tags A map of tags to add to all resources map <map> no
versioning_enabled If versioning is set for buckets in case of accidental deletion string "false" no
website_error_document The path to the document to return in case of a 4XX error for static website hosting string "error.html" no
website_hosting Specifies if the bucket will be used for static website hosting string "false" no
website_index_document The path of index document when requests are made for static website hosting string "index.html" no
whitelist_ip Whitelisted ip allowed to access the created s3 bucket (note: this allows all by default) list <list> no
whitelist_vpc Whitelisted vpc allowed to access the created s3 bucket list <list> no

Outputs

Name Description
s3_bucket_arn ARN of generated S3 bucket
s3_bucket_id ID of generated S3 bucket
s3_bucket_kms_key KMS Key ID of the generated bucket
s3_bucket_kms_key_arn KMS Key ARN of the generated bucket
s3_bucket_whitelist_arn_kms_key_arn KMS Key ARN of the whitelist ip generated bucket
s3_bucket_whitelist_ip_and_vpc_kms_key KMS Key ID of the whitelist ip and vpc generated bucket
s3_bucket_whitelist_ip_and_vpc_kms_key_arn KMS Key ARN of the whitelist ip and vpc generated bucket
s3_bucket_whitelist_kms_key KMS Key ID of the whitelist ip generated bucket
s3_bucket_whitelist_vpc_arn_kms_key_arn KMS Key ARN of the whitelist vpc generated bucket
s3_bucket_whitelist_vpc_kms_key KMS Key ID of the whitelist vpc generated bucket
s3_bucket_with_logging_arn ARN of generated S3 bucket with server access logging enabled
s3_bucket_with_logging_id ID of generated S3 bucket with server access logging enabled
s3_website_bucket_arn ARN of generated S3 bucket with website hosting enabled
s3_website_bucket_id ID of generated S3 bucket with website hosting enabled

acp-tf-s3's People

Contributors

awkwardben avatar tasharnvb avatar vinn946 avatar kashifsaadat avatar marcinc avatar oyelekci avatar asmith030 avatar gambol99 avatar aibitayo55555 avatar jaykeshur avatar belindac-vd avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.