hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.86k stars 9.21k forks source link

[Enhancement]: Add new AWS resources to manage Tax Settings for AWS Accounts #40029

Open CpuID opened 3 weeks ago

CpuID commented 3 weeks ago

Description

It would be awesome if we had resource types in the AWS provider to manage Tax Settings on AWS Accounts. This is super useful to ensure consolidated billing sends a single tax invoice for multiple accounts under an AWS Organization.

The API was released in June 2024

Announcement: https://aws.amazon.com/about-aws/whats-new/2024/06/tax-settings-api-manage-tax-registration-information/

Affected Resource(s) and/or Data Source(s)

Potential Terraform Configuration

resource "aws_taxsettings_registration" "someaccount" {
  account_id        = "012345678912"
  legal_name        = "Some Company"
  registration_id   = "123456789"
  registration_type = "country-specific-string"
  sector            = "country-specific-string"

  legal_address {
    address_line_1     = "123 Smith Street"
    address_line_2     = "Shop 3"
    address_line_3     = ""
    city               = "Smithville"
    country_code       = "US"
    district_or_county = "something"
    postal_code        = "12345"
    state_or_region    = "something"
  }

  additional_tax_information {
    # TODO: there's various country specific entries in the API, cleanest way to handle them? TBC. I suspect these will change over time...
  }
}

References

API docs: https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_Operations_Tax_Settings.html

awscli support exists already (wasn't in 2.17.x, exists in 2.19.1) - docs for awscli https://docs.aws.amazon.com/cli/latest/reference/taxsettings/

Would you like to implement a fix?

No

github-actions[bot] commented 3 weeks ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue