Questions tagged [terraform-cloud]
96 questions
17
votes
6 answers
Terraform cloud failing when referencing module using relative local path
I have a repository with several separate configs which share some modules, and reference those modules using relative paths that look like ../../modules/rabbitmq. The directories are setup like this:
tf/
configs/
thing-1/
thing-2/
…

mltsy
- 6,598
- 3
- 38
- 51
16
votes
3 answers
Can I use Terragrunt on Terraform Cloud
I have a provisioning pipeline that incorporates Terraform Cloud, and our leadership is asking us to use Terragrunt to improve Terraform code quality.
Terragrunt is a great tool for this, but I haven't see any evidence that anyone has successfully…

codeblue0000ff
- 225
- 3
- 9
9
votes
4 answers
Terraform Cloud / Enterprise - How to use AWS Assume Roles
I would like to use AWS Assume Roles, with Terraform Cloud / Enterprise
In Terraform Open Source, you would typically just do an Assume Role, leveraging the .aws/Credential Profile on the CLI, which is the initial authentication, and performing the…

Gvazzana
- 583
- 1
- 8
- 21
5
votes
3 answers
azure cli $Path error running in terraform cloud
Setting up terraform cloud for the first time and getting this error. Not sure why as on my local machine azure CLI is installed and the path is set, but I think has something to do with setting it in the terraform cloud platform.
Error: building…

dcvl
- 485
- 1
- 7
- 21
5
votes
3 answers
How to store GCP Service Account JSON in a terrafrom variable?
My terraform gcp provider config looks like
provider "google" {
project = var.project
region = var.region
credentials = file("account.json")
}
I want to run my terraform file on terraform cloud and I don't want want to put the…

ams
- 60,316
- 68
- 200
- 288
5
votes
2 answers
Terraform cloud : Import existing resource
I am using terraform cloud to manage the state of the infrastructure provisioned in AWS.
I am trying to use terraform import to import an existing resource that is currently not managed by terraform.
I understand terraform import is a local only…

svbask
- 91
- 2
- 6
4
votes
2 answers
Migrate Terraform CLI workspaces to Terraform Cloud error
I am trying to migrate a project's CLI workspaces to Terraform Cloud. I am using Terraform version 0.14.8 and following the official guide here.
$ terraform0.14.8 workspace list
default
* development
production
…

Vag Karv
- 73
- 8
4
votes
2 answers
How do I pass GCP Service Account key.json contents into Terraform Cloud without committing it in VCS?
According to the Google Provider documentation, the service account key should be supplied to Terraform using the environment variable GOOGLE_CLOUD_KEYFILE_JSON. When using Terraform Cloud, this is an issue for me as it means storing the service…

Shawlz
- 538
- 3
- 11
3
votes
1 answer
terraform destroys and recreates cloud run services on every alternating run, for no reason, with no change?
I have some cloud run services with the latest version of terraform (1.3.9) as well as older versions.
It seems that on every alternating run on my cloud run services, terraform will do this:
~ template {
~ metadata {
~…

SebastianG
- 8,563
- 8
- 47
- 111
3
votes
1 answer
Terraform output being flagged as sensitive
We have created some terraform stacks for different domains, like network stack for vpc, rds stack for rds stuff, etc.
And, for instance, the rds stack depends on the network stack to get values from the outputs:
Output from network stack:
output…

Stargazer
- 1,442
- 12
- 19
3
votes
2 answers
GCP deploy error: Creating Revision interrupted
While deploying to GCP using Terraform and in our YAML file we have the following section
# Deploy to Cloud Run
- id: 'deploy'
name: 'gcr.io/cloud-builders/gcloud'
waitFor: ['build-image','push-image']
entrypoint: bash
args:
- '-c'
-…

Adam
- 3,872
- 6
- 36
- 66
3
votes
1 answer
Blocks of type "cloud" are not expected here for integrating with Terraform Cloud
I'm following this documentation in migrating the local state to be integrated with Terraform Cloud.
https://learn.hashicorp.com/tutorials/terraform/cloud-migrate
It is fairly straightforward, I just need to copy this code:
terraform {
…

I Cakramurti
- 139
- 1
- 8
3
votes
2 answers
Problem with Variables working through Cloud tutorial
I’m working through this tutorial and managed to set everything up ok.
https://learn.hashicorp.com/tutorials/terraform/cloud-workspace-configure?in=terraform%2Fcloud-get-started
On queuing the plan i get the following errors back relating to…

John Fox
- 747
- 1
- 13
- 28
3
votes
1 answer
How to send local files using Terraform Cloud as remote backend?
I am creating AWS EC2 instance and I am using Terraform Cloud as backend.
in ./main.tf:
terraform {
required_version = "~> 0.12"
backend "remote" {
hostname = "app.terraform.io"
organization = "organization"
workspaces {…

Kingindanord
- 1,754
- 2
- 19
- 48
3
votes
2 answers
How to share Terraform variables across workpaces/modules?
Terraform Cloud Workspaces allow me to define variables, but I'm unable to find a way to share variables across more than one workspace.
In my example I have, lets say, two workspaces:
Database
Application
In both cases I'll be using the same…

Evandro Pomatti
- 13,341
- 16
- 97
- 165