thompsizzle / cloud-infrastructures Goto Github PK
View Code? Open in Web Editor NEWA collection of templates that can be used to create various cloud infrastructures in AWS.
A collection of templates that can be used to create various cloud infrastructures in AWS.
Make template usable for any region within United States:
https://docs.aws.amazon.com/elasticloadbalancing/latest/application/enable-access-logging.html
Replace elb-account-id with the ID of the AWS account for Elastic Load Balancing for your Region.
Add for all 4 regions in US. Something like 'lookup(var.aws_elb_account_id, var.aws_region)'.
README is still using another templates version. Update for new template.
Add monitoring boolean variable option to EC2_hello_world_ASG template. May make infrastructure more expensive.
Add new table row for the S3_hello_world template.
For best practice with websites, we should turn versioning on to keep track of revisions in case we need to revert back for any reason.
Set up bucket to send logs to?
logging_config {
include_cookies = false
bucket = "mylogs.s3.amazonaws.com"
prefix = "myprefix"
}
Create a terraform template that creates S3 bucket for static website, displays Hello World and outputs the S3 static website URL.
Add a cost table that breaks down the cost for the infrastructure in more detail than in root README.
When the index.html is added as an object to the bucket, the static website does not work when visited. Instead, the file must be replaced via the AWS console and then the site will work. Must be something to do with the upload of the index.html using aws_s3_object. Try replacing source with another argument.
In the EC2_hello_world_ASG template, configure the access_logs block within aws_lb. We will need an S3 bucket to be created and then referenced here.
`resource "aws_lb" "test" {
name = "test-lb-tf"
internal = false
load_balancer_type = "application"
security_groups = [aws_security_group.lb_sg.id]
subnets = [for subnet in aws_subnet.public : subnet.id]
enable_deletion_protection = true
access_logs {
bucket = aws_s3_bucket.lb_logs.bucket
prefix = "test-lb"
enabled = true
}
tags = {
Environment = "production"
}
}`
Add new table row for the EC2_hello_world_ASG template.
on output.tf line 2, in output "s3_static_website_endpoint":
2: value = "http://${aws_s3_bucket.bucket_tf.website_endpoint}"
├────────────────
│ aws_s3_bucket.bucket_tf.website_endpoint is null
The expression result is null. Cannot include a null value in a string template.
Update and test for each template available.
Update badge in each README.
Right now, bucket name is hardcoded for the S3_hello_world template. Make this into a variable for users to configure.
Refer to the following bucket policy:
https://docs.aws.amazon.com/AmazonS3/latest/userguide/WebsiteAccessPermissionsReqd.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.