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

(ec2): Unable to run integ.machine-image test #32017

Closed
1 task
phuhung273 opened this issue Nov 5, 2024 · 7 comments
Closed
1 task

(ec2): Unable to run integ.machine-image test #32017

phuhung273 opened this issue Nov 5, 2024 · 7 comments
Assignees
Labels
@aws-cdk/aws-ec2 Related to Amazon Elastic Compute Cloud bug This issue is a bug. p2

Comments

@phuhung273
Copy link

phuhung273 commented Nov 5, 2024

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

  • Select this option if this issue appears to be a regression.

Last Known Working CDK Version

No response

Expected Behavior

Integration test success

Current Behavior

yarn integ test/aws-ec2/test/integ.machine-image.js --update-on-failed
yarn run v1.22.22
$ integ-runner --language javascript test/aws-ec2/test/integ.machine-image.js --update-on-failed

Verifying integration test snapshots...

  CHANGED    aws-ec2/test/integ.machine-image 1.16s
      Resources
[~] AWS::EC2::Instance amzn25D7FDCED 
 └─ [-] IamInstanceProfile
     └─ {"Ref":"amzn2InstanceProfileC501DBD1"}
[~] AWS::EC2::Instance al20231AC01FE4 
 └─ [-] IamInstanceProfile
     └─ {"Ref":"al2023InstanceProfileAB8077E0"}
[~] AWS::EC2::Instance al2023WithMinimalAMI03A043A1 
 └─ [-] IamInstanceProfile
     └─ {"Ref":"al2023WithMinimalAMIInstanceProfile3DC008CC"}
[~] AWS::EC2::Instance ssmresolveinstanceDC2C8573 
 └─ [-] IamInstanceProfile
     └─ {"Ref":"ssmresolveinstanceInstanceProfileAD70EB72"}



Snapshot Results: 

Tests:    1 failed, 1 total
Failed: /workspaces/aws-cdk/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.machine-image.js

Running integration tests for failed tests...

Running in parallel across regions: us-east-1, us-east-2, us-west-2
Running test /workspaces/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.02s

integ-ec2-machine-image-test: deploying... [1/1]
integ-ec2-machine-image-test: creating CloudFormation changeset...
integ-ec2-machine-image-test |  0/53 | 1:12:00 AM | REVIEW_IN_PROGRESS   | AWS::CloudFormation::Stack            | integ-ec2-machine-image-test User Initiated
integ-ec2-machine-image-test |  0/53 | 1:12:09 AM | CREATE_IN_PROGRESS   | AWS::CloudFormation::Stack            | integ-ec2-machine-image-test User Initiated
integ-ec2-machine-image-test |  0/53 | 1:12:13 AM | CREATE_IN_PROGRESS   | AWS::EC2::EIP                         | Vpc/PublicSubnet3/EIP (VpcPublicSubnet3EIP3A666A23) 
integ-ec2-machine-image-test |  0/53 | 1:12:13 AM | CREATE_IN_PROGRESS   | AWS::IAM::Role                        | al2023WithMinimalAMI/InstanceRole (al2023WithMinimalAMIInstanceRoleD28B1D5E) 
integ-ec2-machine-image-test |  0/53 | 1:12:13 AM | CREATE_IN_PROGRESS   | AWS::EC2::EIP                         | Vpc/PublicSubnet2/EIP (VpcPublicSubnet2EIP3C605A87) 
integ-ec2-machine-image-test |  0/53 | 1:12:13 AM | CREATE_IN_PROGRESS   | AWS::EC2::InternetGateway             | Vpc/IGW (VpcIGWD7BA715C) 
integ-ec2-machine-image-test |  0/53 | 1:12:13 AM | CREATE_IN_PROGRESS   | AWS::EC2::EIP                         | Vpc/PublicSubnet1/EIP (VpcPublicSubnet1EIPD7E02669) 
integ-ec2-machine-image-test |  0/53 | 1:12:13 AM | CREATE_IN_PROGRESS   | AWS::SSM::Parameter                   | AmiParameter 
integ-ec2-machine-image-test |  0/53 | 1:12:13 AM | CREATE_IN_PROGRESS   | AWS::EC2::VPC                         | Vpc (Vpc8378EB38) 
integ-ec2-machine-image-test |  0/53 | 1:12:13 AM | CREATE_IN_PROGRESS   | AWS::IAM::Role                        | al2023/InstanceRole (al2023InstanceRoleECC2D6DD) 
integ-ec2-machine-image-test |  0/53 | 1:12:13 AM | CREATE_IN_PROGRESS   | AWS::IAM::Role                        | amzn2/InstanceRole (amzn2InstanceRole3F1DBBD2) 
integ-ec2-machine-image-test |  0/53 | 1:12:14 AM | CREATE_IN_PROGRESS   | AWS::IAM::Role                        | al2023/InstanceRole (al2023InstanceRoleECC2D6DD) Resource creation Initiated
integ-ec2-machine-image-test |  0/53 | 1:12:14 AM | CREATE_IN_PROGRESS   | AWS::IAM::Role                        | al2023WithMinimalAMI/InstanceRole (al2023WithMinimalAMIInstanceRoleD28B1D5E) Resource creation Initiated
integ-ec2-machine-image-test |  0/53 | 1:12:14 AM | CREATE_IN_PROGRESS   | AWS::IAM::Role                        | amzn2/InstanceRole (amzn2InstanceRole3F1DBBD2) Resource creation Initiated
integ-ec2-machine-image-test |  0/53 | 1:12:14 AM | CREATE_IN_PROGRESS   | AWS::SSM::Parameter                   | AmiParameter Resource creation Initiated
integ-ec2-machine-image-test |  0/53 | 1:12:14 AM | CREATE_IN_PROGRESS   | AWS::EC2::EIP                         | Vpc/PublicSubnet2/EIP (VpcPublicSubnet2EIP3C605A87) Resource creation Initiated
integ-ec2-machine-image-test |  0/53 | 1:12:14 AM | CREATE_IN_PROGRESS   | AWS::EC2::InternetGateway             | Vpc/IGW (VpcIGWD7BA715C) Resource creation Initiated
integ-ec2-machine-image-test |  0/53 | 1:12:14 AM | CREATE_IN_PROGRESS   | AWS::EC2::EIP                         | Vpc/PublicSubnet3/EIP (VpcPublicSubnet3EIP3A666A23) Resource creation Initiated
integ-ec2-machine-image-test |  0/53 | 1:12:14 AM | CREATE_IN_PROGRESS   | AWS::EC2::EIP                         | Vpc/PublicSubnet1/EIP (VpcPublicSubnet1EIPD7E02669) Resource creation Initiated
integ-ec2-machine-image-test |  0/53 | 1:12:14 AM | CREATE_IN_PROGRESS   | AWS::EC2::VPC                         | Vpc (Vpc8378EB38) Resource creation Initiated
integ-ec2-machine-image-test |  0/53 | 1:12:15 AM | CREATE_IN_PROGRESS   | AWS::EC2::EIP                         | Vpc/PublicSubnet2/EIP (VpcPublicSubnet2EIP3C605A87) Eventual consistency check initiated
integ-ec2-machine-image-test |  0/53 | 1:12:15 AM | CREATE_IN_PROGRESS   | AWS::EC2::InternetGateway             | Vpc/IGW (VpcIGWD7BA715C) Eventual consistency check initiated
integ-ec2-machine-image-test |  0/53 | 1:12:15 AM | CREATE_IN_PROGRESS   | AWS::SSM::Parameter                   | AmiParameter Eventual consistency check initiated
integ-ec2-machine-image-test |  0/53 | 1:12:15 AM | CREATE_IN_PROGRESS   | AWS::EC2::EIP                         | Vpc/PublicSubnet3/EIP (VpcPublicSubnet3EIP3A666A23) Eventual consistency check initiated
integ-ec2-machine-image-test |  0/53 | 1:12:15 AM | CREATE_IN_PROGRESS   | AWS::EC2::EIP                         | Vpc/PublicSubnet1/EIP (VpcPublicSubnet1EIPD7E02669) Eventual consistency check initiated
integ-ec2-machine-image-test |  0/53 | 1:12:15 AM | CREATE_IN_PROGRESS   | AWS::EC2::LaunchTemplate              | LT (LTC4631592) 
integ-ec2-machine-image-test |  0/53 | 1:12:19 AM | CREATE_IN_PROGRESS   | AWS::EC2::LaunchTemplate              | LT (LTC4631592) Resource creation Initiated
integ-ec2-machine-image-test |  1/53 | 1:12:19 AM | CREATE_COMPLETE      | AWS::EC2::LaunchTemplate              | LT (LTC4631592) 
integ-ec2-machine-image-test |  2/53 | 1:12:25 AM | CREATE_COMPLETE      | AWS::EC2::VPC                         | Vpc (Vpc8378EB38) 
integ-ec2-machine-image-test |  2/53 | 1:12:26 AM | CREATE_IN_PROGRESS   | AWS::EC2::SecurityGroup               | amzn2/InstanceSecurityGroup (amzn2InstanceSecurityGroup63173C03) 
integ-ec2-machine-image-test |  2/53 | 1:12:26 AM | CREATE_IN_PROGRESS   | AWS::EC2::Subnet                      | Vpc/PublicSubnet2/Subnet (VpcPublicSubnet2Subnet691E08A3) 
integ-ec2-machine-image-test |  2/53 | 1:12:26 AM | CREATE_IN_PROGRESS   | AWS::EC2::Subnet                      | Vpc/PrivateSubnet1/Subnet (VpcPrivateSubnet1Subnet536B997A) 
integ-ec2-machine-image-test |  2/53 | 1:12:26 AM | CREATE_IN_PROGRESS   | AWS::EC2::Subnet                      | Vpc/PrivateSubnet3/Subnet (VpcPrivateSubnet3SubnetF258B56E) 
integ-ec2-machine-image-test |  2/53 | 1:12:26 AM | CREATE_IN_PROGRESS   | AWS::EC2::SecurityGroup               | al2023WithMinimalAMI/InstanceSecurityGroup (al2023WithMinimalAMIInstanceSecurityGroupBD2FA3C4) 
integ-ec2-machine-image-test |  2/53 | 1:12:26 AM | CREATE_IN_PROGRESS   | AWS::EC2::Subnet                      | Vpc/PublicSubnet3/Subnet (VpcPublicSubnet3SubnetBE12F0B6) 
integ-ec2-machine-image-test |  2/53 | 1:12:26 AM | CREATE_IN_PROGRESS   | AWS::EC2::RouteTable                  | Vpc/PrivateSubnet3/RouteTable (VpcPrivateSubnet3RouteTableD98824C7) 
integ-ec2-machine-image-test |  2/53 | 1:12:26 AM | CREATE_IN_PROGRESS   | AWS::EC2::SecurityGroup               | al2023/InstanceSecurityGroup (al2023InstanceSecurityGroupB018A9BC) 
integ-ec2-machine-image-test |  2/53 | 1:12:26 AM | CREATE_IN_PROGRESS   | AWS::EC2::RouteTable                  | Vpc/PublicSubnet2/RouteTable (VpcPublicSubnet2RouteTable94F7E489) 
integ-ec2-machine-image-test |  2/53 | 1:12:26 AM | CREATE_IN_PROGRESS   | AWS::EC2::Subnet                      | Vpc/PublicSubnet1/Subnet (VpcPublicSubnet1Subnet5C2D37C4) 
integ-ec2-machine-image-test |  2/53 | 1:12:26 AM | CREATE_IN_PROGRESS   | AWS::EC2::RouteTable                  | Vpc/PublicSubnet1/RouteTable (VpcPublicSubnet1RouteTable6C95E38E) 
integ-ec2-machine-image-test |  2/53 | 1:12:26 AM | CREATE_IN_PROGRESS   | AWS::EC2::Subnet                      | Vpc/PrivateSubnet2/Subnet (VpcPrivateSubnet2Subnet3788AAA1) 
integ-ec2-machine-image-test |  2/53 | 1:12:26 AM | CREATE_IN_PROGRESS   | AWS::EC2::RouteTable                  | Vpc/PrivateSubnet2/RouteTable (VpcPrivateSubnet2RouteTableA678073B) 
integ-ec2-machine-image-test |  2/53 | 1:12:26 AM | CREATE_IN_PROGRESS   | AWS::EC2::RouteTable                  | Vpc/PrivateSubnet1/RouteTable (VpcPrivateSubnet1RouteTableB2C5B500) 
integ-ec2-machine-image-test |  2/53 | 1:12:26 AM | CREATE_IN_PROGRESS   | AWS::EC2::RouteTable                  | Vpc/PublicSubnet3/RouteTable (VpcPublicSubnet3RouteTable93458DBB) 
integ-ec2-machine-image-test |  2/53 | 1:12:26 AM | CREATE_IN_PROGRESS   | AWS::EC2::VPCGatewayAttachment        | Vpc/VPCGW (VpcVPCGWBF912B6E) 
integ-ec2-machine-image-test |  2/53 | 1:12:27 AM | 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: 0cca0d45-0510-4b82-9576-1d2589aa2780)" (RequestToken: 152e4760-d74b-4a76-e75d-36491373e73f, HandlerErrorCode: InvalidRequest)
integ-ec2-machine-image-test |  2/53 | 1:12:27 AM | 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: 17f570f2-53f6-441c-a07d-08921337908a)" (RequestToken: 7236306f-444c-c440-83c7-cd10d730d3ac, HandlerErrorCode: InvalidRequest)
integ-ec2-machine-image-test |  2/53 | 1:12:27 AM | 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: ca7d552a-ae83-424a-b7a5-3a730ba64a2d)" (RequestToken: a4d1c173-c0b7-eda7-5c86-ee7c2985676d, HandlerErrorCode: InvalidRequest)
integ-ec2-machine-image-test |  2/53 | 1:12:27 AM | 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: bfda61b0-9aae-4190-884a-c888bbcf1eab)" (RequestToken: 2e4ee424-65ca-99b4-3917-732857e5eef7, HandlerErrorCode: InvalidRequest)
integ-ec2-machine-image-test |  2/53 | 1:12:27 AM | 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: 9cef3990-51e9-46f3-8306-b1e946d1132d)" (RequestToken: f9bcb857-f9b1-71db-5129-eb18d24d7505, HandlerErrorCode: InvalidRequest)
integ-ec2-machine-image-test |  2/53 | 1:12:27 AM | CREATE_FAILED        | AWS::EC2::VPCGatewayAttachment        | Vpc/VPCGW (VpcVPCGWBF912B6E) Resource creation cancelled
integ-ec2-machine-image-test |  2/53 | 1:12:27 AM | 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: d62fed02-2568-4ede-8f32-ad189b22566f)" (RequestToken: 2f75bbe5-fcc8-a8d1-2332-a16374d54c51, HandlerErrorCode: InvalidRequest)
integ-ec2-machine-image-test |  2/53 | 1:12:27 AM | CREATE_FAILED        | AWS::EC2::EIP                         | Vpc/PublicSubnet1/EIP (VpcPublicSubnet1EIPD7E02669) Resource creation cancelled
integ-ec2-machine-image-test |  2/53 | 1:12:27 AM | CREATE_FAILED        | AWS::IAM::Role                        | amzn2/InstanceRole (amzn2InstanceRole3F1DBBD2) Resource creation cancelled
integ-ec2-machine-image-test |  2/53 | 1:12:27 AM | CREATE_FAILED        | AWS::EC2::InternetGateway             | Vpc/IGW (VpcIGWD7BA715C) Resource creation cancelled
integ-ec2-machine-image-test |  2/53 | 1:12:27 AM | CREATE_FAILED        | AWS::IAM::Role                        | al2023/InstanceRole (al2023InstanceRoleECC2D6DD) Resource creation cancelled
integ-ec2-machine-image-test |  2/53 | 1:12:27 AM | CREATE_FAILED        | AWS::EC2::EIP                         | Vpc/PublicSubnet2/EIP (VpcPublicSubnet2EIP3C605A87) Resource creation cancelled
integ-ec2-machine-image-test |  2/53 | 1:12:27 AM | CREATE_FAILED        | AWS::EC2::EIP                         | Vpc/PublicSubnet3/EIP (VpcPublicSubnet3EIP3A666A23) Resource creation cancelled
integ-ec2-machine-image-test |  2/53 | 1:12:27 AM | CREATE_FAILED        | AWS::EC2::RouteTable                  | Vpc/PrivateSubnet3/RouteTable (VpcPrivateSubnet3RouteTableD98824C7) Resource creation cancelled
integ-ec2-machine-image-test |  2/53 | 1:12:27 AM | CREATE_FAILED        | AWS::SSM::Parameter                   | AmiParameter Resource creation cancelled
integ-ec2-machine-image-test |  2/53 | 1:12:27 AM | CREATE_FAILED        | AWS::IAM::Role                        | al2023WithMinimalAMI/InstanceRole (al2023WithMinimalAMIInstanceRoleD28B1D5E) Resource creation cancelled
integ-ec2-machine-image-test |  2/53 | 1:12:27 AM | CREATE_FAILED        | AWS::EC2::RouteTable                  | Vpc/PublicSubnet1/RouteTable (VpcPublicSubnet1RouteTable6C95E38E) Resource creation cancelled
integ-ec2-machine-image-test |  2/53 | 1:12:27 AM | CREATE_FAILED        | AWS::EC2::RouteTable                  | Vpc/PublicSubnet3/RouteTable (VpcPublicSubnet3RouteTable93458DBB) Resource creation cancelled
integ-ec2-machine-image-test |  2/53 | 1:12:27 AM | CREATE_FAILED        | AWS::EC2::RouteTable                  | Vpc/PrivateSubnet2/RouteTable (VpcPrivateSubnet2RouteTableA678073B) Resource creation cancelled
integ-ec2-machine-image-test |  2/53 | 1:12:27 AM | CREATE_FAILED        | AWS::EC2::RouteTable                  | Vpc/PrivateSubnet1/RouteTable (VpcPrivateSubnet1RouteTableB2C5B500) Resource creation cancelled
integ-ec2-machine-image-test |  2/53 | 1:12:27 AM | CREATE_FAILED        | AWS::EC2::RouteTable                  | Vpc/PublicSubnet2/RouteTable (VpcPublicSubnet2RouteTable94F7E489) Resource creation cancelled
integ-ec2-machine-image-test |  2/53 | 1:12:29 AM | CREATE_FAILED        | AWS::EC2::SecurityGroup               | al2023/InstanceSecurityGroup (al2023InstanceSecurityGroupB018A9BC) Resource creation cancelled
integ-ec2-machine-image-test |  2/53 | 1:12:29 AM | CREATE_FAILED        | AWS::EC2::SecurityGroup               | amzn2/InstanceSecurityGroup (amzn2InstanceSecurityGroup63173C03) Resource creation cancelled
integ-ec2-machine-image-test |  2/53 | 1:12:29 AM | CREATE_FAILED        | AWS::EC2::SecurityGroup               | al2023WithMinimalAMI/InstanceSecurityGroup (al2023WithMinimalAMIInstanceSecurityGroupBD2FA3C4) Resource creation cancelled
integ-ec2-machine-image-test |  2/53 | 1:12:29 AM | 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 | 1:12:31 AM | DELETE_IN_PROGRESS   | AWS::IAM::Role                        | al2023WithMinimalAMI/InstanceRole (al2023WithMinimalAMIInstanceRoleD28B1D5E) 
integ-ec2-machine-image-test |  2/53 | 1:12:31 AM | DELETE_IN_PROGRESS   | AWS::EC2::RouteTable                  | Vpc/PrivateSubnet1/RouteTable (VpcPrivateSubnet1RouteTableB2C5B500) 
integ-ec2-machine-image-test |  2/53 | 1:12:31 AM | DELETE_IN_PROGRESS   | AWS::IAM::Role                        | al2023/InstanceRole (al2023InstanceRoleECC2D6DD) 
integ-ec2-machine-image-test |  2/53 | 1:12:31 AM | DELETE_IN_PROGRESS   | AWS::EC2::RouteTable                  | Vpc/PublicSubnet1/RouteTable (VpcPublicSubnet1RouteTable6C95E38E) 
integ-ec2-machine-image-test |  2/53 | 1:12:31 AM | DELETE_IN_PROGRESS   | AWS::EC2::LaunchTemplate              | LT (LTC4631592) 
integ-ec2-machine-image-test |  2/53 | 1:12:31 AM | DELETE_IN_PROGRESS   | AWS::EC2::SecurityGroup               | al2023/InstanceSecurityGroup (al2023InstanceSecurityGroupB018A9BC) 
integ-ec2-machine-image-test |  2/53 | 1:12:31 AM | DELETE_IN_PROGRESS   | AWS::EC2::SecurityGroup               | amzn2/InstanceSecurityGroup (amzn2InstanceSecurityGroup63173C03) 
integ-ec2-machine-image-test |  2/53 | 1:12:31 AM | DELETE_IN_PROGRESS   | AWS::EC2::RouteTable                  | Vpc/PublicSubnet3/RouteTable (VpcPublicSubnet3RouteTable93458DBB) 
integ-ec2-machine-image-test |  2/53 | 1:12:31 AM | DELETE_IN_PROGRESS   | AWS::EC2::EIP                         | Vpc/PublicSubnet3/EIP (VpcPublicSubnet3EIP3A666A23) 
integ-ec2-machine-image-test |  2/53 | 1:12:31 AM | DELETE_IN_PROGRESS   | AWS::IAM::Role                        | amzn2/InstanceRole (amzn2InstanceRole3F1DBBD2) 
integ-ec2-machine-image-test |  2/53 | 1:12:31 AM | DELETE_IN_PROGRESS   | AWS::EC2::EIP                         | Vpc/PublicSubnet2/EIP (VpcPublicSubnet2EIP3C605A87) 
integ-ec2-machine-image-test |  2/53 | 1:12:31 AM | DELETE_IN_PROGRESS   | AWS::EC2::EIP                         | Vpc/PublicSubnet1/EIP (VpcPublicSubnet1EIPD7E02669) 
integ-ec2-machine-image-test |  2/53 | 1:12:31 AM | DELETE_IN_PROGRESS   | AWS::EC2::RouteTable                  | Vpc/PrivateSubnet2/RouteTable (VpcPrivateSubnet2RouteTableA678073B) 
integ-ec2-machine-image-test |  2/53 | 1:12:31 AM | DELETE_IN_PROGRESS   | AWS::EC2::RouteTable                  | Vpc/PublicSubnet2/RouteTable (VpcPublicSubnet2RouteTable94F7E489) 
integ-ec2-machine-image-test |  2/53 | 1:12:31 AM | DELETE_IN_PROGRESS   | AWS::EC2::RouteTable                  | Vpc/PrivateSubnet3/RouteTable (VpcPrivateSubnet3RouteTableD98824C7) 
integ-ec2-machine-image-test |  2/53 | 1:12:31 AM | DELETE_IN_PROGRESS   | AWS::EC2::SecurityGroup               | al2023WithMinimalAMI/InstanceSecurityGroup (al2023WithMinimalAMIInstanceSecurityGroupBD2FA3C4) 
integ-ec2-machine-image-test |  2/53 | 1:12:31 AM | DELETE_IN_PROGRESS   | AWS::EC2::VPCGatewayAttachment        | Vpc/VPCGW (VpcVPCGWBF912B6E) 
integ-ec2-machine-image-test |  3/53 | 1:12:32 AM | DELETE_COMPLETE      | AWS::EC2::RouteTable                  | Vpc/PrivateSubnet1/RouteTable (VpcPrivateSubnet1RouteTableB2C5B500) 
integ-ec2-machine-image-test |  4/53 | 1:12:32 AM | DELETE_COMPLETE      | AWS::EC2::RouteTable                  | Vpc/PublicSubnet1/RouteTable (VpcPublicSubnet1RouteTable6C95E38E) 
integ-ec2-machine-image-test |  5/53 | 1:12:32 AM | DELETE_COMPLETE      | AWS::EC2::VPCGatewayAttachment        | Vpc/VPCGW (VpcVPCGWBF912B6E) 
integ-ec2-machine-image-test |  6/53 | 1:12:32 AM | DELETE_COMPLETE      | AWS::EC2::RouteTable                  | Vpc/PublicSubnet2/RouteTable (VpcPublicSubnet2RouteTable94F7E489) 
integ-ec2-machine-image-test |  7/53 | 1:12:32 AM | DELETE_COMPLETE      | AWS::EC2::RouteTable                  | Vpc/PrivateSubnet2/RouteTable (VpcPrivateSubnet2RouteTableA678073B) 
integ-ec2-machine-image-test |  8/53 | 1:12:32 AM | DELETE_COMPLETE      | AWS::EC2::RouteTable                  | Vpc/PublicSubnet3/RouteTable (VpcPublicSubnet3RouteTable93458DBB) 
integ-ec2-machine-image-test |  9/53 | 1:12:32 AM | DELETE_COMPLETE      | AWS::EC2::RouteTable                  | Vpc/PrivateSubnet3/RouteTable (VpcPrivateSubnet3RouteTableD98824C7) 
integ-ec2-machine-image-test | 10/53 | 1:12:32 AM | DELETE_COMPLETE      | AWS::EC2::SecurityGroup               | amzn2/InstanceSecurityGroup (amzn2InstanceSecurityGroup63173C03) 
integ-ec2-machine-image-test | 11/53 | 1:12:32 AM | DELETE_COMPLETE      | AWS::EC2::SecurityGroup               | al2023/InstanceSecurityGroup (al2023InstanceSecurityGroupB018A9BC) 
integ-ec2-machine-image-test | 10/53 | 1:12:32 AM | DELETE_COMPLETE      | AWS::EC2::LaunchTemplate              | LT (LTC4631592) 
integ-ec2-machine-image-test | 11/53 | 1:12:32 AM | DELETE_COMPLETE      | AWS::EC2::SecurityGroup               | al2023WithMinimalAMI/InstanceSecurityGroup (al2023WithMinimalAMIInstanceSecurityGroupBD2FA3C4) 
integ-ec2-machine-image-test | 11/53 | 1:12:33 AM | DELETE_IN_PROGRESS   | AWS::EC2::InternetGateway             | Vpc/IGW (VpcIGWD7BA715C) 
integ-ec2-machine-image-test | 12/53 | 1:12:33 AM | DELETE_COMPLETE      | AWS::EC2::EIP                         | Vpc/PublicSubnet2/EIP (VpcPublicSubnet2EIP3C605A87) 
integ-ec2-machine-image-test | 13/53 | 1:12:33 AM | DELETE_COMPLETE      | AWS::EC2::EIP                         | Vpc/PublicSubnet3/EIP (VpcPublicSubnet3EIP3A666A23) 
integ-ec2-machine-image-test | 13/53 | 1:12:33 AM | DELETE_IN_PROGRESS   | AWS::SSM::Parameter                   | AmiParameter 
integ-ec2-machine-image-test | 14/53 | 1:12:33 AM | DELETE_COMPLETE      | AWS::EC2::EIP                         | Vpc/PublicSubnet1/EIP (VpcPublicSubnet1EIPD7E02669) 
integ-ec2-machine-image-test | 15/53 | 1:12:34 AM | DELETE_COMPLETE      | AWS::SSM::Parameter                   | AmiParameter 
integ-ec2-machine-image-test | 16/53 | 1:12:40 AM | DELETE_COMPLETE      | AWS::IAM::Role                        | al2023/InstanceRole (al2023InstanceRoleECC2D6DD) 
integ-ec2-machine-image-test | 17/53 | 1:12:40 AM | DELETE_COMPLETE      | AWS::IAM::Role                        | al2023WithMinimalAMI/InstanceRole (al2023WithMinimalAMIInstanceRoleD28B1D5E) 
integ-ec2-machine-image-test | 18/53 | 1:12:40 AM | DELETE_COMPLETE      | AWS::IAM::Role                        | amzn2/InstanceRole (amzn2InstanceRole3F1DBBD2) 
integ-ec2-machine-image-test | 19/53 | 1:12:54 AM | DELETE_COMPLETE      | AWS::EC2::InternetGateway             | Vpc/IGW (VpcIGWD7BA715C) 
19/53 Currently in progress: integ-ec2-machine-image-test
integ-ec2-machine-image-test | 20/53 | 1:14:40 AM | DELETE_COMPLETE      | AWS::EC2::Subnet                      | Vpc/PublicSubnet3/Subnet (VpcPublicSubnet3SubnetBE12F0B6) 
integ-ec2-machine-image-test | 21/53 | 1:14:47 AM | DELETE_COMPLETE      | AWS::EC2::Subnet                      | Vpc/PrivateSubnet2/Subnet (VpcPrivateSubnet2Subnet3788AAA1) 
integ-ec2-machine-image-test | 22/53 | 1:14:52 AM | DELETE_COMPLETE      | AWS::EC2::Subnet                      | Vpc/PublicSubnet1/Subnet (VpcPublicSubnet1Subnet5C2D37C4) 
integ-ec2-machine-image-test | 23/53 | 1:14:54 AM | DELETE_COMPLETE      | AWS::EC2::Subnet                      | Vpc/PrivateSubnet3/Subnet (VpcPrivateSubnet3SubnetF258B56E) 
integ-ec2-machine-image-test | 24/53 | 1:14:58 AM | DELETE_COMPLETE      | AWS::EC2::Subnet                      | Vpc/PrivateSubnet1/Subnet (VpcPrivateSubnet1Subnet536B997A) 
integ-ec2-machine-image-test | 25/53 | 1:14:59 AM | DELETE_COMPLETE      | AWS::EC2::Subnet                      | Vpc/PublicSubnet2/Subnet (VpcPublicSubnet2Subnet691E08A3) 
integ-ec2-machine-image-test | 25/53 | 1:14:59 AM | DELETE_IN_PROGRESS   | AWS::EC2::VPC                         | Vpc (Vpc8378EB38) 
integ-ec2-machine-image-test | 24/53 | 1:15:00 AM | DELETE_COMPLETE      | AWS::EC2::VPC                         | Vpc (Vpc8378EB38) 
integ-ec2-machine-image-test | 25/53 | 1:15:01 AM | ROLLBACK_COMPLETE    | AWS::CloudFormation::Stack            | integ-ec2-machine-image-test 

Failed resources:
integ-ec2-machine-image-test | 1:12:27 AM | 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: 0cca0d45-0510-4b82-9576-1d2589aa2780)" (RequestToken: 152e4760-d74b-4a76-e75d-36491373e73f, HandlerErrorCode: InvalidRequest)
integ-ec2-machine-image-test | 1:12:27 AM | 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: 17f570f2-53f6-441c-a07d-08921337908a)" (RequestToken: 7236306f-444c-c440-83c7-cd10d730d3ac, HandlerErrorCode: InvalidRequest)
integ-ec2-machine-image-test | 1:12:27 AM | 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: ca7d552a-ae83-424a-b7a5-3a730ba64a2d)" (RequestToken: a4d1c173-c0b7-eda7-5c86-ee7c2985676d, HandlerErrorCode: InvalidRequest)
integ-ec2-machine-image-test | 1:12:27 AM | 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: bfda61b0-9aae-4190-884a-c888bbcf1eab)" (RequestToken: 2e4ee424-65ca-99b4-3917-732857e5eef7, HandlerErrorCode: InvalidRequest)
integ-ec2-machine-image-test | 1:12:27 AM | 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: 9cef3990-51e9-46f3-8306-b1e946d1132d)" (RequestToken: f9bcb857-f9b1-71db-5129-eb18d24d7505, HandlerErrorCode: InvalidRequest)
integ-ec2-machine-image-test | 1:12:27 AM | 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: d62fed02-2568-4ede-8f32-ad189b22566f)" (RequestToken: 2f75bbe5-fcc8-a8d1-2332-a16374d54c51, 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-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: 0cca0d45-0510-4b82-9576-1d2589aa2780)" (RequestToken: 152e4760-d74b-4a76-e75d-36491373e73f, 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: 17f570f2-53f6-441c-a07d-08921337908a)" (RequestToken: 7236306f-444c-c440-83c7-cd10d730d3ac, 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: ca7d552a-ae83-424a-b7a5-3a730ba64a2d)" (RequestToken: a4d1c173-c0b7-eda7-5c86-ee7c2985676d, 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: bfda61b0-9aae-4190-884a-c888bbcf1eab)" (RequestToken: 2e4ee424-65ca-99b4-3917-732857e5eef7, 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: 9cef3990-51e9-46f3-8306-b1e946d1132d)" (RequestToken: f9bcb857-f9b1-71db-5129-eb18d24d7505, 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: d62fed02-2568-4ede-8f32-ad189b22566f)" (RequestToken: 2f75bbe5-fcc8-a8d1-2332-a16374d54c51, HandlerErrorCode: InvalidRequest)
  FAILED     aws-ec2/test/integ.machine-image-integ-test/DefaultTest (undefined/us-east-1) 217.773s
      Integration test failed: Error: Command exited with status 1

Test Results: 

Tests:    1 failed, 1 total
Error: Some integration tests failed!
    at main (/workspaces/aws-cdk/packages/@aws-cdk/integ-runner/lib/cli.js:166:23)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

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 f6c1e62#diff-6481037221541f788e8e52206ed56ff9f9d3948945623babf841d57f65c3cba2R21, find that all AZs in template.json are like test-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

@phuhung273 phuhung273 added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Nov 5, 2024
@github-actions github-actions bot added the @aws-cdk/aws-ec2 Related to Amazon Elastic Compute Cloud label Nov 5, 2024
@ashishdhingra ashishdhingra self-assigned this Nov 6, 2024
@ashishdhingra ashishdhingra added p2 needs-reproduction This issue needs reproduction. and removed needs-triage This issue or PR still needs to be triaged. labels Nov 6, 2024
@ashishdhingra
Copy link
Contributor

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'].

@ashishdhingra
Copy link
Contributor

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.

@ashishdhingra ashishdhingra added needs-review and removed needs-reproduction This issue needs reproduction. labels Nov 6, 2024
@ashishdhingra
Copy link
Contributor

@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

@ashishdhingra ashishdhingra added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. and removed needs-review labels Nov 7, 2024
@phuhung273
Copy link
Author

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.

@github-actions github-actions bot removed the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Nov 8, 2024
@ashishdhingra
Copy link
Contributor

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.

Copy link

github-actions bot commented Nov 8, 2024

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 8, 2024
@GavinZZ
Copy link
Contributor

GavinZZ commented Nov 13, 2024

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
@aws-cdk/aws-ec2 Related to Amazon Elastic Compute Cloud bug This issue is a bug. p2
Projects
None yet
Development

No branches or pull requests

3 participants