guyernest / bedrock-agent

Building chat interface to support natural language questions on random datasets, using generative AI on AWS.
5 stars 2 forks source link

Am getting this error #1

Open riush03 opened 1 month ago

riush03 commented 1 month ago

Hello, how do I solve this error failed: ValidationError: Unable to fetch parameters [/bedrock-agent-data/GitHubConnection,/bedrock-agent-data/GitHubRepositoryURL] from parameter store for this account.

guyernest commented 1 month ago

You need to create the GitHub connection manually (see instructions here: https://www.apprunnerworkshop.com/intermediate/github/connect-github/) and then create the parameter in the parameter store. There is no easy CDK option to do it as it requires you to login to your GitHub.

riush03 commented 1 month ago

Ok,thanks

On Fri, Oct 11, 2024 at 6:27 PM Guy @.***> wrote:

You need to create the GitHub connection manually (see instructions here: https://www.apprunnerworkshop.com/intermediate/github/connect-github/) and then create the parameter in the parameter store. There is no easy CDK option to do it as it requires you to login to your GitHub.

— Reply to this email directly, view it on GitHub https://github.com/guyernest/bedrock-agent/issues/1#issuecomment-2408288214, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANHLSLFYEUHU5SMK7TK7K5TZ3B3ITAVCNFSM6AAAAABPYHY66OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBYGI4DQMRRGQ . You are receiving this because you authored the thread.Message ID: @.***>

riush03 commented 1 month ago

And in the case of configuring build , How did you configure build for the FastAPi app

On Sat, Oct 12, 2024 at 12:58 AM Denis Muriungi @.***> wrote:

Ok,thanks

On Fri, Oct 11, 2024 at 6:27 PM Guy @.***> wrote:

You need to create the GitHub connection manually (see instructions here: https://www.apprunnerworkshop.com/intermediate/github/connect-github/) and then create the parameter in the parameter store. There is no easy CDK option to do it as it requires you to login to your GitHub.

— Reply to this email directly, view it on GitHub https://github.com/guyernest/bedrock-agent/issues/1#issuecomment-2408288214, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANHLSLFYEUHU5SMK7TK7K5TZ3B3ITAVCNFSM6AAAAABPYHY66OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBYGI4DQMRRGQ . You are receiving this because you authored the thread.Message ID: @.***>

riush03 commented 1 month ago

I had already connected my account, what i want to know is how toconfigure aws cloudformation describe-stacks in the cli

guyernest commented 1 month ago

All the CDK code is in a single file. Once you created the two parameters in the parameter store:

        github_connection_arn = ssm.StringParameter.value_for_string_parameter(
            self, 
            "/bedrock-agent-data/GitHubConnection"
        )

        repository_url = ssm.StringParameter.value_for_string_parameter(
            self, 
            "/bedrock-agent-data/GitHubRepositoryURL"
        )

You can set the App-Runner service through the CDK stack.