Created
February 25, 2025 00:44
-
-
Save faddah/35bd7be766d8e719f66bb76c11178951 to your computer and use it in GitHub Desktop.
AWS CDK Python Example Bootstrap error from Command Lione
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cdk bootstrap aws://415740581749/us-west-2 | |
⏳ Bootstrapping environment aws://415740581749/us-west-2... | |
Trusted accounts for deployment: (none) | |
Trusted accounts for lookup: (none) | |
Using default execution policy of 'arn:aws:iam::aws:policy/AdministratorAccess'. Pass '--cloudformation-execution-policies' to customize. | |
CDKToolkit: creating CloudFormation changeset... | |
CDKToolkit | 0/10 | 4:36:16 PM | UPDATE_IN_PROGRESS | AWS::CloudFormation::Stack | CDKToolkit User Initiated | |
CDKToolkit | 0/10 | 4:36:19 PM | UPDATE_IN_PROGRESS | AWS::IAM::Role | ImagePublishingRole | |
CDKToolkit | 0/10 | 4:36:19 PM | UPDATE_IN_PROGRESS | AWS::SSM::Parameter | CdkBootstrapVersion | |
CDKToolkit | 0/10 | 4:36:19 PM | UPDATE_IN_PROGRESS | AWS::IAM::Role | LookupRole | |
CDKToolkit | 0/10 | 4:36:19 PM | UPDATE_IN_PROGRESS | AWS::IAM::Role | FilePublishingRole | |
CDKToolkit | 0/10 | 4:36:19 PM | UPDATE_IN_PROGRESS | AWS::S3::Bucket | StagingBucket | |
CDKToolkit | 1/10 | 4:36:20 PM | UPDATE_COMPLETE | AWS::SSM::Parameter | CdkBootstrapVersion | |
CDKToolkit | 2/10 | 4:36:36 PM | UPDATE_COMPLETE | AWS::IAM::Role | LookupRole | |
CDKToolkit | 3/10 | 4:36:36 PM | UPDATE_COMPLETE | AWS::IAM::Role | FilePublishingRole | |
CDKToolkit | 4/10 | 4:36:36 PM | UPDATE_COMPLETE | AWS::IAM::Role | ImagePublishingRole | |
CDKToolkit | 4/10 | 4:36:37 PM | UPDATE_FAILED | AWS::IAM::Policy | ImagePublishingRoleDefaultPolicy Unable to retrieve Arn attribute for AWS::ECR::Repository, with error message null | |
CDKToolkit | 4/10 | 4:36:38 PM | UPDATE_FAILED | AWS::S3::Bucket | StagingBucket Resource update cancelled | |
CDKToolkit | 4/10 | 4:36:38 PM | UPDATE_ROLLBACK_IN_P | AWS::CloudFormation::Stack | CDKToolkit The following resource(s) failed to update: [ImagePublishingRoleDefaultPolicy, StagingBucket]. | |
CDKToolkit | 4/10 | 4:36:41 PM | UPDATE_IN_PROGRESS | AWS::SSM::Parameter | CdkBootstrapVersion | |
CDKToolkit | 4/10 | 4:36:41 PM | UPDATE_IN_PROGRESS | AWS::IAM::Role | LookupRole | |
CDKToolkit | 4/10 | 4:36:41 PM | UPDATE_IN_PROGRESS | AWS::IAM::Role | FilePublishingRole | |
CDKToolkit | 4/10 | 4:36:41 PM | UPDATE_IN_PROGRESS | AWS::IAM::Role | ImagePublishingRole | |
CDKToolkit | 4/10 | 4:36:41 PM | UPDATE_IN_PROGRESS | AWS::S3::Bucket | StagingBucket | |
CDKToolkit | 3/10 | 4:36:42 PM | UPDATE_COMPLETE | AWS::SSM::Parameter | CdkBootstrapVersion | |
CDKToolkit | 2/10 | 4:36:57 PM | UPDATE_COMPLETE | AWS::IAM::Role | FilePublishingRole | |
CDKToolkit | 1/10 | 4:36:57 PM | UPDATE_COMPLETE | AWS::IAM::Role | ImagePublishingRole | |
CDKToolkit | 0/10 | 4:36:58 PM | UPDATE_COMPLETE | AWS::IAM::Role | LookupRole | |
CDKToolkit | 1/10 | 4:36:58 PM | UPDATE_COMPLETE | AWS::IAM::Policy | ImagePublishingRoleDefaultPolicy | |
1/10 Currently in progress: CDKToolkit, StagingBucket | |
CDKToolkit | 1/10 | 4:39:17 PM | UPDATE_FAILED | AWS::S3::Bucket | StagingBucket Resource handler returned message: "The specified bucket does not exist (Service: S3, Status Code: 404, Request ID: 6D98HKX1ST49CRT7, Extended Request ID: FCtptJxslG6FmUGFbfAQJn+k5AEDI5J9iMAYIate5SPno20JTXsKygtEij1GQhEYESlzmB0hd18=)" (RequestToken: 4bf6feda-3af9-2ec2-d628-45de600e4b65, HandlerErrorCode: NotFound) | |
CDKToolkit | 1/10 | 4:39:18 PM | UPDATE_ROLLBACK_FAIL | AWS::CloudFormation::Stack | CDKToolkit The following resource(s) failed to update: [StagingBucket]. | |
Failed resources: | |
CDKToolkit | 4:36:37 PM | UPDATE_FAILED | AWS::IAM::Policy | ImagePublishingRoleDefaultPolicy Unable to retrieve Arn attribute for AWS::ECR::Repository, with error message null | |
CDKToolkit | 4:39:17 PM | UPDATE_FAILED | AWS::S3::Bucket | StagingBucket Resource handler returned message: "The specified bucket does not exist (Service: S3, Status Code: 404, Request ID: 6D98HKX1ST49CRT7, Extended Request ID: FCtptJxslG6FmUGFbfAQJn+k5AEDI5J9iMAYIate5SPno20JTXsKygtEij1GQhEYESlzmB0hd18=)" (RequestToken: 4bf6feda-3af9-2ec2-d628-45de600e4b65, HandlerErrorCode: NotFound) | |
❌ Environment aws://415740581749/us-west-2 failed bootstrapping: _ToolkitError: The stack named CDKToolkit failed to deploy: UPDATE_ROLLBACK_FAILED (The following resource(s) failed to update: [StagingBucket]. ): Unable to retrieve Arn attribute for AWS::ECR::Repository, with error message null, Resource handler returned message: "The specified bucket does not exist (Service: S3, Status Code: 404, Request ID: 6D98HKX1ST49CRT7, Extended Request ID: FCtptJxslG6FmUGFbfAQJn+k5AEDI5J9iMAYIate5SPno20JTXsKygtEij1GQhEYESlzmB0hd18=)" (RequestToken: 4bf6feda-3af9-2ec2-d628-45de600e4b65, HandlerErrorCode: NotFound) | |
at FullCloudFormationDeployment.monitorDeployment (/usr/local/lib/node_modules/aws-cdk/lib/index.js:142870:17) | |
at process.processTicksAndRejections (node:internal/process/task_queues:105:5) | |
at async _BootstrapStack.update (/usr/local/lib/node_modules/aws-cdk/lib/index.js:177611:21) | |
at async /usr/local/lib/node_modules/aws-cdk/lib/index.js:338182:29 { | |
type: 'toolkit' | |
} | |
The stack named CDKToolkit failed to deploy: UPDATE_ROLLBACK_FAILED (The following resource(s) failed to update: [StagingBucket]. ): Unable to retrieve Arn attribute for AWS::ECR::Repository, with error message null, Resource handler returned message: "The specified bucket does not exist (Service: S3, Status Code: 404, Request ID: 6D98HKX1ST49CRT7, Extended Request ID: FCtptJxslG6FmUGFbfAQJn+k5AEDI5J9iMAYIate5SPno20JTXsKygtEij1GQhEYESlzmB0hd18=)" (RequestToken: 4bf6feda-3af9-2ec2-d628-45de600e4b65, HandlerErrorCode: NotFound) | |
(.venv) .venvfaddah@Faddahs-MacBook-Air aws-cdk-python % cdk diff | |
Stack cdk-getting-started | |
Parameters | |
[+] Parameter BootstrapVersion BootstrapVersion: {"Type":"AWS::SSM::Parameter::Value<String>","Default":"/cdk-bootstrap/hnb659fds/version","Description":"Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"} | |
Conditions | |
[+] Condition CDKMetadata/Condition CDKMetadataAvailable: {"Fn::Or":[{"Fn::Or":[{"Fn::Equals":[{"Ref":"AWS::Region"},"af-south-1"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"ap-east-1"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"ap-northeast-1"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"ap-northeast-2"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"ap-northeast-3"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"ap-south-1"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"ap-south-2"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"ap-southeast-1"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"ap-southeast-2"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"ap-southeast-3"]}]},{"Fn::Or":[{"Fn::Equals":[{"Ref":"AWS::Region"},"ap-southeast-4"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"ca-central-1"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"ca-west-1"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"cn-north-1"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"cn-northwest-1"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"eu-central-1"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"eu-central-2"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"eu-north-1"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"eu-south-1"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"eu-south-2"]}]},{"Fn::Or":[{"Fn::Equals":[{"Ref":"AWS::Region"},"eu-west-1"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"eu-west-2"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"eu-west-3"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"il-central-1"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"me-central-1"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"me-south-1"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"sa-east-1"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"us-east-1"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"us-east-2"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"us-west-1"]}]},{"Fn::Equals":[{"Ref":"AWS::Region"},"us-west-2"]}]} | |
Resources | |
[+] AWS::S3::Bucket TestPythonBucket-2025 TestPythonBucket202542734D49 | |
✨ Number of stacks with differences: 1 | |
(.venv) .venvfaddah@Faddahs-MacBook-Air aws-cdk-python % cdk deploy | |
✨ Synthesis time: 3.11s | |
cdk-getting-started: start: Building 6df40cb9b78368a9a67323c236e796d1cfd48488e1460396bf3c162fec4bc33f:current_account-current_region | |
cdk-getting-started: success: Built 6df40cb9b78368a9a67323c236e796d1cfd48488e1460396bf3c162fec4bc33f:current_account-current_region | |
cdk-getting-started: start: Publishing 6df40cb9b78368a9a67323c236e796d1cfd48488e1460396bf3c162fec4bc33f:current_account-current_region | |
cdk-getting-started: fail: No bucket named 'cdk-hnb659fds-assets-415740581749-us-west-2'. Is account 415740581749 bootstrapped? | |
NOTICES (What's this? https://github.com/aws/aws-cdk/wiki/CLI-Notices) | |
31885 (cli): Bootstrap stack outdated | |
Overview: The bootstrap stack in aws://415740581749/us-west-2 is outdated. | |
We recommend at least version 21, distributed with CDK CLI | |
2.149.0 or higher. Please rebootstrap your environment by | |
runing 'cdk bootstrap aws://415740581749/us-west-2' | |
Affected versions: bootstrap: <21 | |
More information at: https://github.com/aws/aws-cdk/issues/31885 | |
If you don’t want to see a notice anymore, use "cdk acknowledge <id>". For example, "cdk acknowledge 31885". | |
Failed to publish asset 6df40cb9b78368a9a67323c236e796d1cfd48488e1460396bf3c162fec4bc33f:current_account-current_region |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment