Giter VIP home page Giter VIP logo

s3-website-hosting-'s Introduction

Amazon S3 website

overview

This module is responsible for creating a website hosted on Amazon S3 with a custom DNS name.

Requirements

Name Version
terraform >= 1.0
aws >= 3.50

Providers

Name Version
aws ~> 3.50

Inputs

Name Description Type Default Required
aws_region Name of AWS region in which you want to create resources string n/a yes
project Name of the project string `` yes
environment Name of the application environment(dev/prod/qa) string n/a yes
username Name of the user who is deploying the resources string n/a yes
versioning Either you want to enable versioning for S3 bucket or not bool false no
acl It defines which AWS accounts or groups are granted access and the type of access string "" no
domain_name The domain name for the website string "" yes
bucket_name The name of the bucket without the www. prefix(normally domain_name) string "" yes
validation_method Give validation method to validate the ssl certificate(DNS or EMAIL) string "" yes

Outputs

Name Description
www_s3_bucket_name Name of the bucket
root_s3_bucket_name Name of the bucket
www_cloudfront_domain_name Domain name of the cloudfront distribution having origin as S3 bucket with www prefix
root_cloudfront_domain_name Domain name of the cloudfront distribution having origin as S3 bucket without any prefix
ssl_certificate_status Status of the ssl certificate
ssl_certificate_arn ARN of the ssl certificate

resource

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_policy

Prerequisites for terratest and HTML report generation

  1. Add values infront of keys in terraform vars.tfvars file

To run terratest

please go through the below steps:

step 1: Terratest uses the Go   testing framework. To use Terratest, you need to install:
            `Go (requires version >=1.13)`

step 2 : To configure dependencies, run:
        cd Test
        go mod init test
        go mod tidy      //Required to download go.mod & go.sum files.//

step 3: To run the tests:
        go test -timeout 30m -v filename_test.go

----------------------OR-------------------------

To run terratest and generate html report

step 1: Create pom.xml file in test folder.

step 2: Install maven

step 3: Run the mvn test command in the test directory. This mvn test command will run the terrtest go file and will generate report in html format.

s3-website-hosting-'s People

Contributors

sahu04 avatar

Watchers

 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.