Skip to content

harleymckenzie/tf-codepipeline-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hmckenzie.net Terraform Stack

Note: This project was created for the purpose of my own personal portfolio website.

While there are customisable variables, I have set the default and flexibility to match my own personal needs.

Prerequisites

  • S3 Bucket
    • A bucket containing the static web content (I'm personally using Hugo)
    • Another bucket to store the CodePipeline artifacts
  • Your own domain hosted in Route 53
  • A Key Pair in the region this is being deployed in
  • A connection to have been manually created to your repo in CodePipeline

Requirements

Name Version
terraform ~> 1.1.0
aws ~> 3.48.0

Providers

Name Version
aws 3.48.0

Modules

Name Source Version
acm-certificate ./modules/acm-certificate n/a
apache-web-app ./modules/apache-web-app n/a
codepipeline-web-deploy ./modules/codepipeline-web-deploy n/a
route53-dns ./modules/route53-dns n/a
vpc-base ./modules/vpc-base n/a

Resources

Name Type
aws_region.current data source

Inputs

Name Description Type Default Required
apex-domain (optional) The apex domain of the hostname being used for the frontend. This can be left blank if the apex is being used for the frontend. string "" no
codepipeline-bucket Name of the S3 bucket to use for CodePipeline string n/a yes
codestar-connection-arn The ARN of the codestar connection used to connect to the VC (ie GitHub) string n/a yes
env Name of the environment, such as 'live' or 'development' string n/a yes
hostname Hostname to use for the frontend string n/a yes
keypair Name of the key to associate with the web instance string n/a yes
name The name to assign to the environment string n/a yes
permitted_ssh_ips List of IPs to permit SSH access to on the web instances list(string) n/a yes
web-ami AMI to use for the web instance string n/a yes
web-bucket Name of the S3 bucket containing the web content string n/a yes
web-instance-type Instance type to use for the web servers string "t2.micro" no

Outputs

No outputs.

Diagram

hmckenzie-net-cfn-diagram

Author

Harley McKenzie - Creator

About

Terraform configuration for provisioning a deployment pipeline with CodePipeline and the infrastructure required

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors