Closed phuhung273 closed 1 week ago
Needs reproduction. Existing integ.machine-image.js.snapshot/integ-ec2-machine-image-test.template.json is using test-region-1a
. From DEFAULT_SYNTH_OPTIONS, AVAILABILITY_ZONE_FALLBACK_CONTEXT_KEY
is set as ['test-region-1a', 'test-region-1b', 'test-region-1c']
.
Reproducible when running yarn integ test/aws-ec2/test/integ.machine-image.js --force
from /packages/@aws-cdk-testing/framework-integ
directory.
yarn run v1.22.22
$ integ-runner --language javascript test/aws-ec2/test/integ.machine-image.js --force
Verifying integration test snapshots...
UNCHANGED aws-ec2/test/integ.machine-image 1.264s
Snapshot Results:
Tests: 1 passed, 1 total
Running integration tests for failed tests...
Running in parallel across regions: us-east-1, us-east-2, us-west-2
Running test /projects/aws-cdk/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.machine-image.js in us-east-1
[Warning at /integ-ec2-machine-image-test/ASG] desiredCapacity has been configured. Be aware this will reset the size of your AutoScalingGroup on every deployment. See https://github.com/aws/aws-cdk/issues/5215 [ack: @aws-cdk/aws-autoscaling:desiredCapacitySet]
✨ Synthesis time: 0.4s
integ-ec2-machine-image-test: start: Building b002645f95f6a2b0670b702b8ebd2f5e504cadb0469d1de92f091adf7f3c1855:current_account-current_region
integ-ec2-machine-image-test: success: Built b002645f95f6a2b0670b702b8ebd2f5e504cadb0469d1de92f091adf7f3c1855:current_account-current_region
integ-ec2-machine-image-test: start: Publishing b002645f95f6a2b0670b702b8ebd2f5e504cadb0469d1de92f091adf7f3c1855:current_account-current_region
integ-ec2-machine-image-test: success: Published b002645f95f6a2b0670b702b8ebd2f5e504cadb0469d1de92f091adf7f3c1855:current_account-current_region
integ-ec2-machine-image-test: deploying... [1/1]
integ-ec2-machine-image-test: creating CloudFormation changeset...
integ-ec2-machine-image-test | 0/53 | 11:08:49 PM | REVIEW_IN_PROGRESS | AWS::CloudFormation::Stack | integ-ec2-machine-image-test User Initiated
integ-ec2-machine-image-test | 0/53 | 11:08:55 PM | CREATE_IN_PROGRESS | AWS::CloudFormation::Stack | integ-ec2-machine-image-test User Initiated
integ-ec2-machine-image-test | 0/53 | 11:08:59 PM | CREATE_IN_PROGRESS | AWS::EC2::EIP | Vpc/PublicSubnet3/EIP (VpcPublicSubnet3EIP3A666A23)
integ-ec2-machine-image-test | 0/53 | 11:08:59 PM | CREATE_IN_PROGRESS | AWS::IAM::Role | amzn2/InstanceRole (amzn2InstanceRole3F1DBBD2)
integ-ec2-machine-image-test | 0/53 | 11:08:59 PM | CREATE_IN_PROGRESS | AWS::IAM::Role | al2023/InstanceRole (al2023InstanceRoleECC2D6DD)
integ-ec2-machine-image-test | 0/53 | 11:08:59 PM | CREATE_IN_PROGRESS | AWS::EC2::EIP | Vpc/PublicSubnet2/EIP (VpcPublicSubnet2EIP3C605A87)
integ-ec2-machine-image-test | 0/53 | 11:08:59 PM | CREATE_IN_PROGRESS | AWS::IAM::Role | al2023WithMinimalAMI/InstanceRole (al2023WithMinimalAMIInstanceRoleD28B1D5E)
integ-ec2-machine-image-test | 0/53 | 11:08:59 PM | CREATE_IN_PROGRESS | AWS::SSM::Parameter | AmiParameter
integ-ec2-machine-image-test | 0/53 | 11:08:59 PM | CREATE_IN_PROGRESS | AWS::EC2::EIP | Vpc/PublicSubnet1/EIP (VpcPublicSubnet1EIPD7E02669)
integ-ec2-machine-image-test | 0/53 | 11:08:59 PM | CREATE_IN_PROGRESS | AWS::EC2::VPC | Vpc (Vpc8378EB38)
integ-ec2-machine-image-test | 0/53 | 11:09:00 PM | CREATE_IN_PROGRESS | AWS::EC2::InternetGateway | Vpc/IGW (VpcIGWD7BA715C)
integ-ec2-machine-image-test | 0/53 | 11:09:00 PM | CREATE_IN_PROGRESS | AWS::IAM::Role | amzn2/InstanceRole (amzn2InstanceRole3F1DBBD2) Resource creation Initiated
integ-ec2-machine-image-test | 0/53 | 11:09:00 PM | CREATE_IN_PROGRESS | AWS::IAM::Role | al2023/InstanceRole (al2023InstanceRoleECC2D6DD) Resource creation Initiated
integ-ec2-machine-image-test | 0/53 | 11:09:00 PM | CREATE_IN_PROGRESS | AWS::IAM::Role | al2023WithMinimalAMI/InstanceRole (al2023WithMinimalAMIInstanceRoleD28B1D5E) Resource creation Initiated
integ-ec2-machine-image-test | 0/53 | 11:09:00 PM | CREATE_IN_PROGRESS | AWS::SSM::Parameter | AmiParameter Resource creation Initiated
integ-ec2-machine-image-test | 0/53 | 11:09:00 PM | CREATE_IN_PROGRESS | AWS::EC2::EIP | Vpc/PublicSubnet3/EIP (VpcPublicSubnet3EIP3A666A23) Resource creation Initiated
integ-ec2-machine-image-test | 0/53 | 11:09:01 PM | CREATE_IN_PROGRESS | AWS::EC2::InternetGateway | Vpc/IGW (VpcIGWD7BA715C) Resource creation Initiated
integ-ec2-machine-image-test | 0/53 | 11:09:01 PM | CREATE_IN_PROGRESS | AWS::EC2::EIP | Vpc/PublicSubnet2/EIP (VpcPublicSubnet2EIP3C605A87) Resource creation Initiated
integ-ec2-machine-image-test | 0/53 | 11:09:01 PM | CREATE_IN_PROGRESS | AWS::EC2::VPC | Vpc (Vpc8378EB38) Resource creation Initiated
integ-ec2-machine-image-test | 0/53 | 11:09:01 PM | CREATE_IN_PROGRESS | AWS::EC2::EIP | Vpc/PublicSubnet1/EIP (VpcPublicSubnet1EIPD7E02669) Resource creation Initiated
integ-ec2-machine-image-test | 0/53 | 11:09:01 PM | CREATE_IN_PROGRESS | AWS::EC2::InternetGateway | Vpc/IGW (VpcIGWD7BA715C) Eventual consistency check initiated
integ-ec2-machine-image-test | 0/53 | 11:09:01 PM | CREATE_IN_PROGRESS | AWS::EC2::EIP | Vpc/PublicSubnet3/EIP (VpcPublicSubnet3EIP3A666A23) Eventual consistency check initiated
integ-ec2-machine-image-test | 0/53 | 11:09:02 PM | CREATE_IN_PROGRESS | AWS::EC2::EIP | Vpc/PublicSubnet1/EIP (VpcPublicSubnet1EIPD7E02669) Eventual consistency check initiated
integ-ec2-machine-image-test | 0/53 | 11:09:02 PM | CREATE_IN_PROGRESS | AWS::EC2::EIP | Vpc/PublicSubnet2/EIP (VpcPublicSubnet2EIP3C605A87) Eventual consistency check initiated
integ-ec2-machine-image-test | 0/53 | 11:09:09 PM | CREATE_IN_PROGRESS | AWS::SSM::Parameter | AmiParameter Eventual consistency check initiated
integ-ec2-machine-image-test | 0/53 | 11:09:10 PM | CREATE_IN_PROGRESS | AWS::EC2::LaunchTemplate | LT (LTC4631592)
integ-ec2-machine-image-test | 0/53 | 11:09:12 PM | CREATE_IN_PROGRESS | AWS::EC2::LaunchTemplate | LT (LTC4631592) Resource creation Initiated
integ-ec2-machine-image-test | 1/53 | 11:09:12 PM | CREATE_COMPLETE | AWS::EC2::VPC | Vpc (Vpc8378EB38)
integ-ec2-machine-image-test | 2/53 | 11:09:12 PM | CREATE_COMPLETE | AWS::EC2::LaunchTemplate | LT (LTC4631592)
integ-ec2-machine-image-test | 2/53 | 11:09:12 PM | CREATE_IN_PROGRESS | AWS::EC2::RouteTable | Vpc/PublicSubnet3/RouteTable (VpcPublicSubnet3RouteTable93458DBB)
integ-ec2-machine-image-test | 2/53 | 11:09:12 PM | CREATE_IN_PROGRESS | AWS::EC2::SecurityGroup | amzn2/InstanceSecurityGroup (amzn2InstanceSecurityGroup63173C03)
integ-ec2-machine-image-test | 2/53 | 11:09:12 PM | CREATE_IN_PROGRESS | AWS::EC2::RouteTable | Vpc/PrivateSubnet3/RouteTable (VpcPrivateSubnet3RouteTableD98824C7)
integ-ec2-machine-image-test | 2/53 | 11:09:12 PM | CREATE_IN_PROGRESS | AWS::EC2::VPCGatewayAttachment | Vpc/VPCGW (VpcVPCGWBF912B6E)
integ-ec2-machine-image-test | 2/53 | 11:09:12 PM | CREATE_IN_PROGRESS | AWS::EC2::Subnet | Vpc/PublicSubnet1/Subnet (VpcPublicSubnet1Subnet5C2D37C4)
integ-ec2-machine-image-test | 2/53 | 11:09:12 PM | CREATE_IN_PROGRESS | AWS::EC2::Subnet | Vpc/PrivateSubnet1/Subnet (VpcPrivateSubnet1Subnet536B997A)
integ-ec2-machine-image-test | 2/53 | 11:09:12 PM | CREATE_IN_PROGRESS | AWS::EC2::Subnet | Vpc/PublicSubnet3/Subnet (VpcPublicSubnet3SubnetBE12F0B6)
integ-ec2-machine-image-test | 2/53 | 11:09:12 PM | CREATE_IN_PROGRESS | AWS::EC2::RouteTable | Vpc/PrivateSubnet2/RouteTable (VpcPrivateSubnet2RouteTableA678073B)
integ-ec2-machine-image-test | 2/53 | 11:09:12 PM | CREATE_IN_PROGRESS | AWS::EC2::SecurityGroup | al2023/InstanceSecurityGroup (al2023InstanceSecurityGroupB018A9BC)
integ-ec2-machine-image-test | 2/53 | 11:09:12 PM | CREATE_IN_PROGRESS | AWS::EC2::Subnet | Vpc/PrivateSubnet2/Subnet (VpcPrivateSubnet2Subnet3788AAA1)
integ-ec2-machine-image-test | 2/53 | 11:09:12 PM | CREATE_IN_PROGRESS | AWS::EC2::RouteTable | Vpc/PublicSubnet2/RouteTable (VpcPublicSubnet2RouteTable94F7E489)
integ-ec2-machine-image-test | 2/53 | 11:09:12 PM | CREATE_IN_PROGRESS | AWS::EC2::RouteTable | Vpc/PrivateSubnet1/RouteTable (VpcPrivateSubnet1RouteTableB2C5B500)
integ-ec2-machine-image-test | 2/53 | 11:09:12 PM | CREATE_IN_PROGRESS | AWS::EC2::Subnet | Vpc/PrivateSubnet3/Subnet (VpcPrivateSubnet3SubnetF258B56E)
integ-ec2-machine-image-test | 2/53 | 11:09:12 PM | CREATE_IN_PROGRESS | AWS::EC2::Subnet | Vpc/PublicSubnet2/Subnet (VpcPublicSubnet2Subnet691E08A3)
integ-ec2-machine-image-test | 2/53 | 11:09:12 PM | CREATE_IN_PROGRESS | AWS::EC2::SecurityGroup | al2023WithMinimalAMI/InstanceSecurityGroup (al2023WithMinimalAMIInstanceSecurityGroupBD2FA3C4)
integ-ec2-machine-image-test | 2/53 | 11:09:12 PM | CREATE_IN_PROGRESS | AWS::EC2::RouteTable | Vpc/PublicSubnet1/RouteTable (VpcPublicSubnet1RouteTable6C95E38E)
integ-ec2-machine-image-test | 2/53 | 11:09:13 PM | CREATE_FAILED | AWS::EC2::Subnet | Vpc/PrivateSubnet3/Subnet (VpcPrivateSubnet3SubnetF258B56E) Resource handler returned message: "Value (test-region-1c) for parameter availabilityZone is invalid. Subnets can currently only be created in the following availability zones: us-east-1a, us-east-1b, us-east-1c, us-east-1d, us-east-1e, us-east-1f. (Service: Ec2, Status Code: 400, Request ID: 6e5d0cd1-9f98-4900-ab12-0fc21a1bcfab)" (RequestToken: 1504a687-fade-9f98-1f14-87e0e4c88e4e, HandlerErrorCode: InvalidRequest)
integ-ec2-machine-image-test | 2/53 | 11:09:13 PM | CREATE_IN_PROGRESS | AWS::EC2::VPCGatewayAttachment | Vpc/VPCGW (VpcVPCGWBF912B6E) Resource creation Initiated
integ-ec2-machine-image-test | 2/53 | 11:09:13 PM | CREATE_FAILED | AWS::EC2::Subnet | Vpc/PublicSubnet2/Subnet (VpcPublicSubnet2Subnet691E08A3) Resource handler returned message: "Value (test-region-1b) for parameter availabilityZone is invalid. Subnets can currently only be created in the following availability zones: us-east-1a, us-east-1b, us-east-1c, us-east-1d, us-east-1e, us-east-1f. (Service: Ec2, Status Code: 400, Request ID: 1264f19a-45da-420c-b738-7e4c8ba3b1b6)" (RequestToken: c6c61211-5abb-7946-77dd-f1b03102e495, HandlerErrorCode: InvalidRequest)
integ-ec2-machine-image-test | 2/53 | 11:09:13 PM | CREATE_IN_PROGRESS | AWS::EC2::RouteTable | Vpc/PublicSubnet3/RouteTable (VpcPublicSubnet3RouteTable93458DBB) Resource creation Initiated
integ-ec2-machine-image-test | 2/53 | 11:09:13 PM | CREATE_FAILED | AWS::EC2::Subnet | Vpc/PublicSubnet3/Subnet (VpcPublicSubnet3SubnetBE12F0B6) Resource handler returned message: "Value (test-region-1c) for parameter availabilityZone is invalid. Subnets can currently only be created in the following availability zones: us-east-1a, us-east-1b, us-east-1c, us-east-1d, us-east-1e, us-east-1f. (Service: Ec2, Status Code: 400, Request ID: 743cb0e6-c2e8-441d-bddb-7c2e6b830391)" (RequestToken: e0eba131-f9c3-9b81-fd0f-1f8ffb200536, HandlerErrorCode: InvalidRequest)
integ-ec2-machine-image-test | 2/53 | 11:09:13 PM | CREATE_FAILED | AWS::EC2::Subnet | Vpc/PrivateSubnet2/Subnet (VpcPrivateSubnet2Subnet3788AAA1) Resource handler returned message: "Value (test-region-1b) for parameter availabilityZone is invalid. Subnets can currently only be created in the following availability zones: us-east-1a, us-east-1b, us-east-1c, us-east-1d, us-east-1e, us-east-1f. (Service: Ec2, Status Code: 400, Request ID: c1c9b8e6-0d19-471d-b85d-94cca10ac894)" (RequestToken: e93b9b30-f483-0f0f-4b08-62967c6d9952, HandlerErrorCode: InvalidRequest)
integ-ec2-machine-image-test | 2/53 | 11:09:13 PM | CREATE_FAILED | AWS::EC2::Subnet | Vpc/PrivateSubnet1/Subnet (VpcPrivateSubnet1Subnet536B997A) Resource handler returned message: "Value (test-region-1a) for parameter availabilityZone is invalid. Subnets can currently only be created in the following availability zones: us-east-1a, us-east-1b, us-east-1c, us-east-1d, us-east-1e, us-east-1f. (Service: Ec2, Status Code: 400, Request ID: b89a80fd-58e1-4d49-851d-2b4fb7990f00)" (RequestToken: b10afdeb-ba41-f371-09a7-931c9fbb4c9a, HandlerErrorCode: InvalidRequest)
integ-ec2-machine-image-test | 2/53 | 11:09:13 PM | CREATE_FAILED | AWS::EC2::RouteTable | Vpc/PublicSubnet3/RouteTable (VpcPublicSubnet3RouteTable93458DBB) Resource creation cancelled
integ-ec2-machine-image-test | 2/53 | 11:09:13 PM | CREATE_FAILED | AWS::EC2::EIP | Vpc/PublicSubnet1/EIP (VpcPublicSubnet1EIPD7E02669) Resource creation cancelled
integ-ec2-machine-image-test | 2/53 | 11:09:13 PM | CREATE_FAILED | AWS::IAM::Role | amzn2/InstanceRole (amzn2InstanceRole3F1DBBD2) Resource creation cancelled
integ-ec2-machine-image-test | 2/53 | 11:09:13 PM | CREATE_FAILED | AWS::IAM::Role | al2023/InstanceRole (al2023InstanceRoleECC2D6DD) Resource creation cancelled
integ-ec2-machine-image-test | 2/53 | 11:09:13 PM | CREATE_FAILED | AWS::EC2::EIP | Vpc/PublicSubnet3/EIP (VpcPublicSubnet3EIP3A666A23) Resource creation cancelled
integ-ec2-machine-image-test | 2/53 | 11:09:13 PM | CREATE_FAILED | AWS::EC2::InternetGateway | Vpc/IGW (VpcIGWD7BA715C) Resource creation cancelled
integ-ec2-machine-image-test | 2/53 | 11:09:13 PM | CREATE_FAILED | AWS::EC2::EIP | Vpc/PublicSubnet2/EIP (VpcPublicSubnet2EIP3C605A87) Resource creation cancelled
integ-ec2-machine-image-test | 2/53 | 11:09:13 PM | CREATE_FAILED | AWS::IAM::Role | al2023WithMinimalAMI/InstanceRole (al2023WithMinimalAMIInstanceRoleD28B1D5E) Resource creation cancelled
integ-ec2-machine-image-test | 2/53 | 11:09:13 PM | CREATE_FAILED | AWS::SSM::Parameter | AmiParameter Resource creation cancelled
integ-ec2-machine-image-test | 2/53 | 11:09:13 PM | CREATE_FAILED | AWS::EC2::VPCGatewayAttachment | Vpc/VPCGW (VpcVPCGWBF912B6E) Resource creation cancelled
integ-ec2-machine-image-test | 2/53 | 11:09:14 PM | CREATE_FAILED | AWS::EC2::Subnet | Vpc/PublicSubnet1/Subnet (VpcPublicSubnet1Subnet5C2D37C4) Resource handler returned message: "Value (test-region-1a) for parameter availabilityZone is invalid. Subnets can currently only be created in the following availability zones: us-east-1a, us-east-1b, us-east-1c, us-east-1d, us-east-1e, us-east-1f. (Service: Ec2, Status Code: 400, Request ID: 57376ff8-e261-40c0-86f2-b1052cd61229)" (RequestToken: fe1e0f2d-bebb-b5d2-9fe5-a85d25748ca6, HandlerErrorCode: InvalidRequest)
integ-ec2-machine-image-test | 2/53 | 11:09:14 PM | CREATE_FAILED | AWS::EC2::RouteTable | Vpc/PrivateSubnet3/RouteTable (VpcPrivateSubnet3RouteTableD98824C7) Resource creation cancelled
integ-ec2-machine-image-test | 2/53 | 11:09:14 PM | CREATE_FAILED | AWS::EC2::RouteTable | Vpc/PrivateSubnet1/RouteTable (VpcPrivateSubnet1RouteTableB2C5B500) Resource creation cancelled
integ-ec2-machine-image-test | 2/53 | 11:09:14 PM | CREATE_FAILED | AWS::EC2::RouteTable | Vpc/PrivateSubnet2/RouteTable (VpcPrivateSubnet2RouteTableA678073B) Resource creation cancelled
integ-ec2-machine-image-test | 2/53 | 11:09:14 PM | CREATE_FAILED | AWS::EC2::RouteTable | Vpc/PublicSubnet2/RouteTable (VpcPublicSubnet2RouteTable94F7E489) Resource creation cancelled
integ-ec2-machine-image-test | 2/53 | 11:09:14 PM | CREATE_FAILED | AWS::EC2::RouteTable | Vpc/PublicSubnet1/RouteTable (VpcPublicSubnet1RouteTable6C95E38E) Resource creation cancelled
integ-ec2-machine-image-test | 2/53 | 11:09:15 PM | CREATE_FAILED | AWS::EC2::SecurityGroup | al2023WithMinimalAMI/InstanceSecurityGroup (al2023WithMinimalAMIInstanceSecurityGroupBD2FA3C4) Resource creation cancelled
integ-ec2-machine-image-test | 2/53 | 11:09:15 PM | CREATE_FAILED | AWS::EC2::SecurityGroup | amzn2/InstanceSecurityGroup (amzn2InstanceSecurityGroup63173C03) Resource creation cancelled
integ-ec2-machine-image-test | 2/53 | 11:09:15 PM | CREATE_FAILED | AWS::EC2::SecurityGroup | al2023/InstanceSecurityGroup (al2023InstanceSecurityGroupB018A9BC) Resource creation cancelled
integ-ec2-machine-image-test | 2/53 | 11:09:16 PM | ROLLBACK_IN_PROGRESS | AWS::CloudFormation::Stack | integ-ec2-machine-image-test The following resource(s) failed to create: [VpcPrivateSubnet3SubnetF258B56E, VpcPublicSubnet2Subnet691E08A3, VpcPublicSubnet2EIP3C605A87, al2023WithMinimalAMIInstanceSecurityGroupBD2FA3C4, VpcPublicSubnet2RouteTable94F7E489, VpcPublicSubnet1RouteTable6C95E38E, VpcPublicSubnet3SubnetBE12F0B6, amzn2InstanceSecurityGroup63173C03, VpcPrivateSubnet3RouteTableD98824C7, VpcPrivateSubnet1RouteTableB2C5B500, al2023InstanceSecurityGroupB018A9BC, VpcIGWD7BA715C, VpcPrivateSubnet2Subnet3788AAA1, VpcPublicSubnet1EIPD7E02669, VpcPublicSubnet3EIP3A666A23, VpcPrivateSubnet2RouteTableA678073B, AmiParameter, VpcVPCGWBF912B6E, al2023WithMinimalAMIInstanceRoleD28B1D5E, amzn2InstanceRole3F1DBBD2, VpcPublicSubnet3RouteTable93458DBB, al2023InstanceRoleECC2D6DD, VpcPrivateSubnet1Subnet536B997A, VpcPublicSubnet1Subnet5C2D37C4]. Rollback requested by user.
integ-ec2-machine-image-test | 2/53 | 11:09:17 PM | DELETE_IN_PROGRESS | AWS::EC2::SecurityGroup | al2023/InstanceSecurityGroup (al2023InstanceSecurityGroupB018A9BC)
integ-ec2-machine-image-test | 2/53 | 11:09:17 PM | DELETE_IN_PROGRESS | AWS::EC2::SecurityGroup | al2023WithMinimalAMI/InstanceSecurityGroup (al2023WithMinimalAMIInstanceSecurityGroupBD2FA3C4)
integ-ec2-machine-image-test | 2/53 | 11:09:17 PM | DELETE_IN_PROGRESS | AWS::IAM::Role | amzn2/InstanceRole (amzn2InstanceRole3F1DBBD2)
integ-ec2-machine-image-test | 2/53 | 11:09:17 PM | DELETE_IN_PROGRESS | AWS::IAM::Role | al2023WithMinimalAMI/InstanceRole (al2023WithMinimalAMIInstanceRoleD28B1D5E)
integ-ec2-machine-image-test | 2/53 | 11:09:17 PM | DELETE_IN_PROGRESS | AWS::EC2::RouteTable | Vpc/PrivateSubnet3/RouteTable (VpcPrivateSubnet3RouteTableD98824C7)
integ-ec2-machine-image-test | 2/53 | 11:09:17 PM | DELETE_IN_PROGRESS | AWS::EC2::RouteTable | Vpc/PublicSubnet1/RouteTable (VpcPublicSubnet1RouteTable6C95E38E)
integ-ec2-machine-image-test | 2/53 | 11:09:17 PM | DELETE_IN_PROGRESS | AWS::EC2::LaunchTemplate | LT (LTC4631592)
integ-ec2-machine-image-test | 2/53 | 11:09:17 PM | DELETE_IN_PROGRESS | AWS::EC2::RouteTable | Vpc/PrivateSubnet2/RouteTable (VpcPrivateSubnet2RouteTableA678073B)
integ-ec2-machine-image-test | 2/53 | 11:09:17 PM | DELETE_IN_PROGRESS | AWS::EC2::RouteTable | Vpc/PrivateSubnet1/RouteTable (VpcPrivateSubnet1RouteTableB2C5B500)
integ-ec2-machine-image-test | 2/53 | 11:09:17 PM | DELETE_IN_PROGRESS | AWS::EC2::SecurityGroup | amzn2/InstanceSecurityGroup (amzn2InstanceSecurityGroup63173C03)
integ-ec2-machine-image-test | 2/53 | 11:09:17 PM | DELETE_IN_PROGRESS | AWS::EC2::RouteTable | Vpc/PublicSubnet2/RouteTable (VpcPublicSubnet2RouteTable94F7E489)
integ-ec2-machine-image-test | 2/53 | 11:09:17 PM | DELETE_IN_PROGRESS | AWS::EC2::RouteTable | Vpc/PublicSubnet3/RouteTable (VpcPublicSubnet3RouteTable93458DBB)
integ-ec2-machine-image-test | 2/53 | 11:09:17 PM | DELETE_IN_PROGRESS | AWS::EC2::VPCGatewayAttachment | Vpc/VPCGW (VpcVPCGWBF912B6E)
integ-ec2-machine-image-test | 2/53 | 11:09:17 PM | DELETE_IN_PROGRESS | AWS::EC2::EIP | Vpc/PublicSubnet2/EIP (VpcPublicSubnet2EIP3C605A87)
integ-ec2-machine-image-test | 2/53 | 11:09:17 PM | DELETE_IN_PROGRESS | AWS::EC2::EIP | Vpc/PublicSubnet3/EIP (VpcPublicSubnet3EIP3A666A23)
integ-ec2-machine-image-test | 2/53 | 11:09:17 PM | DELETE_IN_PROGRESS | AWS::EC2::EIP | Vpc/PublicSubnet1/EIP (VpcPublicSubnet1EIPD7E02669)
integ-ec2-machine-image-test | 2/53 | 11:09:17 PM | DELETE_IN_PROGRESS | AWS::IAM::Role | al2023/InstanceRole (al2023InstanceRoleECC2D6DD)
integ-ec2-machine-image-test | 3/53 | 11:09:18 PM | DELETE_COMPLETE | AWS::EC2::RouteTable | Vpc/PrivateSubnet1/RouteTable (VpcPrivateSubnet1RouteTableB2C5B500)
integ-ec2-machine-image-test | 4/53 | 11:09:18 PM | DELETE_COMPLETE | AWS::EC2::VPCGatewayAttachment | Vpc/VPCGW (VpcVPCGWBF912B6E)
integ-ec2-machine-image-test | 5/53 | 11:09:18 PM | DELETE_COMPLETE | AWS::EC2::RouteTable | Vpc/PrivateSubnet3/RouteTable (VpcPrivateSubnet3RouteTableD98824C7)
integ-ec2-machine-image-test | 4/53 | 11:09:18 PM | DELETE_COMPLETE | AWS::EC2::LaunchTemplate | LT (LTC4631592)
integ-ec2-machine-image-test | 5/53 | 11:09:18 PM | DELETE_COMPLETE | AWS::EC2::SecurityGroup | al2023/InstanceSecurityGroup (al2023InstanceSecurityGroupB018A9BC)
integ-ec2-machine-image-test | 6/53 | 11:09:18 PM | DELETE_COMPLETE | AWS::EC2::RouteTable | Vpc/PublicSubnet3/RouteTable (VpcPublicSubnet3RouteTable93458DBB)
integ-ec2-machine-image-test | 7/53 | 11:09:18 PM | DELETE_COMPLETE | AWS::EC2::RouteTable | Vpc/PrivateSubnet2/RouteTable (VpcPrivateSubnet2RouteTableA678073B)
integ-ec2-machine-image-test | 8/53 | 11:09:18 PM | DELETE_COMPLETE | AWS::EC2::SecurityGroup | al2023WithMinimalAMI/InstanceSecurityGroup (al2023WithMinimalAMIInstanceSecurityGroupBD2FA3C4)
integ-ec2-machine-image-test | 9/53 | 11:09:19 PM | DELETE_COMPLETE | AWS::EC2::SecurityGroup | amzn2/InstanceSecurityGroup (amzn2InstanceSecurityGroup63173C03)
integ-ec2-machine-image-test | 10/53 | 11:09:19 PM | DELETE_COMPLETE | AWS::EC2::RouteTable | Vpc/PublicSubnet1/RouteTable (VpcPublicSubnet1RouteTable6C95E38E)
integ-ec2-machine-image-test | 11/53 | 11:09:19 PM | DELETE_COMPLETE | AWS::EC2::RouteTable | Vpc/PublicSubnet2/RouteTable (VpcPublicSubnet2RouteTable94F7E489)
integ-ec2-machine-image-test | 11/53 | 11:09:19 PM | DELETE_IN_PROGRESS | AWS::SSM::Parameter | AmiParameter
integ-ec2-machine-image-test | 11/53 | 11:09:19 PM | DELETE_IN_PROGRESS | AWS::EC2::InternetGateway | Vpc/IGW (VpcIGWD7BA715C)
integ-ec2-machine-image-test | 12/53 | 11:09:19 PM | DELETE_COMPLETE | AWS::EC2::EIP | Vpc/PublicSubnet3/EIP (VpcPublicSubnet3EIP3A666A23)
integ-ec2-machine-image-test | 13/53 | 11:09:19 PM | DELETE_COMPLETE | AWS::EC2::EIP | Vpc/PublicSubnet2/EIP (VpcPublicSubnet2EIP3C605A87)
integ-ec2-machine-image-test | 14/53 | 11:09:19 PM | DELETE_COMPLETE | AWS::EC2::EIP | Vpc/PublicSubnet1/EIP (VpcPublicSubnet1EIPD7E02669)
integ-ec2-machine-image-test | 15/53 | 11:09:20 PM | DELETE_COMPLETE | AWS::SSM::Parameter | AmiParameter
integ-ec2-machine-image-test | 16/53 | 11:09:20 PM | DELETE_COMPLETE | AWS::EC2::InternetGateway | Vpc/IGW (VpcIGWD7BA715C)
integ-ec2-machine-image-test | 17/53 | 11:09:26 PM | DELETE_COMPLETE | AWS::IAM::Role | amzn2/InstanceRole (amzn2InstanceRole3F1DBBD2)
integ-ec2-machine-image-test | 18/53 | 11:09:26 PM | DELETE_COMPLETE | AWS::IAM::Role | al2023WithMinimalAMI/InstanceRole (al2023WithMinimalAMIInstanceRoleD28B1D5E)
integ-ec2-machine-image-test | 19/53 | 11:09:27 PM | DELETE_COMPLETE | AWS::IAM::Role | al2023/InstanceRole (al2023InstanceRoleECC2D6DD)
19/53 Currently in progress: integ-ec2-machine-image-test
integ-ec2-machine-image-test | 20/53 | 11:11:23 PM | DELETE_COMPLETE | AWS::EC2::Subnet | Vpc/PrivateSubnet3/Subnet (VpcPrivateSubnet3SubnetF258B56E)
integ-ec2-machine-image-test | 21/53 | 11:11:26 PM | DELETE_COMPLETE | AWS::EC2::Subnet | Vpc/PrivateSubnet1/Subnet (VpcPrivateSubnet1Subnet536B997A)
integ-ec2-machine-image-test | 22/53 | 11:11:33 PM | DELETE_COMPLETE | AWS::EC2::Subnet | Vpc/PrivateSubnet2/Subnet (VpcPrivateSubnet2Subnet3788AAA1)
integ-ec2-machine-image-test | 23/53 | 11:11:40 PM | DELETE_COMPLETE | AWS::EC2::Subnet | Vpc/PublicSubnet3/Subnet (VpcPublicSubnet3SubnetBE12F0B6)
integ-ec2-machine-image-test | 24/53 | 11:11:44 PM | DELETE_COMPLETE | AWS::EC2::Subnet | Vpc/PublicSubnet1/Subnet (VpcPublicSubnet1Subnet5C2D37C4)
integ-ec2-machine-image-test | 25/53 | 11:11:44 PM | DELETE_COMPLETE | AWS::EC2::Subnet | Vpc/PublicSubnet2/Subnet (VpcPublicSubnet2Subnet691E08A3)
integ-ec2-machine-image-test | 25/53 | 11:11:44 PM | DELETE_IN_PROGRESS | AWS::EC2::VPC | Vpc (Vpc8378EB38)
integ-ec2-machine-image-test | 24/53 | 11:11:46 PM | DELETE_COMPLETE | AWS::EC2::VPC | Vpc (Vpc8378EB38)
integ-ec2-machine-image-test | 25/53 | 11:11:46 PM | ROLLBACK_COMPLETE | AWS::CloudFormation::Stack | integ-ec2-machine-image-test
Failed resources:
integ-ec2-machine-image-test | 11:09:13 PM | CREATE_FAILED | AWS::EC2::Subnet | Vpc/PrivateSubnet3/Subnet (VpcPrivateSubnet3SubnetF258B56E) Resource handler returned message: "Value (test-region-1c) for parameter availabilityZone is invalid. Subnets can currently only be created in the following availability zones: us-east-1a, us-east-1b, us-east-1c, us-east-1d, us-east-1e, us-east-1f. (Service: Ec2, Status Code: 400, Request ID: 6e5d0cd1-9f98-4900-ab12-0fc21a1bcfab)" (RequestToken: 1504a687-fade-9f98-1f14-87e0e4c88e4e, HandlerErrorCode: InvalidRequest)
integ-ec2-machine-image-test | 11:09:13 PM | CREATE_FAILED | AWS::EC2::Subnet | Vpc/PublicSubnet2/Subnet (VpcPublicSubnet2Subnet691E08A3) Resource handler returned message: "Value (test-region-1b) for parameter availabilityZone is invalid. Subnets can currently only be created in the following availability zones: us-east-1a, us-east-1b, us-east-1c, us-east-1d, us-east-1e, us-east-1f. (Service: Ec2, Status Code: 400, Request ID: 1264f19a-45da-420c-b738-7e4c8ba3b1b6)" (RequestToken: c6c61211-5abb-7946-77dd-f1b03102e495, HandlerErrorCode: InvalidRequest)
integ-ec2-machine-image-test | 11:09:13 PM | CREATE_FAILED | AWS::EC2::Subnet | Vpc/PublicSubnet3/Subnet (VpcPublicSubnet3SubnetBE12F0B6) Resource handler returned message: "Value (test-region-1c) for parameter availabilityZone is invalid. Subnets can currently only be created in the following availability zones: us-east-1a, us-east-1b, us-east-1c, us-east-1d, us-east-1e, us-east-1f. (Service: Ec2, Status Code: 400, Request ID: 743cb0e6-c2e8-441d-bddb-7c2e6b830391)" (RequestToken: e0eba131-f9c3-9b81-fd0f-1f8ffb200536, HandlerErrorCode: InvalidRequest)
integ-ec2-machine-image-test | 11:09:13 PM | CREATE_FAILED | AWS::EC2::Subnet | Vpc/PrivateSubnet2/Subnet (VpcPrivateSubnet2Subnet3788AAA1) Resource handler returned message: "Value (test-region-1b) for parameter availabilityZone is invalid. Subnets can currently only be created in the following availability zones: us-east-1a, us-east-1b, us-east-1c, us-east-1d, us-east-1e, us-east-1f. (Service: Ec2, Status Code: 400, Request ID: c1c9b8e6-0d19-471d-b85d-94cca10ac894)" (RequestToken: e93b9b30-f483-0f0f-4b08-62967c6d9952, HandlerErrorCode: InvalidRequest)
integ-ec2-machine-image-test | 11:09:13 PM | CREATE_FAILED | AWS::EC2::Subnet | Vpc/PrivateSubnet1/Subnet (VpcPrivateSubnet1Subnet536B997A) Resource handler returned message: "Value (test-region-1a) for parameter availabilityZone is invalid. Subnets can currently only be created in the following availability zones: us-east-1a, us-east-1b, us-east-1c, us-east-1d, us-east-1e, us-east-1f. (Service: Ec2, Status Code: 400, Request ID: b89a80fd-58e1-4d49-851d-2b4fb7990f00)" (RequestToken: b10afdeb-ba41-f371-09a7-931c9fbb4c9a, HandlerErrorCode: InvalidRequest)
integ-ec2-machine-image-test | 11:09:14 PM | CREATE_FAILED | AWS::EC2::Subnet | Vpc/PublicSubnet1/Subnet (VpcPublicSubnet1Subnet5C2D37C4) Resource handler returned message: "Value (test-region-1a) for parameter availabilityZone is invalid. Subnets can currently only be created in the following availability zones: us-east-1a, us-east-1b, us-east-1c, us-east-1d, us-east-1e, us-east-1f. (Service: Ec2, Status Code: 400, Request ID: 57376ff8-e261-40c0-86f2-b1052cd61229)" (RequestToken: fe1e0f2d-bebb-b5d2-9fe5-a85d25748ca6, HandlerErrorCode: InvalidRequest)
❌ integ-ec2-machine-image-test failed: The stack named integ-ec2-machine-image-test failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE: Resource handler returned message: "Value (test-region-1c) for parameter availabilityZone is invalid. Subnets can currently only be created in the following availability zones: us-east-1a, us-east-1b, us-east-1c, us-east-1d, us-east-1e, us-east-1f. (Service: Ec2, Status Code: 400, Request ID: 6e5d0cd1-9f98-4900-ab12-0fc21a1bcfab)" (RequestToken: 1504a687-fade-9f98-1f14-87e0e4c88e4e, HandlerErrorCode: InvalidRequest), Resource handler returned message: "Value (test-region-1b) for parameter availabilityZone is invalid. Subnets can currently only be created in the following availability zones: us-east-1a, us-east-1b, us-east-1c, us-east-1d, us-east-1e, us-east-1f. (Service: Ec2, Status Code: 400, Request ID: 1264f19a-45da-420c-b738-7e4c8ba3b1b6)" (RequestToken: c6c61211-5abb-7946-77dd-f1b03102e495, HandlerErrorCode: InvalidRequest), Resource handler returned message: "Value (test-region-1c) for parameter availabilityZone is invalid. Subnets can currently only be created in the following availability zones: us-east-1a, us-east-1b, us-east-1c, us-east-1d, us-east-1e, us-east-1f. (Service: Ec2, Status Code: 400, Request ID: 743cb0e6-c2e8-441d-bddb-7c2e6b830391)" (RequestToken: e0eba131-f9c3-9b81-fd0f-1f8ffb200536, HandlerErrorCode: InvalidRequest), Resource handler returned message: "Value (test-region-1b) for parameter availabilityZone is invalid. Subnets can currently only be created in the following availability zones: us-east-1a, us-east-1b, us-east-1c, us-east-1d, us-east-1e, us-east-1f. (Service: Ec2, Status Code: 400, Request ID: c1c9b8e6-0d19-471d-b85d-94cca10ac894)" (RequestToken: e93b9b30-f483-0f0f-4b08-62967c6d9952, HandlerErrorCode: InvalidRequest), Resource handler returned message: "Value (test-region-1a) for parameter availabilityZone is invalid. Subnets can currently only be created in the following availability zones: us-east-1a, us-east-1b, us-east-1c, us-east-1d, us-east-1e, us-east-1f. (Service: Ec2, Status Code: 400, Request ID: b89a80fd-58e1-4d49-851d-2b4fb7990f00)" (RequestToken: b10afdeb-ba41-f371-09a7-931c9fbb4c9a, HandlerErrorCode: InvalidRequest), Resource handler returned message: "Value (test-region-1a) for parameter availabilityZone is invalid. Subnets can currently only be created in the following availability zones: us-east-1a, us-east-1b, us-east-1c, us-east-1d, us-east-1e, us-east-1f. (Service: Ec2, Status Code: 400, Request ID: 57376ff8-e261-40c0-86f2-b1052cd61229)" (RequestToken: fe1e0f2d-bebb-b5d2-9fe5-a85d25748ca6, HandlerErrorCode: InvalidRequest)
FAILED aws-ec2/test/integ.machine-image-integ-test/DefaultTest (undefined/us-east-1) 201.662s
Integration test failed: Error: Command exited with status 1
Test Results:
Tests: 1 failed, 1 total
Error: Some integration tests failed!
at main (/projects/aws-cdk/packages/@aws-cdk/integ-runner/lib/cli.js:167:23)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@phuhung273 Looks like it works with --dry-run
switch. So executing command yarn integ test/aws-ec2/test/integ.machine-image.js --dry-run --update-on-failed
, even though it reports error Error: Some changes were destructive!
, it actually updates the snapshots without deployment. Thereafter, running yarn integ test/aws-ec2/test/integ.machine-image.js
succeeds. Please give it a try at your end.
NOTE: As noted in yarn integ --help
, using --dry-run
is generally not recommended.
Thanks, Ashish
Thanks for your help @ashishdhingra that works. Seems like the current snapshot is dry-run, i will leave it as is. Hope we can improve it later not to confuse someone else.
From DEFAULT_SYNTH_OPTIONS,
AVAILABILITY_ZONE_FALLBACK_CONTEXT_KEY
is set as['test-region-1a', 'test-region-1b', 'test-region-1c']
@phuhung273 Thanks for confirmation. Closing this issue. I will bring this to team's attention for guidance on fallback dummy regions for availability zone.
Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one.
Another workaround is to set the region key in the stack creation
new IntegTest(app, 'integ-test', {
testCases: [new TestCase(app, 'integ-ec2-machine-image-test', { env: { region: 'us-east-1' }})],
enableLookups: true,
});
I'm not certain why the team decided to use dummy values for the AZ. Will dig into it.
Describe the bug
Running
yarn integ test/aws-ec2/test/integ.machine-image.js --update-on-failed
return error:Resource handler returned message: "Value (test-region-1a) for parameter availabilityZone is invalid. Subnets can currently only be created in the following availability zones: us-east-1a, us-east-1b, us-east-1c, us-east-1d, us-east-1e, us-east-1f.
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
Integration test success
Current Behavior
Reproduction Steps
yarn integ test/aws-ec2/test/integ.machine-image.js --update-on-failed
Possible Solution
Use real region instead of
test
Additional Information/Context
Hi team, im new contributor. Please correct me if this issue is false alert or the way im testing is wrong.
While working on #32006, my change requires rerunning lots of integration tests, one of them is
integ.machine-image
Inspecting the snapshot https://github.com/aws/aws-cdk/commit/f6c1e624315a5b79335338c682464a26c8154661#diff-6481037221541f788e8e52206ed56ff9f9d3948945623babf841d57f65c3cba2R21, find that all AZs in
template.json
are liketest-region-1a, test-region-2a
. Do we need any additional setup to run this test case ?CDK CLI Version
main
Framework Version
No response
Node.js Version
v20.18.0
OS
Dev container
Language
TypeScript
Language Version
No response
Other information
No response