-
Notifications
You must be signed in to change notification settings - Fork 435
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
Add support for AWS GovCloud region and add missing ap-northeast-2c AZ #250
Add support for AWS GovCloud region and add missing ap-northeast-2c AZ #250
Conversation
Hi Josh. We haven't finalized the Travis setup yet; this is the cause of the build failure (not your code) |
Regarding the PR itself, can you confirm that the intended use-case is to
|
That's correct. Our GovCloud account's billing data is reported via a standard AWS account. That standard AWS account, in turn, is a member of an AWS Organization which contains other standard AWS accounts, so our billing data buckets in S3 capture billing data from both standard and GovCloud regions. We run ICE outside of GovCloud. |
Ok, great. Can you contribute a small anonymized extract of your GovCloud billing file, with the file name unchanged, expect for the account number that you can obviously hide with 123456...9 ? This is to enable a more complete test of the PR (FilePoller, ...). |
In my case I am processing programmatic billing reports produced by the root account in a consolidated billing hierarchy, so in S3 we have files from a single account, e.g. Within the billing file, the GovCloud usage appears as usage under the associated standard AWS account. For example, if I have a As a concrete example, consider data transfer from standard AWS to an EC2 instance running in GovCloud. In this case, it shows up as a Similarly, for KMS you see things like I hope this provides enough detail. I'm not sure that I can provide any more specifics, such as anonymized billing data extracts, but I don't think that will be necessary because this should be equivalent to the changes for adding a new standard AWS region. |
Thanks for the details! Here is why I was asking for an anonymized data line: we plan to add an automated test suite inside Ice. The way it works is be pretty classic:
This way, people will be free to make contributions with a good insurance that nothing has been broken outside the specific area where the modification has been made. |
Got it. Are there any examples of that style of test data in the current repository? I'm thinking that it might be easiest to take a GovCloud line from my bill, note the GovCloud-specific parts (e.g. |
There aren't any yet. We're working on it. It takes time because we want to make this integrated with our own internal test suite for the SaaS service. And there are many differences between "OSS Ice" and our own internal fork, which makes this integration not so obvious. Making these two tests suites work in the same way has the obvious advantage of ensuring the test suite for OSS is going to be well taken care of in the long run. |
This PR adds support for the AWS GovCloud region and adds the
ap-northeast-2c
AZ (which was missing).GovCloud uses completely separate credentials from standard AWS, so the reservation capacity / utilization pollers will not be able to access it. GovCloud accounts are associated with standard AWS accounts for billing purposes: their usage appears as line items in a standard AWS account's bill and thus can show up in ICE reports, so it's necessary to add this region in order to be able to properly group costs by region.
See https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/usage-and-payment.html for more details on GovCloud billing and payment.