Cherry-pick #19423 to 7.x: [MetricBeat] add param aws_partition to support aws-cn, aws-us-gov regions#19519
Merged
kaiyan-sheng merged 4 commits intoelastic:7.xfrom Jul 1, 2020
kaiyan-sheng:backport_19423_7.x
Merged
Cherry-pick #19423 to 7.x: [MetricBeat] add param aws_partition to support aws-cn, aws-us-gov regions#19519kaiyan-sheng merged 4 commits intoelastic:7.xfrom kaiyan-sheng:backport_19423_7.x
aws_partition to support aws-cn, aws-us-gov regions#19519kaiyan-sheng merged 4 commits intoelastic:7.xfrom
kaiyan-sheng:backport_19423_7.x
Conversation
Contributor
|
Pinging @elastic/integrations-platforms (Team:Platforms) |
Contributor
❕ Build Aborted
Expand to view the summary
Build stats
Test stats 🧪
Log outputExpand to view the last 100 lines of log output
|
Contributor
Author
|
CI failure should be fixed by #19521 |
Contributor
Author
|
run tests please |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cherry-pick of PR #19423 to 7.x branch. Original message:
What does this PR do?
This PR is to add a parameter
aws_partitionfor metricbeat aws cloudwatch module, so metricbeat can support aws china and aws us-gov account.Why is it important?
Because there are three partitions
aws, aws-cn, aws-us-govof aws regions, now metricbeat can only support aws global region, here is a hardcode.beats/x-pack/metricbeat/module/aws/aws.go
Lines 95 to 100 in 5ba7026
Checklist
CHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.How to test this PR locally
aws_partitionparam in aws module configRelated issues
Use cases
Screenshots
aws global account, set
aws_partition: awsin aws module config or remove the paramaws china account, set
aws_partition: aws-cnin aws module config