Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(deploy): terraform backend - remote vs local #35

Closed
julie-ng opened this issue Sep 20, 2021 · 1 comment
Closed

docs(deploy): terraform backend - remote vs local #35

julie-ng opened this issue Sep 20, 2021 · 1 comment
Labels
documentation Improvements or additions to documentation terraform

Comments

@julie-ng
Copy link
Collaborator

julie-ng commented Sep 20, 2021

Desired/Expected Functionality

Users who want to try this out should be able to run simple 3 command terraform init, plan and apply without having to create remote backend (Blob Storage) for Terraform state.

Problem

If you clone this repo and try to run it locally, Terraform will require that you create a remote backend because this repo uses a remote backend, see provider.tf

terraform {
  backend "azurerm" {}
  …
}

Currently the deploy docs say to use -backend=false flag, but it does not work for if it hasn't been initialised before. See https://www.terraform.io/docs/cli/commands/init.html

To skip backend configuration, use -backend=false. Note that some other init steps require an initialized backend, so it is recommended to use this flag only when the working directory was already previously initialized for a particular backend.

@julie-ng
Copy link
Collaborator Author

Solution?

Not sure. For now, updating docs to clarify would also be good.

@julie-ng julie-ng added terraform documentation Improvements or additions to documentation labels Nov 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation terraform
Projects
None yet
Development

No branches or pull requests

1 participant