Skip to content

Commit

Permalink
Do not pass empty region configuration when deploying Lambdas using F…
Browse files Browse the repository at this point in the history
…unctionbeat manager (#30238)
  • Loading branch information
kvch authored Feb 7, 2022
1 parent 32adc13 commit b49f904
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...main[Check the HEAD dif

*Functionbeat*

- Pass AWS region configuration correctly. {issue}28520[28520] {pull}30238[30238]


*Elastic Logging Plugin*

Expand Down
4 changes: 3 additions & 1 deletion x-pack/functionbeat/manager/aws/cli_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ func NewCLI(
if err != nil {
return nil, fmt.Errorf("failed to get aws credentials, please check AWS credential in config: %+v", err)
}
awsCfg.Region = config.Region
if config.Region != "" {
awsCfg.Region = config.Region
}

builder, err := provider.TemplateBuilder()
if err != nil {
Expand Down

0 comments on commit b49f904

Please sign in to comment.