-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from aws-ia/rebase_pr
Rebase pr
- Loading branch information
Showing
9 changed files
with
458 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,4 +35,7 @@ terraform.rc | |
|
||
.terraform.lock.hcl | ||
|
||
backend.hcl | ||
backend.hcl | ||
|
||
# vscode directory | ||
.vscode/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,33 @@ | ||
> Note: This module is in alpha state and is likely to contain bugs and updates may introduce breaking changes. It is not recommended for production use at this time. | ||
# Terraform Amazon Aurora | ||
Authors: David Wright ([email protected]) and Tony Vattahil ([email protected]) | ||
Terraform module for automating deployment of Amazon Aurora and related resources following AWS best practices. | ||
|
||
## Supported Features | ||
- Aurora Provisioned cluster (MySQL & PostgreSQL) | ||
- Aurora Global databases (MySQL & PostgreSQL) | ||
|
||
## Deployment Procedure | ||
|
||
To deploy the Terraform Amazon Aurora module, do the following: | ||
|
||
1. Install Terraform. For instructions and a video tutorial, see [Install Terraform](https://learn.hashicorp.com/tutorials/terraform/install-cli). | ||
|
||
2. Sign up and log into Terraform Cloud. (There is a free tier available.) | ||
2. Sign up and log into [Terraform Cloud](https://www.terraform.io/cloud) (There is a free tier available). | ||
1. Create a [Terraform organization](https://www.terraform.io/docs/cloud/users-teams-organizations/organizations.html#creating-organizations). | ||
|
||
3. Configure Terraform Cloud API access. Run the following to generate a Terraform Cloud token from the command line interface: | ||
``` | ||
terraform login | ||
3. Configure [Terraform Cloud API access](https://learn.hashicorp.com/tutorials/terraform/cloud-login). Run the following to generate a Terraform Cloud token from the command line interface: | ||
``` | ||
terraform login | ||
--For Mac/Linux | ||
export TERRAFORM_CONFIG="$HOME/.terraform.d/credentials.tfrc.json" | ||
--For Mac/Linux | ||
export TERRAFORM_CONFIG="$HOME/.terraform.d/credentials.tfrc.json" | ||
--For Windows | ||
export TERRAFORM_CONFIG="$HOME/AppData/Roaming/terraform.d/credentials.tfrc.json" | ||
``` | ||
--For Windows | ||
export TERRAFORM_CONFIG="$HOME/AppData/Roaming/terraform.d/credentials.tfrc.json" | ||
``` | ||
|
||
4. Configure the AWS Command Line Interface (AWS CLI). For more information, see [Configuring the AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html). | ||
4. [Install](https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html) and [configure](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html) the AWS Command Line Interface (AWS CLI). | ||
|
||
5. If you don't have git installed, [install git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git). | ||
|
||
|
@@ -32,15 +39,21 @@ export TERRAFORM_CONFIG="$HOME/AppData/Roaming/terraform.d/credentials.tfrc.json | |
|
||
`cd terraform-aws-rds-aurora/` | ||
|
||
8. For setting up a new terraform workspace: | ||
8. Set up a new terraform workspace. | ||
|
||
- `cd setup_workspace` | ||
- `terraform init` | ||
- `terraform apply` | ||
|
||
9. To create new VPC and deploy Aurora module: | ||
``` | ||
cd setup_workspace | ||
terraform init | ||
terraform apply | ||
``` | ||
|
||
9. Deploy Aurora Terraform module. | ||
1. To create VPC and deploy Aurora module | ||
- Change to the deploy directory. Run `cd ../deploy` | ||
- Initialize the deploy directory. Run `terraform init`. | ||
- Start a Terraform run using the configuration files in your deploy directory. Run `terraform apply` or `terraform apply -var-file="$HOME/.aws/terraform.tfvars"` (Note: The deployment is remotely run in Terraform Cloud) | ||
2. To deploy Aurora module into existing VPCs, pass the list of private subnets (var.Private_subnet_ids_p & var.Private_subnet_ids_s) directly to the Aurora module. | ||
|
||
## Authors and Contributors | ||
|
||
For existing VPCs, pass the list of private subnets (var.Private_subnet_ids_p & var.Private_subnet_ids_s) directly to the Aurora module. | ||
David Wright ([email protected]), Tony Vattahil ([email protected]), Arabinda Pani ([email protected]) and [other contributors](https://github.com/aws-ia/terraform-aws-rds-aurora/graphs/contributors). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.