/terraform-aws-rds-aurora

Primary LanguageHCLApache License 2.0Apache-2.0

Terraform Amazon Aurora

Authors: David Wright (dwright@hashicorp.com) and Tony Vattahil (tonynv@amazon.com)

To deploy the Terraform Amazon Aurora module, do the following:

  1. Install Terraform. For instructions and a video tutorial, see Install Terraform.
  2. Sign up and log into Terraform Cloud. (There is a free tier available.)
  3. Configure Terraform Cloud API access. Run the following to generate a Terraform Cloud token from the command line interface:
terraform login
Export TERRAFORM_CONFIG
export TERRAFORM_CONFIG="$HOME/.terraform.d/credentials.tfrc.json"
  1. Configure the AWS Command Line Interface (AWS CLI). For more information, see Configuring the AWS CLI.

  2. If you don't have git installed, install git.

  3. Clone this aws-quickstart/terraform-aws-rds_aurora repository using the following command:

    git clone https://github.com/aws-quickstart/terraform-aws-rds_aurora

  4. Change directory to the root repository directory.

    cd terraform-aws-rds_aurora/

  5. Change to the deploy directory.

    • For a new virtual private cloud (VPC), use cd setup_workspace.
    • For an existing VPC, pass the VPC ID directly to the module.
  6. To perform operations locally, do the following:

    a. Initialize the deploy directory. Run terraform init.
    b. Start a Terraform run using the configuration files in your deploy directory. Run terraform apply or terraform apply -var-file="$HOME/.aws/terraform.tfvars".

  7. Change to the deploy directory with cd ../deploy.

  8. Run terraform init.

  9. Run terraform apply or Run terraform apply -var-file="$HOME/.aws/terraform.tfvars". Terraform apply is remotely run in Terraform Cloud.