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

unable to redeploy #4

Open
reziakk opened this issue Aug 18, 2023 · 1 comment
Open

unable to redeploy #4

reziakk opened this issue Aug 18, 2023 · 1 comment

Comments

@reziakk
Copy link

reziakk commented Aug 18, 2023

I've made a successfully build of the demo, once and I've deleted all the resources at the end. Now, I'm trying to do the same process again and it doesn't creates all resources as it made in the first round.
Already deleted the CDKToolkit template in cloudformation

  • Deleted all buckets
  • Deleted all Lambdas
  • Deleted the Lex bot
  • Deleted the ECR Images and Repository
  • Deleted the Instance in Sagemaker with configuration and model
  • Deleted the SSM configuration

Now it just creates the Asset bucket + ECR Repository + Images and thats it. when I run the cdk deploy
and I'm attempting to do it in the same acocunt and the same region as before.

@carbonless
Copy link

You have to add a qualifier to the cdk.json file for every new build you do beyond the first one.

for example I use something like this: "@aws-cdk/core:bootstrapQualifier": "llama0112a"
then when you bootstrap and deploy you need the following:

cdk --qualifier llama0112a bootstrap
cdk deploy --qualifier llama0112a LexGenAIDemoFilesStack

I also change the Handler so I have a unique name for my endpoint:

In endpoint_handler.py

SAGEMAKER_ENDPOINT_NAME = "huggingface-pytorch-sagemaker-endpoint-llama0112a"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants