-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
New resource: aws_costoptimizationhub_enrollment_status #36440
New resource: aws_costoptimizationhub_enrollment_status #36440
Conversation
Community NoteVoting for Prioritization
For Submitters
|
…ch resource separately.
3b1a939
to
db0e1db
Compare
I don't know if the service previously returned a value for % aws cost-optimization-hub update-enrollment-status --status Active --include-member-accounts
{
"status": "Active"
}
% aws cost-optimization-hub list-enrollment-statuses
{
"items": [
{
"accountId": "012345678901",
"status": "Active",
"lastUpdatedTimestamp": "2024-09-11T15:31:18.684000-04:00",
"createdTimestamp": "2024-09-11T08:32:31.502000-04:00"
}
],
"includeMemberAccounts": null
}
% aws cost-optimization-hub update-enrollment-status --status Active --no-include-member-accounts
{
"status": "Active"
}
% aws cost-optimization-hub list-enrollment-statuses
{
"items": [
{
"accountId": "012345678901",
"status": "Active",
"lastUpdatedTimestamp": "2024-09-11T15:37:10.419000-04:00",
"createdTimestamp": "2024-09-11T08:32:31.502000-04:00"
}
],
"includeMemberAccounts": null
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your work on this! LGTM 🎉
% make t K=costoptimizationhub
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.0 test ./internal/service/costoptimizationhub/... -v -count 1 -parallel 20 -timeout 360m
=== RUN TestAccCostOptimizationHub_serial
=== PAUSE TestAccCostOptimizationHub_serial
=== RUN TestEndpointConfiguration
=== RUN TestEndpointConfiguration/base_endpoint_envvar
=== RUN TestEndpointConfiguration/package_name_endpoint_config
=== RUN TestEndpointConfiguration/package_name_endpoint_config_overrides_service_config_file
=== RUN TestEndpointConfiguration/service_config_file_overrides_base_config_file
=== RUN TestEndpointConfiguration/use_fips_config
=== RUN TestEndpointConfiguration/service_aws_envvar_overrides_service_config_file
=== RUN TestEndpointConfiguration/base_endpoint_envvar_overrides_service_config_file
=== RUN TestEndpointConfiguration/package_name_endpoint_config_overrides_base_config_file
=== RUN TestEndpointConfiguration/service_aws_envvar_overrides_base_envvar
=== RUN TestEndpointConfiguration/service_aws_envvar_overrides_base_config_file
=== RUN TestEndpointConfiguration/base_endpoint_envvar_overrides_base_config_file
=== RUN TestEndpointConfiguration/base_endpoint_config_file
=== RUN TestEndpointConfiguration/no_config
=== RUN TestEndpointConfiguration/package_name_endpoint_config_overrides_base_envvar
=== RUN TestEndpointConfiguration/service_config_file
=== RUN TestEndpointConfiguration/use_fips_config_with_package_name_endpoint_config
=== RUN TestEndpointConfiguration/package_name_endpoint_config_overrides_aws_service_envvar
=== RUN TestEndpointConfiguration/service_aws_envvar
--- PASS: TestEndpointConfiguration (0.60s)
--- PASS: TestEndpointConfiguration/base_endpoint_envvar (0.03s)
--- PASS: TestEndpointConfiguration/package_name_endpoint_config (0.04s)
--- PASS: TestEndpointConfiguration/package_name_endpoint_config_overrides_service_config_file (0.04s)
--- PASS: TestEndpointConfiguration/service_config_file_overrides_base_config_file (0.03s)
--- PASS: TestEndpointConfiguration/use_fips_config (0.03s)
--- PASS: TestEndpointConfiguration/service_aws_envvar_overrides_service_config_file (0.03s)
--- PASS: TestEndpointConfiguration/base_endpoint_envvar_overrides_service_config_file (0.03s)
--- PASS: TestEndpointConfiguration/package_name_endpoint_config_overrides_base_config_file (0.04s)
--- PASS: TestEndpointConfiguration/service_aws_envvar_overrides_base_envvar (0.03s)
--- PASS: TestEndpointConfiguration/service_aws_envvar_overrides_base_config_file (0.03s)
--- PASS: TestEndpointConfiguration/base_endpoint_envvar_overrides_base_config_file (0.03s)
--- PASS: TestEndpointConfiguration/base_endpoint_config_file (0.02s)
--- PASS: TestEndpointConfiguration/no_config (0.03s)
--- PASS: TestEndpointConfiguration/package_name_endpoint_config_overrides_base_envvar (0.04s)
--- PASS: TestEndpointConfiguration/service_config_file (0.03s)
--- PASS: TestEndpointConfiguration/use_fips_config_with_package_name_endpoint_config (0.04s)
--- PASS: TestEndpointConfiguration/package_name_endpoint_config_overrides_aws_service_envvar (0.04s)
--- PASS: TestEndpointConfiguration/service_aws_envvar (0.02s)
=== CONT TestAccCostOptimizationHub_serial
=== RUN TestAccCostOptimizationHub_serial/EnrollmentStatus
=== RUN TestAccCostOptimizationHub_serial/EnrollmentStatus/basic
=== RUN TestAccCostOptimizationHub_serial/EnrollmentStatus/disappears
=== RUN TestAccCostOptimizationHub_serial/EnrollmentStatus/includeMemberAccounts
--- PASS: TestAccCostOptimizationHub_serial (57.65s)
--- PASS: TestAccCostOptimizationHub_serial/EnrollmentStatus (57.65s)
--- PASS: TestAccCostOptimizationHub_serial/EnrollmentStatus/basic (16.12s)
--- PASS: TestAccCostOptimizationHub_serial/EnrollmentStatus/disappears (16.62s)
--- PASS: TestAccCostOptimizationHub_serial/EnrollmentStatus/includeMemberAccounts (24.90s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/costoptimizationhub 63.344s
|
This functionality has been released in v5.67.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
This change adds a new resource to Cost Optimization Hub
Relations
Related #34588
References
https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/costoptimizationhub
https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_Operations_Cost_Optimization_Hub.html
Output from Acceptance Testing