Giter Club home page Giter Club logo

terraform-example's Introduction

Example M1 Terraform

Transloadit

Bumping the version of transloadit supports the M1 Mac

hashicorp/template v2.2.0

This version is now deprecated https://registry.terraform.io/providers/hashicorp/template/latest/docs

This also isn't supported on M1 since it is outdated.

│ Provider registry.terraform.io/hashicorp/template v2.2.0 does not have a package available for your current platform,
│ darwin_arm64.

Replaced by: templatefile https://developer.hashicorp.com/terraform/language/functions/templatefile

templatefile is supported on M1 this project is an example of converting a template from template_file to templatefile.

Using template_file example:

data "template_file" "gcf" {
  template = file(local.index_template_path)

  vars = {
    tf_state_database_name = var.client_info.firebase_state_database_name
    tf_node_env            = var.node_env
  }
}

Converted to templatefile

locals {
  user_data = templatefile("example.js", {
    tf_instance_id = "KO0954R8l"
    tf_node_env = "staging"
  })
}

This exmaple will produce a file example-test.js with the templated vars.

terraform-example's People

Contributors

lithid avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.