-
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
core: Custom::CrossRegionExportWriter fails with InvalidResourceId: UnknownError #26340
Comments
Does this error come from CertificateWaf2Stack? Can you share the content of CertificateWaf2Stack? |
Same issue here, entirely not related to Route53 or ACM/WAF/Whatever CertificateWaf2Stack contains. Ran into it when trying to deploy a VPC that is set to Using the stack as follows:
Contents of stack:
Error was exactly the same: Edit: Wanted to mention that I reverted to 2.80 (just randomly chosen between 2.77 and 2.87) and that worked fine with the same setup. |
@pahud: The error is from |
FYI |
Yes I can reproduce this issue even with the basic cross-region reference. #!/usr/bin/env node
import 'source-map-support/register';
import {
App, Stack, StackProps, CfnOutput,
aws_ec2 as ec2,
} from 'aws-cdk-lib';
import { Construct } from 'constructs';
export class Stack2 extends Stack {
public readonly vpc: ec2.IVpc
constructor(scope: Construct, id: string, props?: StackProps) {
super(scope, id, props);
this.vpc = new ec2.Vpc(this,'Vpc',{
natGateways: 1
});
}
}
export interface stack3props extends StackProps {
readonly vpc: ec2.IVpc;
}
export class Stack3 extends Stack {
constructor(scope: Construct, id: string, props: stack3props) {
super(scope, id, props);
new CfnOutput(this, 'VpcId', { value: props.vpc.vpcId})
}}
const app = new App();
// const env = { region: process.env.CDK_DEFAULT_REGION, account: process.env.CDK_DEFAULT_ACCOUNT };
const envUSA = { account: process.env.CDK_DEFAULT_ACCOUNT , region: 'us-east-2' };
const envUSA1 = { account: process.env.CDK_DEFAULT_ACCOUNT , region: 'eu-central-1' };
const stack2 = new Stack2(app,'teststack2',{
env: envUSA,
crossRegionReferences: true
});
new Stack3(app,'teststack3',{
env: envUSA1,
crossRegionReferences: true,
vpc: stack2.vpc
}); error
|
Making this a p1 bug. The maintainer is investigating now. |
This is weird. Looks like this this issue can't be reproduced in some cases but the deployment always fails in my environment. |
I can verify I'm seeing this issue as well. I can't create any cross region referencing stacks |
This may have been introduced in 2.87.0, downgrading to 2.86.0 fixed the issue for me. |
Could it be related to the switch to NodeJS 18 for all custom resources? |
I am also seeing this issue. Downgrading to 2.86.0 seemed to fix it for me |
This is similar to #26325. We are working on it. |
Yes. Some of the handler code hasn't been appropriately updated to accommodate |
Closed by #26434 |
|
Describe the bug
I'm using
crossRegionReferences
to use my Hosted Zone created in regioneu-west-1
for my Certificate created inus-east-1
but the exported value is never created and fails withInvalidResourceId: UnknownError
when I deploy. Downgrading to 2.69 fixes the issue.Expected Behavior
The deploy should work without any errors. The SSM parameter should be created.
Current Behavior
The deploy fails with the following error:
CREATE failed, responding with a marker physical resource id so that the subsequent DELETE will be ignored
Request:
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.87.0
Framework Version
No response
Node.js Version
18.14.1
OS
Windows 10 x64
Language
Typescript
Language Version
5.1.6
Other information
No response
The text was updated successfully, but these errors were encountered: