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

Actual output names do not match output names in examples #227

Closed
christensen143 opened this issue Jun 16, 2021 · 1 comment · Fixed by #243
Closed

Actual output names do not match output names in examples #227

christensen143 opened this issue Jun 16, 2021 · 1 comment · Fixed by #243

Comments

@christensen143
Copy link

Description

The examples directory contains examples that have an outputs file. In the file for the PostgreSQL example the outputs are named:

# aws_security_group
output "security_group_id" {
  description = "The security group ID of the cluster"
  value       = module.aurora.security_group_id
}

The actual outputs for the module are appended with this_:

# aws_security_group
output "this_security_group_id" {
  description = "The security group ID of the cluster"
  value       = local.rds_security_group_id
}

Either the outputs need to have the this_ removed from the output name or the examples needed to amended to include this_ in the name like:

# aws_security_group
output "security_group_id" {
  description = "The security group ID of the cluster"
  value       = module.aurora.this_security_group_id
}

⚠️ Note

Before you submit an issue, please perform the following first:

  1. Remove the local .terraform directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!): rm -rf .terraform/
  2. Re-initialize the project root to pull down modules: terraform init
  3. Re-attempt your terraform plan or apply and check if the issue still persists

Versions

  • Terraform: 1.0.0
  • Provider(s): aws
  • Module: v5.2.0

Reproduction

Steps to reproduce the behavior:
Clone the examples/postgresql and run this configuration. terraform validate should throw an error saying that an object does not exist.
Change the outputs.tf file to include this_ in the names of the outputs and run it again.

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant