Skip to content

Conversation

@bshutterkion
Copy link
Collaborator

Added

Resources

  • kion_billing_source_aws - Manage AWS commercial billing sources with support for CUR, DBR, and FOCUS reports
  • kion_billing_source_aws_govcloud - Manage AWS GovCloud billing sources with dedicated account type support
  • kion_billing_source_gcp - Manage GCP billing sources with BigQuery export configuration
  • kion_billing_source_oci - Manage OCI billing sources for commercial, government, and federal tenancies
  • kion_ou_cloud_access_role_exemption - Create exemptions for cloud access roles at the OU level
  • kion_Project_cloud_access_role_exemption - Create exemptions for cloud access roles at the Project level
  • kion_spend_report - Create and manage spend reports with scheduling, filtering, and email notification capabilities

Data Sources

  • kion_billing_sources - Query multiple billing sources with filtering support
  • kion_billing_source_gcp - Query individual GCP billing sources
  • kion_ou_cloud_access_role_exemption - Query OU-level cloud access role exemptions
  • kion_Project_cloud_access_role_exemption - Query Project-level cloud access role exemptions
  • kion_spend_report - Query existing spend reports

Models

  • Billing source models for AWS, AWS GovCloud, GCP, and OCI with comprehensive field support
  • Cloud access role exemption models for both OU and Project levels
  • Spend report models with scheduling, filtering, and notification configurations
  • OptionalTime type wrapper for nullable time fields

Helper Functions

  • ValidateSpendReportRequirements - Validates spend report field dependencies and date ranges
  • GetStringFromInterface - Safe string extraction from interface types
  • FindProjectExemptionByID - Find Project exemptions by ID
  • FindOUExemptionByID - Find OU exemptions by ID

Examples

  • Comprehensive examples for all new resources showing various configuration options
  • Data source query examples with filtering

Changed

Provider Configuration

  • Updated provider to register all new resources and data sources
  • Added support for v4 billing source API endpoints

Features

Billing Sources

  • Support for multiple cloud providers (AWS, GCP, OCI) with provider-specific configurations
  • FOCUS report support for modern FinOps workflows
  • Proprietary report support (CUR, DBR for AWS)
  • Cross-account billing bucket access with IAM roles
  • Account creation enablement for automated provisioning
  • Validation for account numbers, date formats, and region specifications

Cloud Access Role Exemptions

  • Exemption management at both OU and Project levels
  • Reason tracking for compliance and audit purposes
  • Support for import functionality
  • Automatic discovery during import operations

Spend Reports

  • Flexible date range options (predefined periods or custom ranges)
  • Multiple spend types (billed, attributed, unattributed, net)
  • Dimensional analysis (account, Project, service, region, etc.)
  • Time granularity options (monthly, daily, hourly)
  • Advanced filtering by OUs, Projects, accounts, regions, services, etc.
  • Scheduled report generation with email notifications
  • External email recipient support
  • User group-based access control
  • Credit and refund deduction options
  • CSV and Excel export formats

Technical Improvements

  • Comprehensive validation for all input fields
  • Retry logic for handling eventual consistency
  • Proper error handling with detailed diagnostic messages
  • Support for import operations on all resources
  • Consistent schema patterns across similar resource types

…eports

  ## Added

  ### Resources
  - `kion_billing_source_aws` - Manage AWS commercial billing sources with support for CUR, DBR, and FOCUS reports
  - `kion_billing_source_aws_govcloud` - Manage AWS GovCloud billing sources with dedicated account type support
  - `kion_billing_source_gcp` - Manage GCP billing sources with BigQuery export configuration
  - `kion_billing_source_oci` - Manage OCI billing sources for commercial, government, and federal tenancies
  - `kion_ou_cloud_access_role_exemption` - Create exemptions for cloud access roles at the OU level
  - `kion_Project_cloud_access_role_exemption` - Create exemptions for cloud access roles at the Project level
  - `kion_spend_report` - Create and manage spend reports with scheduling, filtering, and email notification capabilities

  ### Data Sources
  - `kion_billing_sources` - Query multiple billing sources with filtering support
  - `kion_billing_source_gcp` - Query individual GCP billing sources
  - `kion_ou_cloud_access_role_exemption` - Query OU-level cloud access role exemptions
  - `kion_Project_cloud_access_role_exemption` - Query Project-level cloud access role exemptions
  - `kion_spend_report` - Query existing spend reports

  ### Models
  - Billing source models for AWS, AWS GovCloud, GCP, and OCI with comprehensive field support
  - Cloud access role exemption models for both OU and Project levels
  - Spend report models with scheduling, filtering, and notification configurations
  - `OptionalTime` type wrapper for nullable time fields

  ### Helper Functions
  - `ValidateSpendReportRequirements` - Validates spend report field dependencies and date ranges
  - `GetStringFromInterface` - Safe string extraction from interface types
  - `FindProjectExemptionByID` - Find Project exemptions by ID
  - `FindOUExemptionByID` - Find OU exemptions by ID

  ### Examples
  - Comprehensive examples for all new resources showing various configuration options
  - Data source query examples with filtering

  ## Changed

  ### Provider Configuration
  - Updated provider to register all new resources and data sources
  - Added support for v4 billing source API endpoints

  ## Features

  ### Billing Sources
  - Support for multiple cloud providers (AWS, GCP, OCI) with provider-specific configurations
  - FOCUS report support for modern FinOps workflows
  - Proprietary report support (CUR, DBR for AWS)
  - Cross-account billing bucket access with IAM roles
  - Account creation enablement for automated provisioning
  - Validation for account numbers, date formats, and region specifications

  ### Cloud Access Role Exemptions
  - Exemption management at both OU and Project levels
  - Reason tracking for compliance and audit purposes
  - Support for import functionality
  - Automatic discovery during import operations

  ### Spend Reports
  - Flexible date range options (predefined periods or custom ranges)
  - Multiple spend types (billed, attributed, unattributed, net)
  - Dimensional analysis (account, Project, service, region, etc.)
  - Time granularity options (monthly, daily, hourly)
  - Advanced filtering by OUs, Projects, accounts, regions, services, etc.
  - Scheduled report generation with email notifications
  - External email recipient support
  - User group-based access control
  - Credit and refund deduction options
  - CSV and Excel export formats

  ## Technical Improvements
  - Comprehensive validation for all input fields
  - Retry logic for handling eventual consistency
  - Proper error handling with detailed diagnostic messages
  - Support for import operations on all resources
  - Consistent schema patterns across similar resource types
@bshutterkion bshutterkion requested a review from egramens June 19, 2025 00:00
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

Successfully merging this pull request may close these issues.

2 participants