Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

...

Amazon Web Services(AWS) is a subsidiary of Amazon that provides on-demand cloud computing platforms and APIs to individuals, companies, and governments, on a metered pay-as-you-go basis.

Configure A Terraform Backend State (AWS)

To provision, your Terraform requires a backend state configured via the HyperCloudâ„¢ Platform(HCP). The backend state in Terraform preserves the current state of the deployment. (Refer Note 1)

You can use the following steps to configure your Terraform Backend State:

  1. Login to HyperCloudTM with your credentials.

  2. Click Service Orchestration > Select AppStore > Click Terraform

  3. Click on Terraform Blueprint to open your Blueprint Azure Postgres (PaaS)

    1. On the Overview page, review details and click Next

    2. On the Workspace page:

      1. Select the Workspace type as New:

        • Enter the name for your new workspace.

        • Enter the brief description for your new workspace.

        • Select the environment type from the drop-down list e.g: Dev.

        • Select the Cloud type from the drop-down list.

        • Select the Resource pool e.g: RP.ARM.Australia Central.atest

        • Select the backend state for your new workspace.

        • To entitled users:

          • Select Only Me: If this template is not meant to be shared.

          • Select Everyone If this template is to be shared with everyone in the.

          • Select Groups & Users: if the template is to be shared with specific users or groups.

        • Click Create Workspace and Validate

      2. Select the workspace type as Existing and Select the existing workspace e.g. hgprodazurewks1 and click Validate

  4. On the Define Variables page, click on the Action button and update the following values:

    • rg_name: "hgprod-tf-rg"

    • pg_name: "hgprod-psqlsrv01"

    • client_startip: "your system's public ip address"

    • client_endip: "your system's public ip address"

  5. Click on Plan

  6. Review the Successful Plan Output.

  7. Click on Apply

  8. Click on the Workspace for e.g hgprodazurewks1

  9. Click on Timeline Tab to monitor the status of the Terraform provisioning.

  10. Once the Terraform template has successfully provisioned, click on the Resource Tab to view the resources created via Terraform template

To create additional templates refer to the Terraform documentation.

Note

  • All values must be enclosed in double-quotes.

  • Terraform Template provides the information regarding, Overlapping the Existing Workspace that may destroy the existing deployment.

  • If this is the first time a Terraform template is being deployed, ensure no resources are updated or deleted.

  • If so verify that this is intentional and then proceed to the next step.