mckayjuk / deploy-terraform Goto Github PK
View Code? Open in Web Editor NEWTerraform and Ansible Testing Repository
Terraform and Ansible Testing Repository
I should be able to run this script from both Linux and Windows machines without changing the source.
This includes pem files for server to server ssh keys and the path to aws credentials among others.
Currently using existing security group which was not built by Terraform. Therefore not meeting the basic IaC principle.
This should be 2 with autoscaling.
To prevent secrets being stored in code, they are currently hosted localy on Developer machines. This is problematic and a parameter store should be used. AWS or Hashicorp both have options.
Each time I run my plan, my existing servers are destroyed and new ones built. Looking through the log a number of entries have 'forces new resource' next to them... listed below
-/+ aws_instance.Web[0] (new resource required)
id: "i-0b5e13fdd020b0917" => (forces new resource)
security_groups.#: "0" => "1" (forces new resource)
security_groups.3026238325: "" => "sg-a7ec92df" (forces new resource)
Create a hosted zone for .dev.j2k2lab.co.uk
Currently I am using the subnets I created manually. These need to change to comply with the IaC policy.
Currently using a manually created VPC
Uploading tfstate to git causes an number of issues if muliple changes are applied by different people.
TFState holds sensitive information. Change the Access keys. See Issue 4 regarding storing testate in encrypted S3 bucket.
I'd expect the Bastion server to be more persistent than the web servers. Also, the basis of the scripts should be to decouple tiers of the environment.
Terraform should specify the correct subnets to deploy servers into. Currently it is using default which is not what I require.
Internet gateway required for public subnets
variable.tf has subnets listed in order servers should be deployed. I am not currently able to build more servers than their are subnets listed.
The deploy script create 2 web servers, but no load balancer. This should be added.
As new servers are built the Bastion server should be able to logon. Create a Terraform Provisioner to add public key to authorized key on all new servers.
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.