James Nugent
a9b9986e76
provider/azurerm: Fix azurerm_route
...
```
HTTP_PROXY=http://localhost:8888 make testacc TEST=./builtin/providers/azurerm TESTARGS="-run TestAccAzureRMRoute_"
==> Checking that code complies with gofmt requirements...
/Users/James/Code/go/bin/stringer
go generate $(go list ./... | grep -v /vendor/)
2016/06/01 18:28:38 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/azurerm -v -run TestAccAzureRMRoute_ -timeout 120m
=== RUN TestAccAzureRMRoute_basic
--- PASS: TestAccAzureRMRoute_basic (98.80s)
=== RUN TestAccAzureRMRoute_multipleRoutes
--- PASS: TestAccAzureRMRoute_multipleRoutes (130.77s)
PASS
ok github.com/hashicorp/terraform/builtin/providers/azurerm 229.584s
```
2016-06-01 19:52:56 -05:00
James Nugent
9b9ec7bb6c
provider/azurerm: Fix azurerm_route_table
...
```
HTTP_PROXY=http://localhost:8888 make testacc TEST=./builtin/providers/azurerm TESTARGS="-run TestAccAzureRMRouteTable"
==> Checking that code complies with gofmt requirements...
/Users/James/Code/go/bin/stringer
go generate $(go list ./... | grep -v /vendor/)
2016/06/01 18:19:00 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/azurerm -v -run TestAccAzureRMRouteTable -timeout 120m
=== RUN TestAccAzureRMRouteTable_basic
--- PASS: TestAccAzureRMRouteTable_basic (76.52s)
=== RUN TestAccAzureRMRouteTable_withTags
--- PASS: TestAccAzureRMRouteTable_withTags (92.15s)
=== RUN TestAccAzureRMRouteTable_multipleRoutes
--- PASS: TestAccAzureRMRouteTable_multipleRoutes (98.14s)
PASS
ok github.com/hashicorp/terraform/builtin/providers/azurerm 266.828s
```
2016-06-01 19:52:56 -05:00
James Nugent
5f45521795
provider/azurerm: Fix azurerm_storage_container
...
```
HTTP_PROXY=http://localhost:8888 make testacc TEST=./builtin/providers/azurerm TESTARGS="-run TestAccAzureRMStorageContainer"
==> Checking that code complies with gofmt requirements...
/Users/James/Code/go/bin/stringer
go generate $(go list ./... | grep -v /vendor/)
2016/06/01 18:10:56 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/azurerm -v -run TestAccAzureRMStorageContainer -timeout 120m
=== RUN TestAccAzureRMStorageContainer_basic
--- PASS: TestAccAzureRMStorageContainer_basic (102.16s)
=== RUN TestAccAzureRMStorageContainer_disappears
--- PASS: TestAccAzureRMStorageContainer_disappears (101.05s)
PASS
ok github.com/hashicorp/terraform/builtin/providers/azurerm 203.221s
```
2016-06-01 19:52:56 -05:00
James Nugent
26e2c9bec2
provider/azurerm: Fix azurerm_storage_account
...
```
HTTP_PROXY=http://localhost:8888 make testacc TEST=./builtin/providers/azurerm TESTARGS="-run TestAccAzureRMStorageAccount"
==> Checking that code complies with gofmt requirements...
/Users/James/Code/go/bin/stringer
go generate $(go list ./... | grep -v /vendor/)
2016/06/01 18:05:12 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/azurerm -v -run TestAccAzureRMStorageAccount -timeout 120m
=== RUN TestAccAzureRMStorageAccount_basic
--- PASS: TestAccAzureRMStorageAccount_basic (89.48s)
PASS
ok github.com/hashicorp/terraform/builtin/providers/azurerm 89.491s
```
2016-06-01 19:52:56 -05:00
James Nugent
3831553c72
provider/azurerm: Fix azurerm_public_ip
...
```
HTTP_PROXY=http://localhost:8888 make testacc TEST=./builtin/providers/azurerm TESTARGS="-run TestAccAzureRMPublicIpStatic"
==> Checking that code complies with gofmt requirements...
/Users/James/Code/go/bin/stringer
go generate $(go list ./... | grep -v /vendor/)
2016/06/01 17:09:54 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/azurerm -v -run TestAccAzureRMPublicIpStatic -timeout 120m
=== RUN TestAccAzureRMPublicIpStatic_basic
--- PASS: TestAccAzureRMPublicIpStatic_basic (101.00s)
=== RUN TestAccAzureRMPublicIpStatic_withTags
--- PASS: TestAccAzureRMPublicIpStatic_withTags (125.13s)
=== RUN TestAccAzureRMPublicIpStatic_update
--- PASS: TestAccAzureRMPublicIpStatic_update (128.66s)
PASS
ok github.com/hashicorp/terraform/builtin/providers/azurerm 354.802s
```
2016-06-01 19:52:56 -05:00
James Nugent
876d0269df
provider/azurerm: Fix azurerm_subnet
...
```
make testacc TEST=./builtin/providers/azurerm TESTARGS="-run TestAccAzureRMSubnet"
==> Checking that code complies with gofmt requirements...
/Users/James/Code/go/bin/stringer
go generate $(go list ./... | grep -v /vendor/)
2016/06/01 16:54:37 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/azurerm -v -run TestAccAzureRMSubnet -timeout 120m
=== RUN TestAccAzureRMSubnet_basic
--- PASS: TestAccAzureRMSubnet_basic (131.83s)
PASS
ok github.com/hashicorp/terraform/builtin/providers/azurerm
131.844s
```
2016-06-01 19:52:55 -05:00
James Nugent
36a204506f
provider/azurerm: Fix azurerm_virtual_network
...
```
make testacc TEST=./builtin/providers/azurerm TESTARGS="-run TestAccAzureRMVirtualNetwork"
==> Checking that code complies with gofmt requirements...
/Users/James/Code/go/bin/stringer
go generate $(go list ./... | grep -v /vendor/)
2016/06/01 16:19:17 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/azurerm -v -run TestAccAzureRMVirtualNetwork -timeout 120m
=== RUN TestAccAzureRMVirtualNetwork_basic
--- PASS: TestAccAzureRMVirtualNetwork_basic (206.36s)
=== RUN TestAccAzureRMVirtualNetwork_withTags
--- PASS: TestAccAzureRMVirtualNetwork_withTags (289.05s)
PASS
ok github.com/hashicorp/terraform/builtin/providers/azurerm 495.422s
```
2016-06-01 19:52:55 -05:00
James Nugent
0769674c54
provider/azurerm: Use new library configuration
...
Most resources are commented out at this stage, as they require surgery
to make them work with the new world of the Azure SDK.
2016-06-01 19:52:55 -05:00
Michael Handler
a1e92c6f77
+github_repository_collaborator ( #6861 )
2016-06-02 01:06:35 +01:00
Radek Simko
bf8931b1ab
provider/aws: Mark Lambda function as gone when it's gone ( #6924 )
...
* helper/error: Introduce TimeoutError & UnexpectedStateError
* provider/aws: Mark Lambda function as gone when it's gone
2016-06-02 00:50:43 +01:00
thetuxkeeper
2e49042d10
added mac address parameter ( #6966 )
2016-06-02 00:38:56 +01:00
Clint
d723e1c185
Merge pull request #6955 from paybyphone/paybyphone_cloudfront_origin_access_identity_arn
...
provider/aws: Add iam_arn to aws_cloudfront_origin_access_identity
2016-06-01 15:25:23 -05:00
clint shryock
5add35d654
provider/aws: Add Tags to Test AMIs to help debug leaks
2016-06-01 09:09:41 -05:00
dkalleg
1178293a54
Adding controller creation logic ( #6853 )
...
If a scsi or ide controller does not exist at the time a new disk
or cdrom needs it, we need to add that controller to the vm.
2016-06-01 00:03:33 +01:00
clint shryock
d89a240885
- minor wording update and link to docs
...
- fix error checking
- update debug log on migration
- remove regression test because the attribute is renamed
2016-05-31 16:32:37 -05:00
Chris Marchesi
65824c7725
provider/aws: Add iam_arn to aws_cloudfront_origin_access_identity
...
Add the iam_arn attribute to aws_cloudfront_origin_access_identity,
which computes the IAM ARN for a certain CloudFront origin access
identity.
This is necessary because S3 modifies the bucket policy if CanonicalUser
is sent, causing spurious diffs with aws_s3_bucket resources.
2016-05-31 13:55:49 -07:00
Adam Mielke
97fbeaf59f
add support for geolocation and latency records to aws route53 provider
2016-05-31 15:11:02 -05:00
James Nugent
50a32b5ea4
Merge pull request #6881 from hashicorp/iam-policy-datasource
...
provider/aws: aws_iam_policy_document data source
2016-05-31 10:51:14 -07:00
Paul Hinze
5964f4a85d
Merge pull request #6923 from paybyphone/paybyphone_sensitive_schema
...
core: Adding Sensitive attribute to resource schema
2016-05-31 11:57:54 -05:00
James Nugent
c91d62fda0
provider/aws: aws_iam_policy_document data source
...
This brings over the work done by @apparentlymart and @radeksimko in
PR #3124 , and converts it into a data source for the AWS provider:
This commit adds a helper to construct IAM policy documents using
familiar Terraform concepts. It makes Terraform-style interpolations
easier and resolves the syntax conflict between Terraform interpolations
and IAM policy variables by changing the latter to use &{...} for its
interpolations.
Its use is completely optional and users are free to go on using literal
heredocs, file interpolations or whatever else; this just adds another
option that fits more naturally into a Terraform config.
2016-05-31 11:08:02 -05:00
Chris Marchesi
9d7fb89114
core: Adding Sensitive attribute to resource schema
...
This an effort to address hashicorp/terraform#516 .
Adding the Sensitive attribute to the resource schema, opening up the
ability for resource maintainers to mark some fields as sensitive.
Sensitive fields are hidden in the output, and, possibly in the future,
could be encrypted.
2016-05-29 22:18:44 -07:00
Chris Marchesi
2d65e9dbd2
provider/aws: Add tests for aws_availability_zones data source
...
Closing off my other AWS availability zone branch, I'm adding tests for
the existing aws_availability_zones data source.
This closes hashicorp/terraform#4848 .
2016-05-29 18:23:42 -07:00
djuke
c1eee521f3
reading the aws instance it was assumed that eth0 was the first in the list of network interfaces ( #6761 )
2016-05-29 23:01:58 +01:00
James Nugent
46f81401b9
Merge pull request #6829 from hashicorp/aws-dynamodb-forcenew
...
provider/aws: Change to `aws_dynamodb_table` hash_key forces a new resource
2016-05-29 12:14:58 -07:00
James Nugent
5cb38c5041
Merge pull request #6911 from paybyphone/paybyphone_aws_ami_description_data_source
...
provider/aws: aws_ami_description - data source edition (now aws_ami)
2016-05-29 12:07:33 -07:00
James Nugent
5a0f6565d3
Merge pull request #6672 from apparentlymart/random-provider
...
Logical Resources for Random Values
2016-05-29 11:58:42 -07:00
Chris Marchesi
9ac7fb0276
provider/aws: New data source: aws_ami
...
This data source allows one to look up the most recent AMI for a specific
set of parameters, much like aws ec2 describe-images in the AWS CLI.
Basically a refresh of hashicorp/terraform#4396 , in data source form.
2016-05-29 09:55:12 -07:00
Joe Topjian
c7107e2228
provider/openstack: Devstack and fmt fixes
...
This commit adds the newly required OS_EXT_GW environment variable to
the devstack acceptance environment build suite. It also fixes some
space formatting in a test.
2016-05-28 21:32:49 +00:00
Joe Topjian
3aadc19e02
Merge pull request #6837 from carlpett/f-openstack-floatingip-fixed-binding
...
provider/openstack: Implement fixed_ip on floating ip allocations
2016-05-28 15:30:08 -06:00
Joe Topjian
6430d790e7
Merge pull request #6844 from jtopjian/openstack-instance-network-fnr
...
provider/openstack: Rebuild On Network Changes
2016-05-28 15:10:26 -06:00
Sander van Harmelen
23801b5507
Add the option to assign affinity groups to a VM
2016-05-27 09:46:59 +02:00
Clint
3355c1528d
provider/aws: Fix typo in ELB import test ( #6886 )
2016-05-26 03:38:39 -05:00
clint shryock
6f04c36a1a
provider/aws: Ranomize LB names so tests can run at the same time
2016-05-26 03:37:54 -05:00
Clint
983b6710a5
provider/aws: Add per user, role and group policy attachment (supersedes #5816 ) ( #6858 )
...
* Add per user, role and group policy attachment
* Add docs for new IAM policy attachment resources.
* Make policy attachment resources manage only 1 entity<->policy attachment
* provider/aws: Tidy up IAM Group/User/Role attachments
2016-05-25 11:03:43 -05:00
David Glasser
b3425447e5
provider/aws: fix aws_security_group_rule refresh ( #6730 )
...
When two rules differ only in source security group, EC2 APIs return
them as a single rule, but Terraform requires separate
aws_security_group_rule resources.
6bdab07174
changed Read to set source_security_group_id (and
cidr_blocks) from the rule returned from EC2 and chose the first
source_security_group_id arbitrarily, which is wrong.
Makes TestAccAWSSecurityGroupRule_PartialMatching_Source pass again.
Also adds a comment noting that there is a bug in the new resource
importing feature.
Fixes #6728 .
2016-05-25 10:59:41 -05:00
Calle Pettersson
00be33eb40
Implement fixed_ip on floating ip allocations
2016-05-25 13:50:32 +02:00
Joe Topjian
9f53f77ad9
provider/openstack: Ensure CIDRs Are Lower Case ( #6864 )
...
This commit ensures that CIDR arguments are converted into lower
case values, specifically for IPv6 addresses.
2016-05-25 11:24:07 +01:00
dkalleg
a47ad103e2
Adding volume resource creation to vSphere provider ( #6273 )
...
Allows the user to create a vmdk in vSphere to the given path. In the
future this could support updates for rename and move.
2016-05-25 11:21:16 +01:00
Joe Topjian
f3eae849da
Merge pull request #6454 from cristicalin/neutron_floatingip_tenant_id
...
provider/openstack allow floating ip to target a specific tenant
2016-05-24 20:04:24 -06:00
Paul Stack
1d6493f721
provider/azurerm: Remove storage containers and blobs when storage ( #6855 )
...
accounts are not found
2016-05-24 23:01:26 +01:00
Paul Stack
ce4841e6a6
provider/aws: Add support to `aws_redshift_cluster` for ``iam_roles`` ( #6647 )
2016-05-24 22:44:46 +01:00
Paul Stack
d997b3fb5e
provider/azurerm: Add support for storage container name validation ( #6852 )
2016-05-24 22:30:27 +01:00
James Nugent
1ea727eb13
provider/aws: Add aws_availability_zones source
...
This commit adds a data source with a single list, `instance` for the
schema which gets populated with the availability zones to which an
account has access.
2016-05-24 15:42:45 -05:00
Paul Stack
1df8290134
provider/aws: Support tags for AWS redshift cluster ( #5356 )
2016-05-24 18:43:12 +01:00
Clint
171c1e39d2
provider/aws: SQS use raw policy string if compact fails ( #6724 )
2016-05-24 10:38:32 -05:00
Cristian Calin
d2b33d51b8
provider/openstack allow specifying tenant_id on a floatingip resource
...
Allow a cloud admin to target a specific tenant in which to allocate
a floating IP. This is useful when the cloud admin does not want to
delegate network privileges to the tenants or various Q&A scenarios.
2016-05-24 16:31:09 +03:00
stack72
68d035bc50
provider/aws: Change to `aws_dynamodb_table` hash_key forces a new
...
resource
We had a line on the Update func that said:
```
Hash key can only be specified at creation, you cannot modify it.
```
The resource has now been changed to ForceNew on the hashkey
```
aws_dynamodb_table.demo-user-table: Refreshing state... (ID: Users)
aws_dynamodb_table.demo-user-table: Destroying...
aws_dynamodb_table.demo-user-table: Destruction complete
aws_dynamodb_table.demo-user-table: Creating...
aws_dynamodb_table.demo-user-table: Creation complete
```
2016-05-24 11:39:55 +01:00
Joe Topjian
803522a7ce
provider/openstack: Rebuild On Network Changes
...
This commit makes it so that openstack_compute_instance_v2 resources
are recreated when any network setting (except Floating IPs) is
changed.
2016-05-24 03:47:27 +00:00
James Nugent
ce729c1a82
provider/google: Provide valid config in acctest
...
The changes to allow for testing ID-only refresh conflict with passing
in "" as Config for tests. In this case we instead construct a config
with a known-non-existent bucket name.
2016-05-23 17:20:19 -05:00
dkalleg
a6a6352759
vSphere virtual machine update disk ( #6619 )
...
Changed schema type for disks to support dynamic non-ordered disk
swapping. All Disk attributes have been made non ForceNew since
any changes should be handled in the upgrade() function.
Added 'name' attribute to disks to act as a unique
identifier for when users request for new disks. It is also used as
the filename for the new disk. Templates are considered immutable.
2016-05-23 22:37:06 +01:00