-
Notifications
You must be signed in to change notification settings - Fork 88
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
With 0.3.1, when tearing down the module, getting an error on terraform_iam_policy output #27
Comments
Thank you for the report. Hmm, it couldn't be reproduced on my side. |
The issue arises with using Also, just verified that the problem still exists in 0.4.0 version Here is the one-pager that demonstrates the problem locals {
common_prefix = "test-deploy"
}
terraform {
required_version = ">= 0.12.24"
}
provider "aws" {
version = ">= 2.65.0"
}
provider "aws" {
version = ">= 2.65.0"
alias = "replica"
}
module "remote_state" {
source = "nozaq/remote-state-s3-backend/aws"
version = "0.4.0"
providers = {
aws = aws
aws.replica = aws.replica
}
dynamodb_table_name = "${local.common_prefix}-lock"
noncurrent_version_transitions = []
noncurrent_version_expiration = {
days = 90
}
state_bucket_prefix = "${local.common_prefix}-bucket-"
replica_bucket_prefix = "${local.common_prefix}-replica-"
terraform_iam_policy_name_prefix = "test--state-access-"
}
output "terraform_iam_policy" {
value = module.remote_state.terraform_iam_policy
description = "The IAM Policy to access remote state environment."
} If you comment out the last |
I'm using TF 0.13.4 and also can't reproduce, even when outputting |
Is it not supported configuration? |
I've not double checked the actual code, but the README says:
|
What is the issue with pointing to the same region? I think requiring a replica in a different region is an overkill. |
Perhaps, and it may be unrelated to your issue. I quite like the level of overkill in this module, given it's storing the state. Losing state files keeps me awake at night :) Could you test and see if it does solve your issue? |
Version: 0.3.1
After this change 7290218#diff-c09d00f135e3672d079ff6e0556d957d deletion of the module fails with
Before that change nothing was accessed by index.
Looks like changing output to this fixes the error
The text was updated successfully, but these errors were encountered: