Seth Vargo
bacf5abf3c
Accept "project" as an attribute to GCP resources
...
This is the first step in removing the config dependency on "project".
This change is backwards-compatible because the value for this new
attribute defaults to the value from the provider.
2016-04-10 13:01:24 -04:00
Seth Vargo
fda23a3a31
Switch the order of gcp buildNetworks func to be more go-like
...
The current implementation returns error as the first parameter,
but it is usually the last parameter.
2016-04-10 13:01:23 -04:00
Seth Vargo
d5a9e9b554
Deprecate unused "region" attribute in gcp global_forwarding_rule
2016-04-10 13:01:23 -04:00
Seth Vargo
7e5ca60369
Make GCP provider "project" attribute optional
2016-04-10 13:01:23 -04:00
Joe Topjian
a8a3bd71df
provider/openstack: Enable Token Authentication
...
This commit enables the ability to authenticate to OpenStack by way
of a Keystone Token. Tokens can provide a way to use Terraform and
OpenStack with an expiring, temporary credential. The token will need
to be generated out of band from Terraform.
2016-04-10 03:20:49 +00:00
James Nugent
cf9961d40e
Merge pull request #6098 from hashicorp/sethvargo/core_funcs
...
Use schema funcs for reading values from the env
2016-04-09 12:35:17 -05:00
Hany Fahim
44fc1b5d80
Add project parameter to cloudstack_port_forward.
...
- Add parameter to resource.
- Modify read operation to pass in projectid if defined.
2016-04-09 11:58:57 -04:00
Seth Vargo
68a2a2299e
Use schema funcs for reading values from the env
2016-04-08 17:28:54 -04:00
Ricard Clau
26bc88a1cc
error checks for vsphere create and delete folder ( #6095 )
2016-04-08 16:22:36 -05:00
Hector Rivas Gandara
0fdf91661d
provider/aws: normalize json policy for sns topic policy attribute ( #6089 )
...
* provider/aws: test empty plan with sns_topic policy with random order
If we setup a sns_topic policy with a policy with a different order
to the one set by the AWS API, terraform plan will be not empty between
runs.
* provider/aws: normalize json policy for sns topic
For the policy attribute of the resource aws_sns_topic, AWS returns the policy
in JSON format with the fields in a different order.
If we store and compare the values without normalizing, terraform
will unnecesary trigger and update of the resource.
To avoid that, we must add a normalization function in the StateFunc of
the policy attribute and also when we read the attribute from AWS.
2016-04-08 13:55:49 -05:00
Joe Topjian
28f98c3701
provider/openstack: Allow subnets with no gateway
...
This commit adds a no_gateway attribute. When set, the subnet will
not have a gateway. This is different than not specifying a
gateway_ip since that will cause a default gateway of .1 to be used.
This behavior mirrors the OpenStack Neutron command-line tool.
Fixes #6031
2016-04-08 03:12:49 +00:00
Joe Topjian
82c6afc5a7
Merge pull request #6052 from jtopjian/openstack-fix-disable-dhcp
...
provider/openstack: Fix Disabling DHCP on Subnets
2016-04-07 20:41:43 -06:00
Joe Topjian
b002ce68cd
Merge pull request #6020 from jtopjian/openstack-resize-flavor-name
...
provider/openstack: Allow resizing when Flavor Name changes
2016-04-07 20:37:25 -06:00
Jan Nabbefeld
6bf9f21c39
Opsworks Application support
2016-04-07 14:18:50 -07:00
Paul Hinze
8380a7b03e
provider/aws: Allow multiple EIPs to associate to single ENI
...
When calling AssociateAddress, the PrivateIpAddress parameter must be
used to select which private IP the EIP should associate with, otherwise
the EIP always associates with the _first_ private IP.
Without this parameter, multiple EIPs couldn't be assigned to a single
ENI. Includes covering test and docs update.
Fixes #2997
2016-04-07 13:26:15 -05:00
Joe Topjian
d15a0eb752
provider/openstack: Fix Disabling DHCP on Subnets
...
This commit fixes a bug where "false" was not correctly being passed to
the subnet creation and therefore enabling DHCP on all subnets.
2016-04-06 21:00:27 +00:00
Jeff Tang
be0ebbc22e
Handle race condition with IAM role permissions
2016-04-06 16:04:25 -04:00
David Harris
e698822be5
provider/aws: Renaming `option_settings` attribute to `setting`. Added test to verify that settings are applied to template.
...
Fixes #6035
2016-04-06 11:35:07 -05:00
Martin Atkins
f739ef9849
Human-readable error for failure to read EC2 volume
...
Previously the format string was using %#v, which prints the whole data structure given.
Instead we want to use %s to get the string representation of the error.
This fixes #6038 .
2016-04-06 09:34:10 -07:00
Hector Rivas Gandara
eb4fef1ca1
aws provider: normalize json of cloudwatch event_pattern
...
Normalise the event_pattern of the aws_cloudwatch_event_rule resource
before uploading it to AWS.
AWS seems to accept a event_pattern with a JSON with new lines, but then
the rule does not seem to work. Creating the rule in the AWS console works,
but will setup the pattern as a json without newlines or spaces, and
display a formatted JSON.
2016-04-05 15:56:45 -05:00
Sander van Harmelen
5e6af8e01b
Merge pull request #6010 from svanharmelen/f-deprecate-ipaddress
...
provider/cloudstack: make the CloudStack provider more inline with the other providers
2016-04-05 21:54:23 +02:00
James Nugent
fe4ddba426
Merge pull request #5988 from apparentlymart/consul-key-subtree
...
provider/consul: consul_key_prefix resource
2016-04-05 14:41:01 -05:00
Clint
6f4dc98354
provider/aws: Remove CloudTrail Trail from state if not found
2016-04-05 14:04:00 -05:00
Jeff Tang
b857bd1ce9
add TestCheckExists/TestCheckAttributes for opsworks instance
2016-04-05 13:44:48 -04:00
Clint
053ba9005d
provider/aws: Remove Network ACL from state if not found
2016-04-05 11:11:16 -05:00
Joe Topjian
23b953eea3
provider/openstack: Allow resizing when Flavor Name changes
...
Previously, resizing would only work if the flavor_id changed and
would create an error if the flavor_name changes. This commit fixes
this behavior.
It also quickly refactors the getFlavorID function to use
Gophercloud's IDFromName function. getFlavorID was the basis of
IDFromName so the exact same code is used.
Fixes #5780
2016-04-05 15:31:14 +00:00
Clint
be385b83f8
provider/aws: Fix issue with retrying deletion of Network ACLs
...
Fix retry after removing associations by correctly checking and returning an
error. This should patch the VPC/Resource leak in our nightly acceptance tests.
2016-04-05 10:18:03 -05:00
Jeff Tang
41a8220e0f
add custom_json for opsworks layers
2016-04-05 08:57:19 -04:00
VERDOÏA Laurent
a24207b9b7
provider/docker: #5298 Add support for docker run --user option
2016-04-04 21:43:59 -05:00
KOJIMA Kazunori
d646682d7a
provider/aws: Support S3 bucket notification
...
* Implement aws_s3_bucket_notification resource
2016-04-04 21:23:06 -05:00
Clint
986fcd95f9
provider/google: Accept GOOGLE_CLOUD_KEYFILE_JSON env var for credentials
2016-04-04 16:56:35 -05:00
Sander van Harmelen
fddf3eccc6
Make the CloudStack provider more inline with the other provider
...
It turns out all other providers use `ip_address` where the CloudStack
provider uses `ipaddress`. To make this more consistent this PR
deprecates `ipaddress` and adds `ip_address` where needed…
2016-04-04 22:16:15 +02:00
Clint
b351a72e4c
provider/aws: Normalize and compact SQS Redrive, Policy JSON
...
* provider/aws: Nomralize SQS Redrive Policy JSON
* provider/aws: Fix typo in log statements
* compact the Policy on SNS Queue
* add acceptance test for policy formatting
2016-04-04 11:41:36 -05:00
Sander van Harmelen
f81334fd88
Merge pull request #6004 from svanharmelen/f-cloudstack-static-nat
...
provider/cloudstack: add `cloudstack_static_nat` resource
2016-04-04 18:17:57 +02:00
Sander van Harmelen
e5fecca7cc
Add `cloudstack_static_nat` resource
2016-04-04 15:48:14 +02:00
Paul Stack
fa8ac5a1dc
Merge pull request #5801 from rhyas/docker_image_destroy
...
Fix Image Destroy bug. #3609 #3771
2016-04-03 19:17:52 -05:00
Martin Atkins
d706130a51
consul_key_prefix resource
...
This new resource is an alternative to consul_keys that manages all keys
under a given prefix, rather than arbitrary single keys across the entire
store.
The key advantage of this resource over consul_keys is that it is able to
detect and delete keys that are added outside of Terraform, whereas
consul_keys is only able to detect changes to keys it is explicitly
managing.
2016-04-02 20:37:11 -07:00
David Harris
c3a6cf0620
provider/aws: Adding outputs for elastic_beanstalk_environment resource.
...
refs #5798
2016-04-01 13:58:09 -06:00
David Harris
bb1d4ee886
provider/aws: Add support for `cname_prefix` to `aws_elastic_beanstalk_environment`.
2016-04-01 09:53:10 -06:00
Paul Stack
c10c1b9a11
Merge pull request #5967 from dharrisio/f-aws-elastic-beanstalk-timeout-config
...
Adds `wait_for_ready_timeout` option to `aws_elastic_beanstalk_environment`.
2016-03-31 23:06:29 -05:00
David Harris
a8c7fb0a06
Adds `wait_for_ready_timeout` option to `aws_elastic_beanstalk_environment`.
2016-03-31 17:28:02 -06:00
clint shryock
5ac3c5e53d
update aws db test config
2016-03-31 17:07:04 -05:00
Clint
2ddddf340d
Merge pull request #5964 from hashicorp/b-aws-rds-test-updates
...
provider/aws: Improve the randomization in RDS tests
2016-03-31 16:56:55 -05:00
clint shryock
cbad80182a
randomize DB Parameter Group names
2016-03-31 16:32:05 -05:00
clint shryock
cd5569a624
provider/aws: Improve the randomization in RDS tests
2016-03-31 16:25:38 -05:00
clint shryock
2575b9f5d4
provider/aws: Fix issue re-creating deleted VPC peering connections
2016-03-31 15:23:56 -05:00
Paul Stack
0615819a98
Merge pull request #5940 from stack72/f-aws-redshift-username
...
provider/aws: Change Redshift Cluster Test to check for `_` in username
2016-03-30 21:08:48 -05:00
Paul Stack
a8e0528784
Merge pull request #4277 from ctiwald/ct/add-new-asg-policy-type
...
Add support for "StepScaling" autoscaling policies.
2016-03-30 21:06:39 -05:00
stack72
3a836fa617
provider/aws: Change Redshift Cluster Test to check for `_` in username
2016-03-30 20:55:37 -05:00
Paul Stack
9d49c545af
Merge pull request #5935 from ethangunderson/master
...
Redshift master usernames may contain underscores
2016-03-30 20:54:35 -05:00
James Nugent
980f165bf7
Merge pull request #5910 from grayaii/master
...
Elasticsearch times out. It takes a while to create.
2016-03-30 17:22:06 -07:00
Paul Stack
3dbedc6407
Merge pull request #5787 from iceycake/ISSUE-5702
...
ISSUE-5702: Making the Cloudwatch Event Rule Target target_id optional
2016-03-30 19:17:32 -05:00
Paul Stack
81ac419f13
Merge pull request #5788 from multilinear/mbrewer/datadog_allow_heredoc_for_message
...
Make datadog message, escalation_message, and query work with heredoc
2016-03-30 19:07:33 -05:00
Paul Stack
8ed809456d
Merge pull request #5830 from hashicorp/phinze/asg-health-check-grace-period-default
...
provider/aws: set ASG health_check_grace_period default to 300
2016-03-30 19:05:06 -05:00
stack72
197c6fa143
provider/aws: Test to validate that db subnet group description
...
can be updated
2016-03-30 18:53:52 -05:00
Paul Stack
1801904e36
Merge pull request #5921 from ColinHebert/rds_subnet_group_description
...
provider/aws: DB subnet group description modification
2016-03-30 18:50:33 -05:00
Colin Hebert
1389bb2f5e
Do not check only whether the subnet_ids have changed
2016-03-31 10:37:26 +11:00
Ethan Gunderson
1c5c58d072
Redshift master usernames may contain underscores
2016-03-30 17:41:58 -05:00
Colin Hebert
3ae21f0891
Add the description as a part of the update request
2016-03-31 09:36:42 +11:00
Paul Stack
53434ae09c
Merge pull request #5904 from keymon/bugfix/5661_fix_codecommit_default_branch
...
AWS: codecommit set default_branch only if defined
2016-03-30 11:18:22 -05:00
Hector Rivas Gandara
29c9b8497d
provider/aws: Add tests for default_branch in new codecommit repos
...
The provider should, when working on a new repository without branches:
* Able to create a new repository even with default_branch defined.
* Able to create a new repository without default_branch, and do not fail
if default_branch is defined.
2016-03-30 16:41:20 +01:00
Hector Rivas Gandara
0c49b17f72
provider/aws: codecommit check default_branch before update
...
In AWS codecommit the default branch must have a value unless there are
no branches created, in which case it is not possible to set it to any value.
We query the existing branches and do not update the default branch
if there are none defined remotely.
This solves the issue of the initial creation of the repository with a
resource with `default_branch` defined.
2016-03-30 16:40:41 +01:00
Hector Rivas Gandara
1afd3a53b2
provider/aws: codecommit set default_branch only if defined
...
Do not try to update or reaad the AWS codecommit repository default branch if
the resource definition is not set it or is an empty string.
Fixes #5641
2016-03-30 16:40:37 +01:00
James Nugent
155e7840ba
provider/triton: Fix error for VLAN ID validation
...
Source: https://apidocs.joyent.com/cloudapi/#CreateFabricVLAN
This suggests that the check is correct and the error message and
description are not, so this commit makes them match the docs.
2016-03-29 16:17:47 -07:00
James Nugent
2b34eb5a39
Merge branch 'f-triton-fabric' of https://github.com/asteris-llc/terraform into asteris-llc-f-triton-fabric
2016-03-29 16:17:12 -07:00
Colin Hebert
d7a7db9c5a
provider/aws: Subnet group description modification
...
Do not force a new resource when changing the description of a subnet group
2016-03-30 09:33:44 +11:00
Brian Hicks
df2a192e4a
triton: add fabric resource
2016-03-29 17:13:03 -05:00
Brian Hicks
7332b0ef9e
triton: add VLAN resource
2016-03-29 16:38:34 -05:00
Alex Gray
50c050bb92
Elasticsearch times out. It takes a while to create. lets increase the timeout.
2016-03-29 15:58:40 -04:00
Paul Hinze
faba2b7d31
Merge pull request #5867 from hashicorp/phinze/fix-route-crash
...
provider/aws: fix potential aws_route crashes
2016-03-29 13:20:36 -05:00
Paul Hinze
70096c5ac0
provider/aws: fix potential aws_route crashes
...
Fixes #5865
2016-03-29 09:57:29 -05:00
Clint
163173df7a
Merge pull request #5881 from hashicorp/b-aws-sg-r-protocols
...
provider/aws: Convert protocols to standard format for Security Groups
2016-03-28 13:23:52 -05:00
clint shryock
1a2846072c
update tests to cover icmp
2016-03-28 13:08:53 -05:00
James Nugent
e9d12d5021
Merge pull request #5883 from uber/b-gcp-deprecated-image
...
provider/google: use non-deprecated image in acctests, docs
2016-03-28 12:53:44 -05:00
clint shryock
e98d7d706f
provider/aws: Convert protocols to standard format for Security Groups
...
Convert network protocols to their names for keys/state, fixing issue(s) when
using them interchangeably.
2016-03-28 10:32:39 -05:00
stack72
de4b0a9f00
provider/azurerm: Fix not removing azurerm_storage_account 404 from
...
state
2016-03-27 16:31:55 +01:00
Bill Fumerola
1ccfacd2dd
provider/google: use non-deprecated image in acceptance tests, documentation
2016-03-26 09:55:28 -07:00
Radek Simko
a2c59f071f
Merge pull request #5838 from hashicorp/b-aws-lambda-guard
...
provider/aws: Guard against empty responses from Lambda Permissions
2016-03-25 20:35:57 +00:00
Paul Hinze
6c2b511152
provider/aws: Fix launch_config waiting for IAM instance profile
...
AWS changed their error message, which was being used for detection of
the specific error that indicates we need to wait for IAM propagation.
Behavior is covered by a test now.
Fixes #5862
2016-03-25 13:10:10 -05:00
Sander van Harmelen
3a44fc7b3f
Merge pull request #5587 from hashicorp/b-cloudstack-instance-name
...
Make name optional on cloudstack_instance resource
2016-03-25 17:08:36 +01:00
Sander van Harmelen
5c1f410ebe
Some minor updates and added a proper test
2016-03-25 16:59:03 +01:00
clint shryock
01f868d3e6
provider/aws: Guard against empty responses from Lambda Permissions
2016-03-24 16:30:21 -05:00
Christopher Tiwald
2cf6afa6c1
aws_autoscaling_policy: Add tests for StepScaling policies.
2016-03-24 16:35:54 -04:00
Christopher Tiwald
305a450239
aws_autoscaling_policy: Add support for StepScaling policies.
...
Unlike SimpleScaling policies, StepScaling policies require one or more
"steps", which are interval ranges in which a tracked metric can lie.
Policies can then execute scaling adjustments wedded to these steps.
This commit also adds a slew of additional policy attributes which are
only applicable to step policies.
2016-03-24 16:35:54 -04:00
Clint
c9293cc832
Merge pull request #5814 from hashicorp/provider-fastly-v1
...
provider/fastly: V1 of the Fastly Provider
2016-03-24 10:57:32 -05:00
clint shryock
e8f2afba5d
provider/fastly: Test disappearance and clean up some logs
2016-03-24 10:27:20 -05:00
Jeff Tang
88de250615
style updates to documentation and nil checks
2016-03-24 08:08:01 -04:00
Paul Hinze
6f76fb0702
provider/aws: set ASG health_check_grace_period default to 300
...
Closes #5658
2016-03-23 18:55:37 -05:00
clint shryock
2ad37bba4a
provider/fastly: Add Fastly Provider, ServiceV1 resource
2016-03-23 14:53:50 -05:00
Andy Chan
4115249ce3
ISSUE-5702: Fixed the testing
2016-03-23 11:15:06 -07:00
Andy Chan
76adbefb95
ISSUE-5702: 2nd attempt to impl the target_id be optional
2016-03-23 10:42:53 -07:00
Andy Chan
0eee165a2b
ISSUE-5702: Fixed a bug on target_id generation and related test case
2016-03-23 10:25:13 -07:00
Andy Chan
92590d1ac8
Fixed the test case to check if the targetId is created
2016-03-23 10:25:13 -07:00
Andy Chan
7dc5a272be
ISSUE-5702: Making the CloudWatch Event Rule Target ID optional
2016-03-23 10:25:13 -07:00
Clint
ccb9693994
Merge pull request #5676 from Originate/mb-ensure-iops-is-provided
...
provider/aws: Provide iops when changing storage type to io1 on RDS
2016-03-23 08:31:21 -05:00
Rhyas
3926fa8092
Fix Image Destroy bug. #3609 #3771
2016-03-22 22:56:51 -06:00
Matthew Brewer
4fcb90814f
Make datadog message, escalation_message, and query work with heredoc
2016-03-22 15:18:17 -04:00
Albert Choi
c857b8af58
[clc] collapse tests, code in server dep for lbp
2016-03-22 12:14:04 -07:00
Albert Choi
8de8c6884d
[clc] re-add alias as an optional field. update docs
2016-03-22 11:25:09 -07:00
Paul Hinze
e5e6b571a5
provider/aws: Fix aws_route panic when destination CIDR block is nil
...
Fixes #5754
2016-03-22 10:35:22 -05:00