Difference between revisions of "Terraform.tf"

From wikieduonline
Jump to navigation Jump to search
Line 4: Line 4:
 
* [[Error: Failed to read organization]]
 
* [[Error: Failed to read organization]]
  
 +
<pre>
 +
# Copyright (c) HashiCorp, Inc.
 +
# SPDX-License-Identifier: MPL-2.0
  
 +
terraform {
 +
 +
  cloud {
 +
    workspaces {
 +
      name = "learn-terraform-eks"
 +
    }
 +
  }
 +
 +
  required_providers {
 +
    aws = {
 +
      source  = "hashicorp/aws"
 +
      version = "~> 4.47.0"
 +
    }
 +
 +
    random = {
 +
      source  = "hashicorp/random"
 +
      version = "~> 3.4.3"
 +
    }
 +
 +
    tls = {
 +
      source  = "hashicorp/tls"
 +
      version = "~> 4.0.4"
 +
    }
 +
 +
    cloudinit = {
 +
      source  = "hashicorp/cloudinit"
 +
      version = "~> 2.2.0"
 +
    }
 +
  }
 +
 +
  required_version = "~> 1.3"
 +
}
 +
 +
</pre>
  
  

Revision as of 16:36, 21 March 2023


# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

terraform {

  cloud {
    workspaces {
      name = "learn-terraform-eks"
    }
  }

  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "~> 4.47.0"
    }

    random = {
      source  = "hashicorp/random"
      version = "~> 3.4.3"
    }

    tls = {
      source  = "hashicorp/tls"
      version = "~> 4.0.4"
    }

    cloudinit = {
      source  = "hashicorp/cloudinit"
      version = "~> 2.2.0"
    }
  }

  required_version = "~> 1.3"
}



Terraform, OpenTofu, Terrakube.org, Installation, Terraform AWS, Terraform GCP, Terraform commands, Terraform Cloud, Terraform Enterprise (TFE), HCL, HIL, meta-arguments, providers, modules, resource, provisioners, data sources, backends: remote backends, examples, configuration files, state files, variables, types, Terraform Registry, conditionals: depends_on, functions, Blocks, dynamic blocks, errors, Terragrunt, Terraformer, Terratest, Terraform certifications, Terraform map type, Terraform Associate, Terraform: list type, TF_VAR_, TF_LOG, Terraform provider versioning, Terraform Style Conventions, Required version, Terraform plugin, Terraform Named Values, tags, Changelog, tfsec, tflint, Operators, Expressions: for, splat, Debugging, Namespaces, Terraform Landing Zones, CDKTF, Atmos

Advertising: