Skip to content

Fix missing aws region issue when using code artifact.#64

Merged
Linbo-Liu merged 1 commit into
awslabs:mainfrom
Linbo-Liu:main
May 7, 2026
Merged

Fix missing aws region issue when using code artifact.#64
Linbo-Liu merged 1 commit into
awslabs:mainfrom
Linbo-Liu:main

Conversation

@Linbo-Liu
Copy link
Copy Markdown
Contributor

Issue #, if available:
ca = boto3.client("codeartifact") requires an aws region. The current implementation will raise exception:

      raise NoRegionError()                                                                                                                                                                                                                                                                    
  botocore.exceptions.NoRegionError: You must specify a region.

Description of changes:
Get AWS_REGION from dotenv and pass into boto3.client("codeartifact", region_name=region)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@Linbo-Liu Linbo-Liu merged commit 86f7879 into awslabs:main May 7, 2026
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants