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_apprunner_service returns empty value for "service_url" #27861

Closed
pabloB2sys opened this issue Nov 17, 2022 · 10 comments · Fixed by #34292
Closed

[Bug]: aws_apprunner_service returns empty value for "service_url" #27861

pabloB2sys opened this issue Nov 17, 2022 · 10 comments · Fixed by #34292
Labels
bug Addresses a defect in current functionality. service/apprunner Issues and PRs that pertain to the apprunner service. upstream Addresses functionality related to the cloud provider.
Milestone

Comments

@pabloB2sys
Copy link

Terraform Core Version

1.1.0

AWS Provider Version

=4.38.0

Affected Resource(s)

aws_apprunner_service

Expected Behavior

service_url is not empty

Actual Behavior

service_url = null

Relevant Error/Panic Output Snippet

aws_apprunner_service.this[0].service_url

Terraform Configuration Files

apprunner-error.zip

Steps to Reproduce

decompress the zip file and run:

terraform apply

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

No response

@pabloB2sys pabloB2sys added bug Addresses a defect in current functionality. needs-triage Waiting for first response or review from a maintainer. labels Nov 17, 2022
@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.

@sgrilux
Copy link

sgrilux commented Nov 23, 2022

It looks the error is not in the aws provider nor in the sdk. It's in AWS api.
Despite what the documentation says, when you call DescribeService it does not return ServiceUrl as it's documented, however it does if you call ListServices.

@pabloB2sys
Copy link
Author

What do you recomend me to do ?
Because I'm working with terraform and the code needs this information as an output.

@sgrilux
Copy link

sgrilux commented Nov 23, 2022

I think this will take time. I am going to raise an issue in the SDK repo hoping this will passed along the teams and fix it.
In the meantime you can probably use a null_resource with local-exec provisioner to call ListService and filtering out with --query or jq.

@sgrilux
Copy link

sgrilux commented Nov 23, 2022

After digging a bit more, it looks the problem occurs only if the service is deployed privately and not publicly accessible. However the console returns the Url in any case.

@pabloB2sys
Copy link
Author

That is correct the amazon console returns the proper URL in both cases.
As a requirement we have to move the service to a private vpc and have problems with security groups and open ports

@sgrilux
Copy link

sgrilux commented Nov 23, 2022

aws/aws-sdk-go#4635

@breathingdust breathingdust added service/apprunner Issues and PRs that pertain to the apprunner service. upstream Addresses functionality related to the cloud provider. and removed needs-triage Waiting for first response or review from a maintainer. labels Nov 24, 2022
@carlduevel
Copy link

I worked around this by using the dns_target attribute of the aws_apprunner_custom_domain_association resource.

Copy link

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

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 Dec 28, 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/apprunner Issues and PRs that pertain to the apprunner service. upstream Addresses functionality related to the cloud provider.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants