Ian Duffy
767914bbdc
[GH-1275] Support for AWS access via IAMs AssumeRole functionality
...
This commit enables terraform to utilise the assume role functionality
of sts to execute commands with different privileges than the API
keys specified.
Signed-off-by: Ian Duffy <ian@ianduffy.ie>
2016-09-02 10:22:57 -07:00
Jesse Mandel
f168c90afa
Update ami.html.markdown
...
typo `i368` to `i386`
2016-09-02 10:22:18 -07:00
Mitchell Hashimoto
f4a7740beb
Merge pull request #8629 from ProcessOut/scaleway-security_group_rule-port-documentation
...
provider/scaleway: Document ports in security group rules properly
2016-09-02 10:06:45 -07:00
Mitchell Hashimoto
652b141755
Update CHANGELOG.md
2016-09-02 10:03:51 -07:00
Mitchell Hashimoto
fad1ce9915
Merge pull request #8620 from hashicorp/b-var-input
...
command: more resilient HCL check for inputs
2016-09-02 10:02:23 -07:00
Mitchell Hashimoto
c84f699158
update HCL vendor
2016-09-02 09:58:05 -07:00
James Nugent
0cf43411f9
Update CHANGELOG.md
2016-09-02 09:55:42 -07:00
James Nugent
bb3a896cee
Merge pull request #8615 from hashicorp/f-aws-s3-bucket-policy
...
provider/aws: Add aws_s3_bucket_policy resource
2016-09-02 11:54:19 -05:00
Louis-Paul Dareau
7adcac2d6c
provider/scaleway: Fix a documentation typo
2016-09-02 12:16:42 -04:00
Louis-Paul Dareau
ab36c4299f
provider/scaleway: Document ports in security group rules properly
2016-09-02 12:10:52 -04:00
James Nugent
93f31fce17
provider/aws: Add aws_s3_bucket_policy resource
...
This commit adds a new "attachment" style resource for setting the
policy of an AWS S3 bucket. This is desirable such that the ARN of the
bucket can be referenced in an IAM Policy Document.
In addition, we now suppress diffs on the (now-computed) policy in the
S3 bucket for structurally equivalent policies, which prevents flapping
because of whitespace and map ordering changes made by the S3 endpoint.
2016-09-02 09:07:54 -07:00
James Nugent
1f04942292
deps: Vendor github.com/jen20/awspolicyequivalence
2016-09-02 09:07:54 -07:00
Paul Stack
4e7edb5431
Update CHANGELOG.md
2016-09-02 17:51:23 +03:00
Joe Topjian
20b25043b6
Merge pull request #8625 from Fodoj/provider-openstack-lb2-better-docs
...
provider/openstack: Fix documentation of openstack LBaaS resources
2016-09-02 08:39:45 -06:00
Paul Stack
d5b869732b
Merge pull request #8628 from hashicorp/b-aws-alb-computed
...
provider/aws: Making `aws_alb_listener` ssl_policy to be Computed
2016-09-02 17:33:02 +03:00
Clint
740b8bb9cb
provider/aws: Run errcheck in tests ( #8579 )
...
* provider/aws: Add errcheck to Makefile, error on unchecked errors
* more exceptions
* updates for errcheck to pass
* reformat and spilt out the ignore statements
* narrow down ignores
* fix typo, only ignore Close and Write, instead of close or write
2016-09-02 09:24:17 -05:00
stack72
d236a305ea
provider/aws: Making `aws_alb_listener` ssl_policy to be Computed
...
Fixes #8612
The SSL Policy is optional - if you don't add it and create a HTTPS Alb
Listener, AWS will add the policy for you. Without being computed, we
would get a diff
```
% make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSALBListener_'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2016/09/02 17:16:33 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSALBListener_
-timeout 120m
=== RUN TestAccAWSALBListener_basic
--- PASS: TestAccAWSALBListener_basic (70.45s)
=== RUN TestAccAWSALBListener_https
--- PASS: TestAccAWSALBListener_https (63.20s)
PASS
ok github.com/hashicorp/terraform/builtin/providers/aws 133.667s
```
2016-09-02 17:21:02 +03:00
stack72
04a77b343b
Merge branch 'master' of github.com:hashicorp/terraform
2016-09-02 17:09:08 +03:00
stack72
651eba7d97
Merge branch 'liamjbennett-aws_ssm_association'
2016-09-02 17:08:33 +03:00
stack72
f9183da2e3
provider/aws: Changing the tests for `aws_ssm_association` to align with
...
us-west-2
```
% make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSSSMAssociation_'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2016/09/02 16:56:09 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/aws -v
-run=TestAccAWSSSMAssociation_ -timeout 120m
=== RUN TestAccAWSSSMAssociation_basic
--- PASS: TestAccAWSSSMAssociation_basic (136.23s)
PASS
ok github.com/hashicorp/terraform/builtin/providers/aws 136.246s
```
2016-09-02 17:04:43 +03:00
liamjbennett
e98e5fb017
provider/aws: add aws_ssm_association resource
2016-09-02 16:46:05 +03:00
Sander van Harmelen
0ea4777257
Update CHANGELOG.md
2016-09-02 15:45:44 +02:00
Sander van Harmelen
5163554a9e
Update CHANGELOG.md
2016-09-02 15:45:27 +02:00
Sander van Harmelen
47dd1ad153
Add wildcard (match all) support to ignore_changes ( #8599 )
2016-09-02 15:44:35 +02:00
Paul Stack
370be7df67
Update CHANGELOG.md
2016-09-02 16:26:37 +03:00
Paul Stack
7ed729507c
Merge pull request #8623 from qivers/master
...
Increase aws_rds_cluster timeout to 40 minutes
2016-09-02 14:25:42 +01:00
Kirill Shirinkin
b4ac5bcf17
provider/openstack: Fix the list of available LB methods for LB pool
2016-09-02 07:54:29 -05:00
Kirill Shirinkin
52f130cb64
provider/openstack: Fix documentaion for whole LBaaS v2 group
2016-09-02 07:51:44 -05:00
Kirill Shirinkin
3468b6d9f1
provider/openstack: Improve documentation of openstack lb v2 member
2016-09-02 07:35:14 -05:00
qivers
4b694a4fec
Increase aws_rds_cluster timeout to 40 minutes
...
The timeout was increased to 40 minutes when creating a new cluster in https://github.com/hashicorp/terraform/pull/8052 . However when creating a cluster from a snapshot the timeout is still 15 minutes. I've increased this to 40 minutes.
2016-09-02 08:55:43 +01:00
stack72
3c71783d07
provider/aws: Set `apply_method` to state in `aws_db_parameter_group`
...
Fixes #8593
```
% make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSDBParameterGroup_'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2016/09/01 13:04:22 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/aws -v
-run=TestAccAWSDBParameterGroup_ -timeout 120m
=== RUN TestAccAWSDBParameterGroup_importBasic
--- PASS: TestAccAWSDBParameterGroup_importBasic (27.03s)
=== RUN TestAccAWSDBParameterGroup_limit
--- PASS: TestAccAWSDBParameterGroup_limit (48.54s)
=== RUN TestAccAWSDBParameterGroup_basic
--- PASS: TestAccAWSDBParameterGroup_basic (46.29s)
=== RUN TestAccAWSDBParameterGroup_Only
--- PASS: TestAccAWSDBParameterGroup_Only (23.57s)
PASS
ok github.com/hashicorp/terraform/builtin/providers/aws 145.445s
```
2016-09-02 08:26:46 +01:00
Paul Stack
827a899c9b
Merge pull request #8619 from BabakMN/fix-iam-policy-document-documentation
...
Add missing json attribute to documentation for aws_iam_policy_document
2016-09-02 08:11:22 +01:00
Paul Stack
4b63c88947
Update CHANGELOG.md
2016-09-02 08:09:33 +01:00
Paul Stack
05994cef31
Merge pull request #7694 from jtopjian/provider-rabbitmq
...
RabbitMQ Provider
2016-09-02 08:08:18 +01:00
Evan Brown
3a3b4e9244
Merge pull request #8498 from drich10/finite_health_checking
...
provider/google: Use healthcheck names instead of urls when reading target pool
2016-09-01 22:02:41 -07:00
Mitchell Hashimoto
0a2b5de67f
command: more resilient HCL check for inputs
2016-09-01 20:14:10 -07:00
Babak Mahmoudy
28767a20df
Add missing json attribute to documentation
2016-09-02 12:55:14 +10:00
Alfonso Cabrera
30ea22c252
Fix multiple typos ( #8611 )
2016-09-01 15:07:58 -05:00
Joe Topjian
a93cead0f6
vendor: Adding RabbitHole for RabbitMQ Provider
2016-09-01 19:04:42 +00:00
Joe Topjian
239863d417
provider/rabbitmq: script to build acceptance test environment
2016-09-01 19:04:42 +00:00
Joe Topjian
d1e6f5c3dc
provider/rabbitmq: docs
2016-09-01 19:04:41 +00:00
Paul Stack
c31f1f2dd5
Update CHANGELOG.md
2016-09-01 18:37:45 +01:00
Paul Stack
39875ebf65
Merge pull request #8596 from hashicorp/librato-space-already-deleted
...
provider/librato: Refresh space from state when not found
2016-09-01 18:35:43 +01:00
Paul Stack
438a612c63
Update CHANGELOG.md
2016-09-01 18:04:50 +01:00
Paul Stack
94f9e1d4ab
Merge pull request #8607 from hashicorp/arm-reorder-get-request-checks
...
provider/azurerm: Reordering the checks after an Azure API Get
2016-09-01 18:04:24 +01:00
stack72
392f634ff4
provider/azurerm: Reordering the checks after an Azure API Get
...
We are receiving suggestions of a panic as follows:
```
2016/09/01 07:21:55 [DEBUG] plugin: terraform: panic: runtime error: invalid memory address or nil pointer dereference
2016/09/01 07:21:55 [DEBUG] plugin: terraform: [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0xa3170f]
2016/09/01 07:21:55 [DEBUG] plugin: terraform:
2016/09/01 07:21:55 [DEBUG] plugin: terraform: goroutine 114 [running]:
2016/09/01 07:21:55 [DEBUG] plugin: terraform: panic(0x27f4e60, 0xc4200100e0)
2016/09/01 07:21:55 [DEBUG] plugin: terraform: /opt/go/src/runtime/panic.go:500 +0x1a1
2016/09/01 07:21:55 [DEBUG] plugin: terraform: github.com/hashicorp/terraform/builtin/providers/azurerm.resourceArmVirtualMachineRead(0xc4206d8060, 0x2995620, 0xc4204d0000, 0x0, 0x17)
2016/09/01 07:21:55 [DEBUG] plugin: terraform: /opt/gopath/src/github.com/hashicorp/terraform/builtin/providers/azurerm/resource_arm_virtual_machine.go:488 +0x1ff
2016/09/01 07:21:55 [DEBUG] plugin: terraform: github.com/hashicorp/terraform/helper/schema.(*Resource).Refresh(0xc420017a40, 0xc42040c780, 0x2995620, 0xc4204d0000, 0xc42019c990, 0x1, 0x0)
```
This is because the code is as follows:
```
resp, err := client.Get(resGroup, vnetName, name)
if resp.StatusCode == http.StatusNotFound {
d.SetId("")
return nil
}
if err != nil {
return fmt.Errorf("Error making Read request on Azure virtual network peering %s: %s", name, err)
}
```
When a request throws an error, the response object isn't valid. Therefore, we need to flip that code to check the error first
```
resp, err := client.Get(resGroup, vnetName, name)
if err != nil {
return fmt.Errorf("Error making Read request on Azure virtual network peering %s: %s", name, err)
}
if resp.StatusCode == http.StatusNotFound {
d.SetId("")
return nil
}
```
2016-09-01 15:31:42 +01:00
Paul Stack
5cf92d086a
Update CHANGELOG.md
2016-09-01 14:46:26 +01:00
Paul Stack
bf755bb5c9
Merge pull request #8585 from hashicorp/f-diff-suppression
...
helper/schema: Add diff suppression callback
2016-09-01 14:46:03 +01:00
Paul Stack
8a811c2775
Merge pull request #8602 from jcalonso/fix/docs
...
Minor typos
2016-09-01 13:28:00 +01:00
Juan Carlos Alonso
cab71c98cd
Minor typos
2016-09-01 11:30:55 +01:00