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.75k stars 9.1k forks source link

Feature Request: AWS Budgets #753

Closed hashibot closed 6 years ago

hashibot commented 7 years ago

This issue was originally opened by @Stephan1984 as hashicorp/terraform#14313. It was migrated here as part of the provider split. The original body of the issue is below.


Hi there,

would be nice, to create AWS Budgets via terraform to monitor costs and resource usage. This is possible via API since Oct 20, 2016: https://aws.amazon.com/de/about-aws/whats-new/2016/10/new-aws-budgets-features-include-api-access-usage-based-budgets-and-more/

API Reference: http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/operations.html

Kind regards Stephan

netflash commented 7 years ago

I've attached the service list in the same form AWS has them in JSON, e.g.

...
    "CostFilters": {
        "Service": [
            "AWS CloudTrail"
        ]
    }
...

The advantage of having this list - service names

Amazon AppStream
Amazon Athena
Amazon Chime
Amazon Cloud Directory
Amazon CloudFront
Amazon CloudSearch
Amazon Cognito
Amazon Cognito Sync
Amazon Connect
Amazon DynamoDB
Amazon EC2 Container Registry (ECR)
Amazon Elastic Compute Cloud
Amazon Elastic File System
Amazon Elastic MapReduce
Amazon Elastic Transcoder
Amazon ElastiCache
Amazon Elasticsearch Service
Amazon GameLift
Amazon Glacier
Amazon Inspector
Amazon Kinesis
Amazon Kinesis Analytics
Amazon Kinesis Firehose
Amazon Lex
Amazon Lightsail
Amazon Machine Learning
Amazon Mobile Analytics
Amazon Pinpoint
Amazon Polly
Amazon QuickSight
Amazon RDS Service
Amazon Redshift
Amazon Rekognition
Amazon Route 53
Amazon Simple Email Service
Amazon Simple Notification Service
Amazon Simple Queue Service
Amazon Simple Storage Service
Amazon Simple Workflow Service
Amazon SimpleDB
Amazon Virtual Private Cloud
Amazon WorkDocs
Amazon WorkSpaces
Amazon WorkSpaces Application Manager
Amazon Zocalo
AmazonCloudWatch
AmazonWorkMail
AWS Budgets
AWS CloudHSM
AWS CloudTrail
AWS CodeCommit
AWS CodeDeploy
AWS CodePipeline
AWS Config
AWS Data Pipeline
AWS Database Migration Service
AWS Device Farm
AWS Direct Connect
AWS Directory Service
AWS Greengrass
AWS Import/Export
AWS Import/Export Snowball
AWS IoT
AWS Key Management Service
AWS Lambda
AWS OpsWorks
AWS Service Catalog
AWS Shield
AWS Snowball Extra Days
AWS Step Functions
AWS Storage Gateway
AWS WAF
AWS X-Ray
CloudWatch Events
CodeBuild
StyleT commented 6 years ago

Any news here? :) I would say that this feature is crucial if you have enterprise scale AWS infrastructure.

StyleT commented 6 years ago

@xchapter7x Hey! I see that you've started working on this. Looking forward to see it in nearest release! Nice job 😎

xchapter7x commented 6 years ago

@StyleT thanks. The PR (https://github.com/terraform-providers/terraform-provider-aws/pull/1879) is just waiting on review/feedback from the hashicorp team. Hope it adds value for the community :)

vrumiantsev commented 6 years ago

Hi Guys, do we have any preliminary date when we expect this implementation? Really need it :)

bflad commented 6 years ago

The new aws_bugdets_budget resource has been merged in via #1879 and will release with v1.17.0 of the AWS provider in about two days.

bflad commented 6 years ago

This has been released in version 1.17.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

afeld commented 6 years ago

Issue around Budget notifications: #4548

ghost commented 4 years ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!