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]: cloudwatch_role_arn is null when importing aws_api_gateway_account #33236

Closed
habuchin opened this issue Aug 30, 2023 · 5 comments · Fixed by #33279
Closed

[Bug]: cloudwatch_role_arn is null when importing aws_api_gateway_account #33236

habuchin opened this issue Aug 30, 2023 · 5 comments · Fixed by #33279
Labels
bug Addresses a defect in current functionality. service/apigateway Issues and PRs that pertain to the apigateway service.
Milestone

Comments

@habuchin
Copy link

habuchin commented Aug 30, 2023

Terraform Core Version

1.5.6

AWS Provider Version

5.14.0

Affected Resource(s)

  • aws_api_gateway_account

Expected Behavior

When terraform import aws_api_gateway_account.this api-gateway-account is executed, the cloudwatch_role_arn should import the actual value.

Actual Behavior

When running terraform import aws_api_gateway_account.this api-gateway-account with cloudwatch_role_arn set on AWS, the value is always null.

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

import {
  to = aws_api_gateway_account.this
  id = "api-gateway-account"
}

Steps to Reproduce

Executing terraform plan -generate-config-out=generated.tf will generate the following resource.

resource "aws_api_gateway_account" "sendgrid_event" {
  cloudwatch_role_arn = null
}

Normally, the configured Role ARN should be specified.

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

https://registry.terraform.io/providers/-/aws/latest/docs/resources/api_gateway_account#cloudwatch_role_arn

Would you like to implement a fix?

None

@habuchin habuchin added the bug Addresses a defect in current functionality. label Aug 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/apigateway Issues and PRs that pertain to the apigateway service. label Aug 30, 2023
@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Aug 30, 2023
@justinretzolk justinretzolk added bug Addresses a defect in current functionality. and removed bug Addresses a defect in current functionality. needs-triage Waiting for first response or review from a maintainer. labels Aug 30, 2023
@DrFaust92
Copy link
Collaborator

taking a look

@DrFaust92
Copy link
Collaborator

able to reproduce and tested a fix, will open a PR shortly

@github-actions
Copy link

github-actions bot commented Sep 8, 2023

This functionality has been released in v5.16.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

github-actions bot commented Oct 8, 2023

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 Oct 8, 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/apigateway Issues and PRs that pertain to the apigateway service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants