-
Notifications
You must be signed in to change notification settings - Fork 4k
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
HostedZone.fromlookup not working in nested stacks #4651
Comments
For me, the same error is from
It seems to be the |
Still happening, can be avoided with command "cdk deploy", only happens when using CloudFormationCreateUpdateStackAction. |
experiencing the same behavior
|
I figured it out, you need to add cdk.context.json into repo to
give CloudFormationCreateUpdateStackAction the context to load host zone.
…On Fri, Oct 30, 2020 at 7:58 PM Ilia luk ***@***.***> wrote:
anyone managed to work around this?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4651 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAVPH4LGMFH4N53CYNEJW73SNNHKRANCNFSM4JEG4A7Q>
.
|
I am expecting the very same issue. I have a stage which is created within a CodePipeline stack. This stage have a stack which uses |
@AlexRex is this still an issue for you? I tried reproducing this issue on a recent version of the CDK and the @AbendGithub it should work as long as you have AWS credentials with access to perform the lookup during synth. So in your case if you are performing synth as part of a CodeBuild action, the CodeBuild role must have access to perform the lookup. Alternatively, the recommended approach to handling lookups is to perform |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
When using HostedZone.fromLookUp in a nested stack is not able to find out the hostedzone and keeps the DUMMY id value. Also it does not creates the entry in the context file.
Reproduction Steps
Create a hosted zone in route 53. Then create a stack, inside this stack create a nested stack that just gets a zone based in a domain name:
Error Log
No hosted zone found with ID: DUMMY (Service: AmazonRoute53; Status Code: 404; Error Code: NoSuchHostedZone; Request ID: 9868b6a0-6109-48e6-b475-c31c6041778f)
Environment
Other
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: