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

Add support for aws_batch_compute_environment #1048

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
5268ced
Add support for aws_batch_compute_environment.
shibataka000 Jul 4, 2017
dd51533
Fix document about batch_compute_environment
shibataka000 Aug 28, 2017
8ce14c5
Use const instead of literal in resource_aws_batch_compute_environmen…
shibataka000 Aug 28, 2017
6b487f0
Omit unnecessary parameter in resource_aws_batch_compute_environment.go
shibataka000 Aug 28, 2017
57e0021
Validate compute environment name in resource_aws_batch_compute_envir…
shibataka000 Aug 29, 2017
1646dfe
Write ComputeEnvironmentInput struct to log instead of comput environ…
shibataka000 Aug 29, 2017
6a4a03d
Stop writing log about changing of each fields because of unnecessity
shibataka000 Aug 29, 2017
216c733
Use StateChangeConf to wait status of compute envrionment in AWS Batc…
shibataka000 Aug 29, 2017
b2e8115
Validate format of ARN in resource_aws_batch_compute_environment.go
shibataka000 Aug 29, 2017
bbb09b1
Stop validate that number of compute environment in AWS Batch are not…
shibataka000 Aug 29, 2017
15ebd84
Delete unused testcase in resource_aws_batch_compute_environment_test.go
shibataka000 Aug 29, 2017
b7e9f87
Stop checking that children of compute_resource block has change in r…
shibataka000 Aug 29, 2017
e9672f2
Fix document
shibataka000 Sep 11, 2017
a494850
Use of constants from the SDK
shibataka000 Sep 11, 2017
ec89dc0
Use the validateArn function
shibataka000 Sep 11, 2017
a459665
Move validateBatchComputeEnvironmentName function to validators.go
shibataka000 Sep 11, 2017
73180b4
Move codes reading compute_resources to a flatten function
shibataka000 Sep 19, 2017
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 @@ -18,6 +18,7 @@ import (
"github.com/aws/aws-sdk-go/service/apigateway"
"github.com/aws/aws-sdk-go/service/applicationautoscaling"
"github.com/aws/aws-sdk-go/service/autoscaling"
"github.com/aws/aws-sdk-go/service/batch"
"github.com/aws/aws-sdk-go/service/cloudformation"
"github.com/aws/aws-sdk-go/service/cloudfront"
"github.com/aws/aws-sdk-go/service/cloudtrail"
Expand Down Expand Up @@ -176,6 +177,7 @@ type AWSClient struct {
wafconn *waf.WAF
wafregionalconn *wafregional.WAFRegional
iotconn *iot.IoT
batchconn *batch.Batch
}

func (c *AWSClient) S3() *s3.S3 {
Expand Down Expand Up @@ -384,6 +386,7 @@ func (c *Config) Client() (interface{}, error) {
client.ssmconn = ssm.New(sess)
client.wafconn = waf.New(sess)
client.wafregionalconn = wafregional.New(sess)
client.batchconn = batch.New(sess)

// Workaround for https://github.com/aws/aws-sdk-go/issues/1376
client.kinesisconn.Handlers.Retry.PushBack(func(r *request.Request) {
Expand Down
1 change: 1 addition & 0 deletions aws/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,7 @@ func Provider() terraform.ResourceProvider {
"aws_waf_sql_injection_match_set": resourceAwsWafSqlInjectionMatchSet(),
"aws_wafregional_byte_match_set": resourceAwsWafRegionalByteMatchSet(),
"aws_wafregional_ipset": resourceAwsWafRegionalIPSet(),
"aws_batch_compute_environment": resourceAwsBatchComputeEnvironment(),
},
ConfigureFunc: providerConfigure,
}
Expand Down
Loading