awslabs/cdk-serverless-clamscan

Deploy Failing

Closed this issue · 2 comments

Running into the following error when running cdk deploy. Note the italics in the top where it says account not bootstrapped. Have checked multiple times and this is returned everytime. Any advice is greatly appreciated!

✅ Environment aws://698817193140/us-east-1 bootstrapped (no changes).

✨ Synthesis time: 4.2s

CdkTestStack: start: Building ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a:current_account-current_region
CdkTestStack: success: Built ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a:current_account-current_region
CdkTestStack: start: Building 2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4:current_account-current_region
CdkTestStack: success: Built 2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4:current_account-current_region
CdkTestStack: start: Publishing ee7de53d64cc9d6248fa6aa550f92358f6c907b5efd6f3298aeab1b5e7ea358a:current_account-current_region
CdkTestStack: start: Building 7d289f9862096a0365073560bf6f447a02ebc74681e6aa4baaaa3a61c8e53bac:current_account-current_region
CdkTestStack: success: Built 7d289f9862096a0365073560bf6f447a02ebc74681e6aa4baaaa3a61c8e53bac:current_account-current_region
CdkTestStack: start: Publishing 2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4:current_account-current_region
CdkTestStack: start: Building f6f92b997c8c412c15cff3053cbdc8698265f95b78fb8ca938c7573b5ad7577c:current_account-current_region
CdkTestStack: success: Built f6f92b997c8c412c15cff3053cbdc8698265f95b78fb8ca938c7573b5ad7577c:current_account-current_region
CdkTestStack: start: Publishing 7d289f9862096a0365073560bf6f447a02ebc74681e6aa4baaaa3a61c8e53bac:current_account-current_region
CdkTestStack: start: Building 1455bb1b5a1b1c4a42e64da2971505cb4e43faa92f5b97ba942aebcc322ac786:current_account-current_region
CdkTestStack: start: Publishing f6f92b997c8c412c15cff3053cbdc8698265f95b78fb8ca938c7573b5ad7577c:current_account-current_region
CdkTestStack: fail: No bucket named 'cdk-hnb659fds-assets-698817193140-us-east-1'. Is account 698817193140 bootstrapped?
CdkTestStack: fail: No bucket named 'cdk-hnb659fds-assets-698817193140-us-east-1'. Is account 698817193140 bootstrapped?
CdkTestStack: fail: No bucket named 'cdk-hnb659fds-assets-698817193140-us-east-1'. Is account 698817193140 bootstrapped?
CdkTestStack: fail: No bucket named 'cdk-hnb659fds-assets-698817193140-us-east-1'. Is account 698817193140 bootstrapped?

#0 building with "desktop-linux" instance using docker driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 682B done
#1 DONE 0.0s

#2 [internal] load metadata for public.ecr.aws/lambda/python:3.12
#2 DONE 0.7s

#3 [internal] load .dockerignore
#3 transferring context: 2B done
#3 DONE 0.0s

#4 [1/4] FROM public.ecr.aws/lambda/python:3.12@sha256:bbc480b7978f410a145932cbe94d5699ac7e1b9897a35876dde2a76e827760cb
#4 DONE 0.0s

#5 [internal] load build context
#5 transferring context: 10.50kB done
#5 DONE 0.0s

#6 [2/4] RUN dnf update -y && dnf -y install clamav clamav-update clamd p7zip && dnf clean all && pip3 install --no-cache-dir cffi awslambdaric boto3 requests aws-lambda-powertools && ln -s /etc/freshclam.conf /tmp/freshclam.conf
#6 CACHED

#7 [3/4] COPY clamd.conf /etc/clamd.conf
#7 CACHED

#8 [4/4] COPY lambda.py /var/task/lambda.py
#8 CACHED
#9 exporting to image
#9 exporting layers done
#9 writing image sha256:1bbc0ccf417e9931b46a06439336ff33c9e5eac0b21d90fbf99d1a8ad299a985 done
#9 naming to docker.io/library/cdkasset-1455bb1b5a1b1c4a42e64da2971505cb4e43faa92f5b97ba942aebcc322ac786 done
#9 DONE 0.0s

View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/eu5yi6hdysrl27xgo4qfgaql5
CdkTestStack: success: Built 1455bb1b5a1b1c4a42e64da2971505cb4e43faa92f5b97ba942aebcc322ac786:current_account-current_region

❌ Deployment failed: Error: Failed to build asset 1455bb1b5a1b1c4a42e64da2971505cb4e43faa92f5b97ba942aebcc322ac786:current_account-current_region
at Deployments.buildSingleAsset (/opt/homebrew/lib/node_modules/aws-cdk/lib/index.js:454:11302)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.buildAsset (/opt/homebrew/lib/node_modules/aws-cdk/lib/index.js:454:197349)
at async /opt/homebrew/lib/node_modules/aws-cdk/lib/index.js:454:181491

Failed to build asset 1455bb1b5a1b1c4a42e64da2971505cb4e43faa92f5b97ba942aebcc322ac786:current_account-current_region

Can you check if the bootstrap bucket still exists?

That did it. The initial deploy got deleted.