Giter Club home page Giter Club logo

onsdigital.es-algo-poc's Introduction


Setup a private, encrypted and versioned AWS S3 bucket using Terraform

Table of Contents

About The Project

This Terraform project creates a private, versioned and encrypted AWS S3 bucket

At the end of the execution the output displays the S3 bucket's details

Prerequisites

  1. AWS CLI configured with credentials to access AWS S3
  2. Terraform version >=0.12

Usage : Execute the terraform scripts

Execute the terraform scripts as follows:

# Minimal invocation : Uses randomly generated alphanumeric team-name
terraform apply

# Recommended invocation : Uses randomly generated alphanumeric team-name
terraform apply -var "team-name=my-team-name"

The team-name variable is optional, but highly recommended to be set as your team's name. If not supplied a random string is generated and used as the team-name

Caveats/Notes about the upload of objects to S3 bucket

The Terraform scripts will upload the contents of bucket_objects directory:

  1. This upload is recursive
  2. Changes to the content of the files will be propagated to S3
  3. File deletion is NOT propagated, so the Terraform scripts are not meant to be a replacement for AWS CLI's s3 sync

Inputs

Name Description Type Default Required
team-name String used to prefix the S3 bucket. Random value used if not supplied. string "" no

Outputs

Name Description
s3_bucket_arn The ARN of the S3 bucket
s3_bucket_aws_console_link AWS Console link for the S3 bucket
s3_bucket_name The Name of the S3 bucket

License

Copyright (c) 2017 Crown Copyright (Office for National Statistics)

Released under MIT license, see LICENSE for details.

onsdigital.es-algo-poc's People

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.