commit
7f738dc272
|
@ -2,7 +2,7 @@
|
|||
|
||||
This example shows how to launch instances using Auto Scaling Groups.
|
||||
|
||||
This creates a security group, launch configuration, auto scaling group and an ELB. The user data for launch configuration installs nginx and it listnes on port 80.
|
||||
This creates a security group, launch configuration, auto scaling group and an ELB. The user data for launch configuration installs nginx and it listens on port 80.
|
||||
|
||||
The example uses latest Ubuntu AMIs.
|
||||
|
||||
|
@ -14,15 +14,15 @@ Running the example
|
|||
|
||||
For planning phase
|
||||
|
||||
terraform plan -var 'key_name={your_key_name}}'
|
||||
terraform plan -var 'key_name={your_key_name}}'
|
||||
|
||||
For apply phase
|
||||
|
||||
terraform apply -var 'key_name={your_key_name}}'
|
||||
terraform apply -var 'key_name={your_key_name}}'
|
||||
|
||||
Once the stack is created, wait for few minsutes and test the stack by launching a browser with ELB url.
|
||||
Once the stack is created, wait for few minutes and test the stack by launching a browser with ELB url.
|
||||
|
||||
To remove the stack
|
||||
|
||||
terraform apply -var 'key_name={your_key_name}}'
|
||||
terraform destroy -var 'key_name={your_key_name}}'
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# ELB with stickiness Example
|
||||
|
||||
The example launches a web server, installs nginx, creates an ELB for isnatnce. It also creates security groups for elb/instance
|
||||
The example launches a web server, installs nginx, creates an ELB for instance. It also creates security groups for elb/instance
|
||||
|
||||
To run, configure your AWS provider as described in https://www.terraform.io/docs/providers/aws/index.html
|
||||
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
## Creating an RDS instance in AWS
|
||||
|
||||
This example provides sample configuration for creating a mysql or postgres insatnce. For Oracle/SQL Servers, replace default values with appropriate values, they are not included in sample since the number of options are high.
|
||||
This example provides sample configuration for creating a mysql or postgres instance. For Oracle/SQL Servers, replace default values with appropriate values, they are not included in sample since the number of options are high.
|
||||
|
||||
The example creates db subnet groups and a VPC security group as inputs to the instance creation
|
||||
|
||||
For AWS provider, set up your AWS environment as outlined in https://www.terraform.io/docs/providers/aws/index.html
|
||||
|
||||
If you need to use existing security groups and subnets, remove the sg.tf and subnets.tf files and replace the corresponidng sections in main.tf under aws_db_instance
|
||||
If you need to use existing security groups and subnets, remove the sg.tf and subnets.tf files and replace the corresponding sections in main.tf under aws_db_instance
|
||||
|
||||
Pass the password variable through your ENV variable.
|
||||
|
||||
|
|
Loading…
Reference in New Issue