Skip to content
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_budgets_budget #1879

Merged
merged 52 commits into from
Apr 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
951d77a
basic create budget functionality
xchapter7x Oct 13, 2017
17906ac
use human readable date format and descriptive field names
xchapter7x Oct 13, 2017
6f148e8
add cost filters to budget resource
xchapter7x Oct 14, 2017
6415e94
delete budget on resource destroy
xchapter7x Oct 14, 2017
340e598
fix go vet errors
xchapter7x Oct 14, 2017
4cb6d06
update and read a aws budget from the resource
xchapter7x Oct 15, 2017
97bcd41
handle read of non-existent budget gracefully
xchapter7x Oct 15, 2017
9a6a8f8
employ functions to remove duplication and clarify intent
xchapter7x Oct 16, 2017
1e13127
reuse existing method for budget existence check
xchapter7x Oct 16, 2017
3ff518d
Added documentation for aws_budget resource. (#1)
nicksantamaria Dec 19, 2017
1b6989c
support full set of budget costtypes
xchapter7x Dec 27, 2017
0e8de44
use default for budget time period end
xchapter7x Dec 27, 2017
59f0d26
check proper creation of budget time period
xchapter7x Dec 28, 2017
4906361
enable use of budget name_prefix as alternative to budget name
xchapter7x Dec 28, 2017
86b7872
update defaults budget values and documentation
xchapter7x Dec 28, 2017
9b4051a
dry up budget test configs
xchapter7x Dec 29, 2017
7b78047
create test budget with end date which is always in the future
xchapter7x Dec 29, 2017
e87ac99
align max budget end date with aws api max
xchapter7x Mar 14, 2018
d48b26c
employ naming convention of aws service + resource
xchapter7x Mar 14, 2018
b285871
align filename with service + resource naming
xchapter7x Mar 15, 2018
ac7021c
remove un-needed verbosity in object definition
xchapter7x Mar 15, 2018
f59e0f6
remove deprecated call to Set in AWS budgets SDK
xchapter7x Mar 15, 2018
de427a7
check for errors on budget read and obey demeter
xchapter7x Mar 15, 2018
95fa69e
flatten budget and checks uses separate function
xchapter7x Mar 15, 2018
9886bd2
swap use of Set for struct init with value
xchapter7x Mar 18, 2018
168de4b
add cost_types attr to align with aws budget api
xchapter7x Mar 18, 2018
0c52012
accurate documentation of budget resource
xchapter7x Mar 18, 2018
936a761
remove extraneous functions from budgets resource
xchapter7x Mar 20, 2018
a57aafb
adhere function names in budgets to conventions
xchapter7x Mar 20, 2018
1c9198b
inline test check rather than separate function
xchapter7x Mar 20, 2018
56f8ff6
unmarshal costtypes as separate function
xchapter7x Mar 20, 2018
75a23dc
configure optional account_id for budget
xchapter7x Mar 23, 2018
60f822f
account_id in budget resource docs
xchapter7x Mar 23, 2018
6dc282e
use inline schema definition for budgets budget
xchapter7x Mar 31, 2018
9e5b548
use aws string helper to create pointers
xchapter7x Mar 31, 2018
75238cc
compute name and name prefix for budgets budget
xchapter7x Mar 31, 2018
3f9a125
emit warning when budget is not found
xchapter7x Mar 31, 2018
fff9d15
call read after create budgets budget
xchapter7x Mar 31, 2018
a11c3d7
remove redundant call on resource delete
xchapter7x Mar 31, 2018
68b27cf
define budget name on create only
xchapter7x Mar 31, 2018
2a52025
correct name for budgets budget tests
xchapter7x Apr 13, 2018
f156959
reorder test cases for budgets
xchapter7x Apr 13, 2018
be69ac4
align test config function names to convention
xchapter7x Apr 14, 2018
a792b1a
adjust documentations to match nameing convention
xchapter7x Apr 14, 2018
9034d30
reorder and remove dups from attributes in docs
xchapter7x Apr 14, 2018
0e1ef66
remove custom flat budget test struct
xchapter7x Apr 16, 2018
c62e672
apply naming convention to all test functions
xchapter7x Apr 16, 2018
d2aa264
use resources list to cleanup test budgets
xchapter7x Apr 20, 2018
25b9a86
conform budgetdestroy signature to testdestroy
xchapter7x Apr 20, 2018
f46daf6
rework function signature for exists check
xchapter7x Apr 20, 2018
6708298
support include_discount and use_amortized
xchapter7x Apr 25, 2018
922acf1
correct inconsistent docs for budgets budget
xchapter7x Apr 26, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions aws/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"github.com/aws/aws-sdk-go/service/athena"
"github.com/aws/aws-sdk-go/service/autoscaling"
"github.com/aws/aws-sdk-go/service/batch"
"github.com/aws/aws-sdk-go/service/budgets"
"github.com/aws/aws-sdk-go/service/cloud9"
"github.com/aws/aws-sdk-go/service/cloudformation"
"github.com/aws/aws-sdk-go/service/cloudfront"
Expand Down Expand Up @@ -217,6 +218,7 @@ type AWSClient struct {
mediastoreconn *mediastore.MediaStore
appsyncconn *appsync.AppSync
lexmodelconn *lexmodelbuildingservice.LexModelBuildingService
budgetconn *budgets.Budgets
}

func (c *AWSClient) S3() *s3.S3 {
Expand Down Expand Up @@ -406,6 +408,7 @@ func (c *Config) Client() (interface{}, error) {
}
}

client.budgetconn = budgets.New(sess)
client.acmconn = acm.New(awsAcmSess)
client.apigateway = apigateway.New(awsApigatewaySess)
client.appautoscalingconn = applicationautoscaling.New(sess)
Expand Down
1 change: 1 addition & 0 deletions aws/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ func Provider() terraform.ResourceProvider {
"aws_autoscaling_notification": resourceAwsAutoscalingNotification(),
"aws_autoscaling_policy": resourceAwsAutoscalingPolicy(),
"aws_autoscaling_schedule": resourceAwsAutoscalingSchedule(),
"aws_budgets_budget": resourceAwsBudgetsBudget(),
"aws_cloud9_environment_ec2": resourceAwsCloud9EnvironmentEc2(),
"aws_cloudformation_stack": resourceAwsCloudFormationStack(),
"aws_cloudfront_distribution": resourceAwsCloudFrontDistribution(),
Expand Down
Loading