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

Default AWS region #10

Open
axel3rd opened this issue Oct 17, 2022 · 0 comments
Open

Default AWS region #10

axel3rd opened this issue Oct 17, 2022 · 0 comments

Comments

@axel3rd
Copy link

axel3rd commented Oct 17, 2022

Hi,

When this plugin (thx for it 😗 !) is used "as it" (just upload it) in TeamCity 2022.04.4, any build using this build feature fails with:

Unable to load region from any of the providers in the chain software.amazon.awssdk.regions.providers.DefaultAwsRegionProviderChain@62501254: [software.amazon.awssdk.regions.providers.SystemSettingsRegionProvider@6ee21c83: Unable to load region from system settings. Region must be specified either via environment variable (AWS_REGION) or  system property (aws.region)., software.amazon.awssdk.regions.providers.AwsProfileRegionProvider@422105e7: No region provided in profile: default, software.amazon.awssdk.regions.providers.InstanceProfileRegionProvider@2e25e758: Unable to contact EC2 metadata service.]

Although the AWS region seems not really important for aws sts assume-role (The AccessKey/Role could be defined in another region that the given), it seems required for AWS API endpoint reachability.

Adding the AWS region as Java system property (TEAMCITY_SERVER_OPTS=-Daws.region=eu-west-3) solves the problem ; But adding some "server parameters/environment" for a plugin usage is perhaps not a nice way.

=> Adding a new Region: option (at the end of list) with us-east-1 as default could perhaps a good idea ?

Otherwise, supporting parameters coming from config/internal.properties would perhaps a better solution if this kind of new option would be considered as not relevant.

I can provide a PR, but I would like some feelings about the most sustainable way.

Thanks in advance

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

1 participant