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

FIX : The aws_db_instance resource in Terraform does not have a name attribute #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

luciano-mori
Copy link

This fixes
image

Issue:

When attempting to access a non-existent property, the following error was encountered:

Error: This object has no argument, nested block, or exported attribute named 'name'.

Cause:

The code was trying to reference an incorrect attribute, name, which does not exist within the object.

Solution:

The correct attribute to use is db_name, which represents the actual name of the database within the RDS instance.

Fix:

The erroneous line has been replaced with the correct attribute reference:

value = aws_db_instance.snyk_db.db_name

This change resolves the error and ensures the correct database name is used.

…ute. You're trying to access a property that doesn't exist, hence the error. "This object has no argument, nested block, or exported attribute named 'name'."

Solution:

You intended to use the db_name attribute, which represents the actual name of the database within the RDS instance.

Fix:

Replace the problematic line with:
value       = aws_db_instance.snyk_db.db_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant