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

[Bug]: AWS provider issue aws_quicksight_vpc_connection can't process subnet_ids #32322

Closed
CatLava opened this issue Jun 30, 2023 · 8 comments · Fixed by #32413
Closed

[Bug]: AWS provider issue aws_quicksight_vpc_connection can't process subnet_ids #32322

CatLava opened this issue Jun 30, 2023 · 8 comments · Fixed by #32413
Labels
bug Addresses a defect in current functionality. service/quicksight Issues and PRs that pertain to the quicksight service.
Milestone

Comments

@CatLava
Copy link

CatLava commented Jun 30, 2023

Terraform Core Version

v1.5.2

AWS Provider Version

5.6.2

Affected Resource(s)

aws_quicksight_vpc_connection
The subnet_ids field has an issue parsing strings

Expected Behavior

take in a list of strings to indicate subnet ids.

Actual Behavior

I get an errror that this is a provider issue

Relevant Error/Panic Output Snippet

[dev:account/quicksight] Planning failed. Terraform encountered an error while generating this plan.
[dev:account/quicksight]
[dev:account/quicksight] ╷
[dev:account/quicksight] │ Error: Value Conversion Error
[dev:account/quicksight] │
[dev:account/quicksight] │   with aws_quicksight_vpc_connection.quicksight_to_rds,
[dev:account/quicksight] │   on main.tf line 134, in resource "aws_quicksight_vpc_connection" "quicksight_to_rds":
[dev:account/quicksight] │  134: resource "aws_quicksight_vpc_connection" "quicksight_to_rds" {
[dev:account/quicksight] │
[dev:account/quicksight] │ An unexpected error was encountered while verifying an attribute value
[dev:account/quicksight] │ matched its expected type to prevent unexpected behavior or panics. This is
[dev:account/quicksight] │ always an error in the provider. Please report the following to the
[dev:account/quicksight] │ provider developer:
[dev:account/quicksight] │
[dev:account/quicksight] │ Expected type: types.ObjectType["create":basetypes.StringType,
[dev:account/quicksight] │ "delete":basetypes.StringType, "update":basetypes.StringType]
[dev:account/quicksight] │ Value type: types.ObjectType["create":basetypes.StringType,
[dev:account/quicksight] │ "delete":basetypes.StringType, "update":basetypes.StringType]
[dev:account/quicksight] │ Path: timeouts

Terraform Configuration Files

I'm using terragrunt

Steps to Reproduce

Try and create the quicksight resource with any array of strings as subnet ids.

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

@CatLava CatLava added bug Addresses a defect in current functionality. needs-triage Waiting for first response or review from a maintainer. labels Jun 30, 2023
@github-actions
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added the service/quicksight Issues and PRs that pertain to the quicksight service. label Jun 30, 2023
@CatLava
Copy link
Author

CatLava commented Jul 5, 2023

This was not an issue in aws provider version = "5.2.0" -> I found this issue occurs in every version post 5.3 and up until current of 5.6.2

@CatLava CatLava changed the title [Bug]: [Bug]: AWS provider issue aws_quicksight_vpc_connection can't process subnet_ids Jul 6, 2023
@justinretzolk
Copy link
Member

Hey @CatLava 👋 Thank you for taking the time to raise this! So that we have the necessary information in order to look into this, can you supply a sample Terraform configuration that exhibits this behavior, as well as debug logs (redacted as needed)?

@justinretzolk justinretzolk added waiting-response Maintainers are waiting on response from community or contributor. and removed needs-triage Waiting for first response or review from a maintainer. labels Jul 6, 2023
@github-actions github-actions bot removed the waiting-response Maintainers are waiting on response from community or contributor. label Jul 6, 2023
@CatLava
Copy link
Author

CatLava commented Jul 6, 2023

resource "aws_quicksight_vpc_connection" "quicksight_to_rds" {
vpc_connection_id = "rds-account"
name = "rds-account"
role_arn = aws_iam_role.quicksight_vpc_connection_role.arn

security_group_ids = [aws_security_group.quicksight.id]
subnet_ids = data.aws_subnets.private.ids

timeouts {
create = "5m"
}

tags = local.tags
}

I've also plugged in a list of subnet_ids hardcoded ["subnet-1234", "subnet-12345"]
This config deploys great in aws provider 5.2.0 -> does not in any version after.

@CatLava
Copy link
Author

CatLava commented Jul 6, 2023

ahhh double checked after another reference, this is due to the timeouts block not subnets_id. If I remove timeouts, this all deploys fine.

@bflad
Copy link
Contributor

bflad commented Jul 6, 2023

@justinretzolk FYI -- hashicorp/terraform-plugin-framework-timeouts#72

@github-actions
Copy link

This functionality has been released in v5.8.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@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 Aug 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/quicksight Issues and PRs that pertain to the quicksight service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants