You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
shikharkhanna opened this issue
Jul 15, 2020
· 2 comments
Labels
questionA question about existing functionality; most questions are re-routed to discuss.hashicorp.com.staleOld or inactive issues managed by automation, if no further action taken these will get closed.
Created a file on 0.46.0
[terragrunt] [/tmp/build/1cf6b43f/git-repo/peer-connection/infrastructure/environments/test] 2020/07/15 14:52:45 Running command: terraform --version
[terragrunt] 2020/07/15 14:52:45 Reading Terragrunt config file at /tmp/build/1cf6b43f/git-repo/peer-connection/infrastructure/environments/test/.terragrunt
[terragrunt] 2020/07/15 14:52:45 DEPRECATION WARNING: Found deprecated config file format /tmp/build/1cf6b43f/git-repo/peer-connection/infrastructure/environments/test/.terragrunt. This old config format will not be supported in the future. Please move your config files into a terraform.tfvars file.
[terragrunt] [/tmp/build/1cf6b43f/git-repo/peer-connection/infrastructure/environments/test] 2020/07/15 14:52:45 Initializing remote state for the s3 backend
[terragrunt] [/tmp/build/1cf6b43f/git-repo/peer-connection/infrastructure/environments/test] 2020/07/15 14:52:45 Running command: terraform init -backend-config=key=content-test-terraform.tfstate -backend-config=region=eu-west-1 -backend-config=dynamodb_table=my-lock-table -backend-config=encrypt=true -backend-config=bucket=content-peer-terraform-state
Initializing modules...
breathingdust
added
question
A question about existing functionality; most questions are re-routed to discuss.hashicorp.com.
and removed
needs-triage
Waiting for first response or review from a maintainer.
labels
Sep 21, 2021
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.
If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!
github-actionsbot
added
the
stale
Old or inactive issues managed by automation, if no further action taken these will get closed.
label
May 19, 2024
questionA question about existing functionality; most questions are re-routed to discuss.hashicorp.com.staleOld or inactive issues managed by automation, if no further action taken these will get closed.
Terraform CLI and Terraform AWS Provider Version
TERRAFORM_VERSION=0.11.7
TERRAGRUNT_VERSION=0.14.7
Affected Resource(s)
Terraform Configuration Files
Main.tf
provider "aws" {
access_key = "${var.aws_access_key}"
secret_key = "${var.aws_secret_key}"
region = "eu-west-1"
}
terraform {
The configuration for this backend will be filled in by Terragrunt
backend "s3" {
bucket = "content-peer-terraform-state"
key = "content-test-terraform.tfstate"
region = "eu-west-1"
dynamodb_table = "my-lock-table"
encrypt = true
}
}
module "peer_connection" {
source = "../common/peer-connection"
env = "${var.env}"
version = "$Latest"
}
Debug Output
Created a file on 0.46.0
[terragrunt] [/tmp/build/1cf6b43f/git-repo/peer-connection/infrastructure/environments/test] 2020/07/15 14:52:45 Running command: terraform --version
[terragrunt] 2020/07/15 14:52:45 Reading Terragrunt config file at /tmp/build/1cf6b43f/git-repo/peer-connection/infrastructure/environments/test/.terragrunt
[terragrunt] 2020/07/15 14:52:45 DEPRECATION WARNING: Found deprecated config file format /tmp/build/1cf6b43f/git-repo/peer-connection/infrastructure/environments/test/.terragrunt. This old config format will not be supported in the future. Please move your config files into a terraform.tfvars file.
[terragrunt] [/tmp/build/1cf6b43f/git-repo/peer-connection/infrastructure/environments/test] 2020/07/15 14:52:45 Initializing remote state for the s3 backend
[terragrunt] [/tmp/build/1cf6b43f/git-repo/peer-connection/infrastructure/environments/test] 2020/07/15 14:52:45 Running command: terraform init -backend-config=key=content-test-terraform.tfstate -backend-config=region=eu-west-1 -backend-config=dynamodb_table=my-lock-table -backend-config=encrypt=true -backend-config=bucket=content-peer-terraform-state
Initializing modules...
Getting source "../common/peer-connection"
Initializing the backend...
Successfully configured the backend "s3"! Terraform will automatically
use this backend unless the backend configuration changes.
Error: module "peer_connection": missing required argument "version"
[terragrunt] 2020/07/15 14:52:46 Hit multiple errors:
exit status 1
Expected Behavior
should successfully run terragrunt apply
Actual Behavior
terragrunt apply -var-file=./$INFRA_ENV/terraform.tfvars -auto-approve -input=false -lock=false --terragrunt-non-interactive
Steps to Reproduce
Trying to run terragrunt apply in concourse to create some resources in AWS using this pipeline snippet
run:
dir: git-repo/peer-connection
path: bash
args:
- -ec
- |
echo "Created a file on " $(cat ../../infra-version/version)
export TF_VAR_version=$(cat ../../infra-version/version)
cd infrastructure/environments/test
terragrunt apply -var-file=./$INFRA_ENV/terraform.tfvars -auto-approve -input=false -lock=false --terragrunt-non-interactive
References
The text was updated successfully, but these errors were encountered: