aws-genai-llm-chatbot icon indicating copy to clipboard operation
aws-genai-llm-chatbot copied to clipboard

S3 Bucket Name is Empty when deploying UI Bucket

Open gknorman-amazon opened this issue 1 year ago • 4 comments

I tried deploying today with minimal input (with a private website only accessible in a VPC) during the config process, but the deployed CFN had an empty string for the S3 Bucket Name for the UI hosting bucket:

"UserInterfaceWebsiteBucket2BDEA247": { "Type": "AWS::S3::Bucket", "Properties": { "BucketName": "", "LoggingConfiguration": { "DestinationBucketName": { "Ref": "UserInterfaceWebsiteLogsBucket54728780" } }

I didn't provide a certificate ARN nor a domain name, and I'm not sure if these are necessary to generate the Bucket Name, but I expected there to be an explicit step to name the bucket during configuration if input is actually needed from the user.

gknorman-amazon avatar Apr 10 '24 19:04 gknorman-amazon

In the meantime, I'll fix this the "wrong" way by creating a default bucket name in case the domain name is left empty during the config process in user-interface/index.ts

const defaultBucketNameString = "website-bucket" + cdk.Stack.of(this).account + "-" + cdk.Stack.of(this).region;

const defaultDomainName = props.config.domain ? props.config.domain : defaultBucketNameString;

If I enter my own domain name but I haven't set up my own hosted zone, etc already, will it create it for me? If so, I feel very silly and would ask for an update in config process or the documentation to make us aware of this.

gknorman-amazon avatar Apr 10 '24 20:04 gknorman-amazon

As per the docs you need to do the pre req steps and then pass those values to the installer:

https://aws-samples.github.io/aws-genai-llm-chatbot/documentation/private-chatbot.html

Rob-Powell avatar Apr 10 '24 21:04 Rob-Powell

Can these prereqs be shown / linked to on the Deployment Guide page then?

This is the first time seeing this "Private Chatbot" page since I went straight from the "The Project" page and the "Deployment Guide" link at the bottom of that page. I didn't realize there were any prereqs when I started the Cloud 9 deployment steps.

gknorman-amazon avatar Apr 11 '24 02:04 gknorman-amazon

They are linked to on the left hand side navigation. but there should be validation on those fields in config creation.

Rob-Powell avatar Apr 11 '24 02:04 Rob-Powell

This issue is stale because it has been open for 60 days with no activity.

github-actions[bot] avatar Jun 11 '24 01:06 github-actions[bot]

This issue was closed because it has been inactive for 30 days since being marked as stale.

github-actions[bot] avatar Jul 11 '24 01:07 github-actions[bot]