John Engelman
b784908491
Add documentation and changelog for route53_zone_association
2015-05-14 16:04:36 -05:00
John Engelman
766aead4a5
Add tests for cross region VPC associations.
2015-05-14 16:03:51 -05:00
John Engelman
3507c0618b
cleanup of zone_association resource
2015-05-14 16:03:51 -05:00
Panagiotis Moustafellos
9da89974fc
fix vpc_region param check
2015-05-14 16:03:51 -05:00
Panagiotis Moustafellos
d02e247fc7
renamed region to vpc_region for clarity and made optional, updated tests
2015-05-14 16:03:51 -05:00
Panagiotis Moustafellos
450c42f166
keep clean changeinfo as res id
2015-05-14 16:03:51 -05:00
Panagiotis Moustafellos
9c8748d2dc
providers/aws: resource aws_route53_zone_association
2015-05-14 16:03:51 -05:00
John Engelman
052ff83670
Handle public zones correctly. Check for associate when reading.
2015-05-14 16:03:51 -05:00
John Engelman
8e62a14f29
verify VPC association on private zone
2015-05-14 16:03:50 -05:00
John Engelman
a51bc6007d
DelegationSet is not support in private zones.
2015-05-14 16:03:50 -05:00
John Engelman
bf97d6a80f
AWS/Route53Zone - create private hosted zone associated with VPC.
2015-05-14 16:03:50 -05:00
Paul Hinze
e47987651e
Merge pull request #1970 from hashicorp/f-asg-wait-for-elb-inservice
...
provider/aws: ASGs can wait for ELB InService
2015-05-14 15:09:45 -05:00
Paul Hinze
b56a42627f
provider/aws: ASGs can wait for ELB InService
...
This enhances the waiting strategy introduced in #1839 to wait for each
ASG instance to become InService in attached ELBs before continuing.
2015-05-14 15:03:53 -05:00
Clint
0b548a4a99
Merge pull request #1965 from hashicorp/f-export-cache-cluster-endpoints
...
provider/aws: export elasticache nodes
2015-05-14 14:05:33 -05:00
Clint Shryock
d81e63cc3c
provider/aws: ElastiCache test updates
...
- rename test to have _basic suffix, so we can run it individually
- use us-east-1 for basic test, since that's probably the only region that has
Classic
- update the indexing of nodes; cache nodes are 4 digits
2015-05-14 13:57:01 -05:00
Clint Shryock
10fc184c97
add tags helper library for ElastiCache
2015-05-14 12:32:40 -05:00
Mitchell Hashimoto
32f6eb77f3
Merge pull request #1960 from hashicorp/b-lc-ami
...
provider/aws: bad AMI won't block LC refresh [GH-1901]
2015-05-14 09:58:58 -07:00
Clint Shryock
2809280e98
cleanup
2015-05-14 11:51:08 -05:00
Clint Shryock
d8f3783d09
provider/aws: Add tag support to ElastiCache
2015-05-14 11:44:24 -05:00
Clint Shryock
aad0808cc5
make parameter group optional
2015-05-14 11:12:07 -05:00
Clint Shryock
a552db0c8c
provider/aws: ElastiCache enhancements
...
- request cache node info
- read after create, to populate nodes
2015-05-14 11:10:21 -05:00
Paul Hinze
7d9ee79660
provider/aws: add license_model to db_instance
2015-05-14 09:57:51 -05:00
Paul Hinze
6f3ce6bf3c
WIP export cache nodes
...
Needs to wait for len(cluster.CacheNodes) == cluster.NumCacheNodes, since
apparently that takes a bit of time and the initial response always has
an empty collection of nodes
2015-05-14 09:16:39 -05:00
Mitchell Hashimoto
e7c6cb22c5
provider/aws: bad AMI won't block LC refresh [GH-1901]
2015-05-13 20:28:36 -07:00
Joe Topjian
4daaacd292
Minor volume fixes
...
This commit follows suit of #1897 by fixing volume-related
parameters which allow the volume attach acceptance test
to work. It also re-enables the volume attach test.
2015-05-14 02:59:21 +00:00
Clint Shryock
898fa91595
network acl cleanups
2015-05-12 22:23:55 -05:00
Clint Shryock
f7b6b6b2b5
Strip 'sdk' suffix from methods; it's a remnant
2015-05-12 14:58:10 -05:00
Dave Cunningham
372908cc6f
Merge pull request #980 from BashtonLtd/gce_instance_template_network_update
...
Update Instance Template network definition to match changes to Instance.
2015-05-12 15:46:04 -04:00
Clint Shryock
0dda704cbf
provider/aws: Support multiple subnets in Network ACL
2015-05-12 13:50:28 -05:00
Dave Cunningham
e27393af41
Merge pull request #1894 from dcarley/gce_health_check_defaults
...
provider/gce: Fix updates for http_health_check (set defaults)
2015-05-12 12:29:40 -04:00
Justin Campbell
b8cd6b2bae
providers/aws: Add support for S3 website redirect
2015-05-12 11:24:08 -04:00
Radek Simko
931d05198c
Merge pull request #1886 from TimeIncOSS/subnet-timeout-fix
...
Increase subnet & security group deletion timeout (2 -> 5 mins)
2015-05-12 07:02:28 +01:00
Dave Cunningham
5f15a9d26a
Allow local SSDs, Fix #1088
2015-05-11 21:40:37 -04:00
Joe Topjian
7ca7eeabe7
Added scheduler_hints to the OpenStack instance resource.
...
This allows various hints to be passed to the OpenStack scheduler
that will determine where the instance will be hosted in the cloud.
2015-05-12 01:08:20 +00:00
Joe Topjian
b74e74fc16
ServerGroup Resource
...
This commit adds a server group resource. Users can create server
groups with different policies. If a server is launched in a certain
group, the server will adhere to that policy. For example, servers
can be made to all launch on the same compute node or different compute
nodes.
2015-05-12 01:08:19 +00:00
Mitchell Hashimoto
e1627883b2
Merge pull request #1907 from PeopleNet/rds-update
...
provider/aws: Closes #1906 . Only submit modification requests if there is a change
2015-05-11 16:38:02 -07:00
Mitchell Hashimoto
c9b483d92a
Merge pull request #1910 from PeopleNet/rds-tags
...
Closes #1908 . Parse AccountId from User ARN for RDS tags
2015-05-11 16:37:10 -07:00
Mitchell Hashimoto
cc28d04777
Merge pull request #1911 from hashicorp/b-template-diffs
...
provider/template: don't diff when there's no diff
2015-05-11 16:34:09 -07:00
John Engelman
1798df8e03
Closes #1906 . Only submit modification requests if there is a change
2015-05-11 11:49:43 -05:00
Paul Hinze
a96a3372c6
provider/template: don't diff when there's no diff
...
This reworks the template lifecycle a bit such that we get nicer diff
behavior.
First, we tick ForceNew on for both filename and vars, so that the diff
indicates that the template will be "replaced" on change. This is mostly
cosmetic, but it also tracks conceptually with the fact that the
identifier we use is a hash of the contents, so any change essentially
makes a "new resource".
Second, we change the Exists implementation to only return `false` when
there has been a change in the rendered template. This lets descendent
resources see the computed value changing so that they'll properly
trigger in the plan.
Fixes #1898
Refs #1866 (but does not fix, there's another deeper issue there)
2015-05-11 10:38:19 -05:00
Paul Hinze
2783521960
Merge pull request #1897 from jtopjian/openstack-acctest-fixes
...
provider/openstack: Acceptance Test Fixes
2015-05-11 10:35:24 -05:00
John Engelman
04214c8c1a
Closes #1908 . Parse AccountId from User ARN for RDS tags
2015-05-11 10:32:06 -05:00
Joe Topjian
9c27194ee1
gofmt fixes
2015-05-11 00:58:16 +00:00
Dan Carley
579c37cd74
provider/gce: Set defaults for http_health_check
...
In order to fix the failing test in the preceding commit when optional
params are changed from their default "computed" values.
These weren't working well with `HttpHealthCheck.Patch()` because it was
attempting to set all unspecified params to Go's type defaults (eg. 0 for
int64) which the API rejected.
Changing the call to `HttpHealthCheck.Update()` seemed to fix this but it
still didn't allow you to reset a param back to it's default by no longer
specifying it.
Settings defaults like this, which match the Terraform docs, seems like the
best all round solution. Includes two additional tests for the acceptance
tests which verify the params are really getting set correctly.
2015-05-10 21:20:40 +01:00
Dan Carley
13e9e6f51d
provider/gce: Test updates to http_health_check
...
By first creating a very simple resource that mostly uses the default
values and then changing the two thresholds from their computed defaults.
This currently fails with the following error and will be fixed in a
subsequent commit:
--- FAIL: TestAccComputeHttpHealthCheck_update (5.58s)
testing.go:131: Step 1 error: Error applying: 1 error(s) occurred:
* 1 error(s) occurred:
* 1 error(s) occurred:
* Error patching HttpHealthCheck: googleapi: Error 400: Invalid value for field 'resource.port': '0'. Must be greater than or equal to 1
More details:
Reason: invalid, Message: Invalid value for field 'resource.port': '0'. Must be greater than or equal to 1
Reason: invalid, Message: Invalid value for field 'resource.checkIntervalSec': '0'. Must be greater than or equal to 1
Reason: invalid, Message: Invalid value for field 'resource.timeoutSec': '0'. Must be greater than or equal to 1
2015-05-10 21:20:32 +01:00
Dan Carley
88f4df28ac
provider/gce: Fix whitespace in test fixture
...
Mixture of hard and soft tabs, which isn't picked up by `go fmt` because
it's inside a string. Standardise on hard-tabs since that is what's used
in the rest of the code.
2015-05-10 21:06:33 +01:00
Joe Topjian
fe668a1ac7
Fixing TestAccFWPolicyV1
2015-05-10 04:39:00 +00:00
Joe Topjian
a6b9a63231
Fixing TestAccFWFirewallV1
2015-05-10 04:38:36 +00:00
Joe Topjian
4811112a6a
Fixing TestAccNetworkingV2Subnet_basic
2015-05-10 04:38:06 +00:00
Joe Topjian
feb5a3c6bb
Fixing TestAccNetworkingV2RouterInterface_basic
2015-05-09 23:04:45 +00:00
Joe Topjian
1e7a227ea6
Fixing TestAccNetworkingV2FloatingIP_basic
2015-05-09 22:58:25 +00:00
Joe Topjian
5535a9ba32
Fixing TestAccLBV1Pool_basic
2015-05-09 22:43:40 +00:00
Joe Topjian
de74f3e586
Fixing TestAccLBV1Monitor_basic
2015-05-09 22:26:23 +00:00
Radek Simko
754bcd8307
Increase subnet & security group deletion timeout (2 -> 5 mins)
...
- this should prevent DependencyViolation errors while waiting for larger ASGs to shut down
2015-05-09 22:18:04 +01:00
Joe Topjian
2d512343a0
Fixing TestAccBlockStorageV1Volume_basic
2015-05-09 20:31:34 +00:00
Joe Topjian
04d694fe53
Disabling volume attach test for now
2015-05-09 17:07:50 +00:00
Clint Shryock
eaf96d9d6f
provider/aws: Document AWS ElastiCache cluster
...
- ElastiCache subnet group name is computed
2015-05-08 14:33:41 -05:00
Radek Simko
ce8351ddef
provider/aws: Add FQDN as output to route53_record
2015-05-08 20:19:40 +01:00
Justin Campbell
870b48b1c0
Merge pull request #1865 from justincampbell/s3-region-zone
...
providers/aws: Add hosted_zone_id and region to attributes
2015-05-08 14:49:12 -04:00
Paul Hinze
a28267b886
provider/aws: SG description should be ForceNew
...
Description cannot be handled in Update (there is no ModifySecurityGroup
API call), so we have to recreate to change the description.
Closes #1870
2015-05-08 12:16:54 -05:00
Justin Campbell
73651e2c70
providers/aws: Extract normalizeRegion
2015-05-08 10:49:21 -04:00
Justin Campbell
445f92e48a
providers/aws: Move HostedZoneIDForRegion into TF
2015-05-08 10:49:20 -04:00
Justin Campbell
64d2b495c3
providers/aws: Add region to S3 attrs
2015-05-08 10:02:16 -04:00
Justin Campbell
839688d477
providers/aws: Add hosted_zone_id to S3 attrs
2015-05-08 10:02:16 -04:00
Justin Campbell
d7c9d8702c
providers/aws: Extract website endpoint logic
2015-05-08 10:02:16 -04:00
Felix Rodriguez
60c3ca0430
typo
2015-05-07 23:21:47 +01:00
Clint Shryock
44461f49fd
update structure test
2015-05-07 17:18:47 -05:00
Clint Shryock
70984526a4
Merge remote-tracking branch 'ctiwald/ct/fix-protocol-problem'
...
* ctiwald/ct/fix-protocol-problem:
aws: Document the odd protocol = "-1" behavior in security groups.
aws: Fixup structure_test to handle new expandIPPerms behavior.
aws: Add security group acceptance tests for protocol -1 fixes.
aws: error on expndIPPerms(...) if our ports and protocol conflict.
2015-05-07 17:13:21 -05:00
Clint
4874179e9a
Merge pull request #1843 from ctiwald/ct/fix-network-acls
...
Fix a number of issues in AWS network ACLs
2015-05-07 16:39:10 -05:00
Mitchell Hashimoto
ddad945717
provider/terraform: test fixture
2015-05-07 09:59:23 -07:00
Paul Hinze
1594cb3dbe
provider/aws: remove names from LCs in ASG tests
...
Makes the tests a little more durable if your account happens to end up
with a dangling LC.
2015-05-07 10:14:49 -05:00
Clint Shryock
20ebb38b8f
update s3bucket website tests
2015-05-07 10:13:08 -05:00
Clint
ef62385a95
Merge pull request #1849 from hashicorp/f-aws-update-s3-website-tests
...
update tests so go vet is happy
2015-05-07 10:06:43 -05:00
Clint Shryock
fed42fe1b3
update tests so go vet is happy
2015-05-07 10:03:28 -05:00
Paul Hinze
44e448b8c9
provider/docker: update image sha
...
Should eventually see if there's a way to rework this so it's less
brittle. But for now, we band-aid!
2015-05-07 09:50:16 -05:00
Paul Hinze
28875f49cd
provider/heroku: fix config_vars in addons
...
These were never read properly - on Addons they show up as just a list
of var names, not a Map.
Fixes one issue in Addon acceptance tests.
2015-05-07 09:11:31 -05:00
Paul Hinze
e7b101dba4
provider/aws: elasticache_cluster engine_version is computed
...
fixes the TestAccAWSElasticacheCluster test
2015-05-07 08:47:52 -05:00
Christopher Tiwald
9e8aefcd40
aws: Fix network ACL acceptance tests and add -1 protocol rule.
2015-05-06 23:54:14 -04:00
Christopher Tiwald
5b0d61727e
aws: Only store protocol numbers for ingress/egress rules on ACLs.
...
Users can input a limited number of protocol names (e.g. "tcp") as
inputs to network ACL rules, but the API only supports valid protocol
number:
http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
Preserve the convenience of protocol names and simultaneously support
numbers by only writing numbers to the state file. Also use numbers
when hashing the rules, to keep everything consistent.
2015-05-06 23:54:12 -04:00
Christopher Tiwald
8056b5f8f7
aws: Force users to use valid network masks on ACL ingress/egress
...
AWS will accept any overly-specific IP/mask combination, such as
10.1.2.2/24, but will store it by its implied network: 10.1.2.0/24.
This results in hashing errors, because the remote API will return
hashing results out of sync with the local configuration file.
Enforce a stricter API rule than AWS. Force users to use valid masks,
and run a quick calculation on their input to discover their intent.
2015-05-06 23:53:34 -04:00
Christopher Tiwald
b888b31e08
aws: Force users to use from_port, to_port = 0 on network ACLs with -1 protocol
...
AWS doesn't store ports for -1 protocol rules, thus the read from the
API will always come up with a different hash. Force the user to make a
deliberate port choice when enabling -1 protocol rules. All from_port
and to_port's on these rules must be 0.
2015-05-06 23:51:23 -04:00
Christopher Tiwald
d14049c8ad
aws: Don't try to modify or delete the untouchable network_acl rules.
...
AWS includes default rules with all network ACL resources which cannot
be modified by the user. Don't attempt to store them locally or change
them remotely if they are already stored -- it'll consistently result
in hashing problems.
2015-05-06 23:03:25 -04:00
Christopher Tiwald
03ee059da3
aws: Write ingress/egress rules into a map so they can be set.
...
resourceAwsNetworkAclRead swallowed these errors resulting in rules
that never properly updated. Implement an entry-to-maplist function
that'll allow us to write something that Set knows how to read.
2015-05-06 23:03:24 -04:00
Josh Bleecher Snyder
ed67f8f588
providers/aws: detect credentials more robustly
...
aws hides its credentials in many places:
multiple env vars, config files,
ec2 metadata.
Terraform currently recognizes only the env vars;
to use the other options, you had to put in a
dummy empty value for access_key and secret_key.
Rather than duplicate all aws checks, ask the
aws sdk to fetch credentials earlier.
2015-05-06 20:02:09 -07:00
Paul Hinze
a9678bd252
Merge pull request #1840 from hashicorp/f-aws-asg-handle-scaling-activity-in-progress-errors
...
provider/aws: handle in progress errs from ASG deletes
2015-05-06 19:39:23 -05:00
Paul Hinze
90907c8be5
Merge pull request #1738 from justincampbell/s3-website
...
providers/aws: S3 bucket website support
2015-05-06 19:37:29 -05:00
Paul Hinze
9a286402c3
Merge pull request #1838 from josharian/consul-scheme
...
providers/consul: add scheme argument
2015-05-06 19:09:11 -05:00
Paul Hinze
03530d1285
provider/aws: handle in progress errs from ASG deletes
...
If an AutoScalingGroup is in the middle of performing a Scaling
Activity, it cannot be deleted, and yields a ScalingActivityInProgress
error.
Retry the delete for up to 5m so we don't choke on this error. It's
telling us something's in progress, so we'll keep trying until the
scaling activity completed.
2015-05-06 18:54:59 -05:00
Paul Hinze
761523e8f9
Merge pull request #1839 from hashicorp/f-aws-asg-wait-for-capacity
...
provider/aws: wait for ASG capacity on creation
2015-05-06 18:40:13 -05:00
Paul Hinze
063454e9b8
provider/aws: wait for ASG capacity on creation
...
On ASG creation, waits for up to 10m for desired_capacity or min_size
healthy nodes to show up in the group before continuing.
With CBD and proper HealthCheck tuning, this allows us guarantee safe
ASG replacement.
2015-05-06 18:34:20 -05:00
Josh Bleecher Snyder
30d34908b7
providers/consul: add scheme argument
...
This enables connecting to consul over https
without having to set the envvar CONSUL_HTTP_SSL.
2015-05-06 16:12:32 -07:00
Clint
c44ba73a2a
Merge pull request #1837 from hashicorp/b-fix-aws-sg-vpcid
...
provider/aws: fix issue with reading VPC id in AWS Security Group
2015-05-06 17:01:20 -05:00
Clint Shryock
8705f0f78f
provider/aws: fix issue with reading VPC id in AWS Security Group
2015-05-06 16:54:43 -05:00
Mitchell Hashimoto
4a61d0abc9
provider/aws: do connection draining stuff totally separate
2015-05-06 11:47:06 -07:00
Clint Shryock
acbca8101c
provider/aws: Update Elasticache Subnet test
2015-05-06 13:44:24 -05:00
Mitchell Hashimoto
5378d904a2
provider/aws: remove debug
2015-05-06 11:43:36 -07:00
Mitchell Hashimoto
74665f27c8
provider/aws: must set connection draining timeout separate frrom
...
enabled
2015-05-06 11:43:18 -07:00
Paul Hinze
300bc129a1
Merge pull request #1832 from hashicorp/b-google-instance-template-metadata
...
provider/google: compute template metadata to map
2015-05-06 13:18:38 -05:00
Mitchell Hashimoto
5d12c79d90
provider/aws: retry VGW connection a bit due to eventual consistency
2015-05-06 11:09:51 -07:00
Paul Hinze
75c8396f7a
provider/google: compute template metadata to map
...
Needs to match instance, since shared processing helper functions are
used.
Closes #1665
2015-05-06 12:33:35 -05:00
Mitchell Hashimoto
f2ddb53c8f
provider/aws: only include network in hash if instance is not set
2015-05-06 10:32:17 -07:00
Mitchell Hashimoto
7311019efe
provider/aws: fix incorrect test
2015-05-06 10:20:19 -07:00
Mitchell Hashimoto
4db68cee89
providers/aws: eip network interface is computed
2015-05-06 10:04:38 -07:00
Mitchell Hashimoto
37c56d0084
provider/aws: fix alias test
2015-05-06 09:55:14 -07:00
Clint Shryock
4e717829f8
Merge branch 'master' of github.com:hashicorp/terraform
...
* 'master' of github.com:hashicorp/terraform:
provider/aws: detach VPN gateway with proper ID
update CHANGELOG
provider/aws: Update ARN in instanceProfileReadResult
provider/aws: remove placement_group from acctest
core: module targeting
Added support for more complexly images repos such as images on a private registry that are stored as namespace/name
2015-05-06 11:45:35 -05:00
Mitchell Hashimoto
b184e283b9
provider/aws: detach VPN gateway with proper ID
2015-05-06 09:45:08 -07:00
Clint Shryock
cd90648d4e
provider/aws: Fix acceptance issue with Network Acls
2015-05-06 11:44:09 -05:00
Mitchell Hashimoto
d8485ef506
Merge pull request #1818 from jwthomp/feature/image_name_parse
...
providers/docker: Support for more complexly named image repos
2015-05-06 09:02:41 -07:00
TANABE Ken-ichi
5be4ecdcdb
provider/aws: Update ARN in instanceProfileReadResult
2015-05-07 00:26:57 +09:00
Paul Hinze
010a39a58e
provider/aws: remove placement_group from acctest
...
Depends on there being an existing placement group in the account called
"terraform-placement-group" - we'll need to circle back around to cover
this with AccTests after TF gets an `aws_placement_group` resource.
2015-05-06 10:13:24 -05:00
Clint Shryock
34609c6c22
provider/aws: Change Route 53 record test name, so it can be ran individually
2015-05-06 09:48:15 -05:00
Paul Hinze
66fa633b80
provider/aws: move EBS test into us-west-2
2015-05-06 09:22:34 -05:00
Paul Hinze
bcb4067cb3
provider/aws: update test name
2015-05-06 09:20:40 -05:00
Paul Hinze
7303568469
providers/aws: update test name
2015-05-06 09:18:41 -05:00
Paul Hinze
b91796368f
provider/aws: update test name
2015-05-06 09:18:00 -05:00
Justin Campbell
2745adba56
providers/aws: Test S3 website endpoint attr
2015-05-06 09:41:02 -04:00
Justin Campbell
87e6d3d17f
providers/aws: Fix S3 website error doc
2015-05-06 09:41:02 -04:00
Justin Campbell
0b78a71ed5
providers/aws: Test S3 website removal
2015-05-06 09:41:02 -04:00
Justin Campbell
eeb65b8d4c
providers/aws: Read S3 website config
2015-05-06 09:41:02 -04:00
Paul Hinze
6c6eafa232
provider/aws: removing stray "Ecache" in tests
2015-05-06 08:33:05 -05:00
Justin Campbell
20e531ae0d
providers/aws: Check that S3 website sets docs
2015-05-06 08:15:56 -04:00
Justin Campbell
be84cf8a8c
providers/aws: Add note for us-east-1 empty location
2015-05-06 08:15:56 -04:00
Justin Campbell
348942d3fb
providers/aws: Use GetOk instead of Get + cast
2015-05-06 08:15:56 -04:00
Justin Campbell
562bd6541b
providers/aws: Use explicit returns in websiteEndpoint
2015-05-06 08:15:56 -04:00
Justin Campbell
30f737c781
providers/aws: Change S3 website to block
2015-05-06 08:15:56 -04:00
Justin Campbell
38e04b3765
providers/aws: Add website_endpoint to S3 output
2015-05-06 08:15:55 -04:00
Justin Campbell
b7a9ef5ef6
providers/aws: Add S3 error_document
...
Also fix when index/error document is empty
2015-05-06 08:15:55 -04:00
Justin Campbell
e6d9dcfb1a
providers/aws: Initial S3 bucket website support
2015-05-06 08:15:55 -04:00
Joe Topjian
b54df9bc0b
Fixing TestAccComputeV2FloatingIP_attach
2015-05-06 05:58:58 +00:00
Joe Topjian
219c86ef93
Fixing TestAccComputeV2Instance_floatingIPAttach
2015-05-06 05:53:17 +00:00
Joe Topjian
e76dca9756
Fixing TestAccComputeV2Instance_basic
2015-05-06 05:50:21 +00:00
Paul Hinze
cebcee5c63
Merge pull request #1778 from josharian/template-provider
...
providers: add template provider
2015-05-05 20:09:27 -05:00
Mitchell Hashimoto
1a2bac7645
provider/aws: main route table refresh handles VPC being gone [GH-1806]
2015-05-05 18:07:22 -07:00
Jeff Thompson
8e53355ff3
Added support for more complexly images repos such as images on a private registry that are stored as namespace/name
2015-05-05 23:22:09 +00:00
Clint Shryock
885efa0837
provider/aws: Add Security Group Rule as a top level resource
...
- document conflict with sg rules and sg in-line rules
- for this to work, ingress rules need to be computed
2015-05-05 16:56:39 -05:00
Clint
a4000941c2
Merge pull request #1765 from hashicorp/f-aws-security-group-remove-default-egress
...
provider/aws: Remove default egress rule from Security Group on creation
2015-05-05 16:47:23 -05:00
Mitchell Hashimoto
fb4ac42c65
Merge pull request #1516 from henrikhodne/aws-propagating-vgws
...
provider/aws: add propagating_vgws to route tables
2015-05-05 14:42:45 -07:00
Clint Shryock
eb7c1bb218
fix go formatting
2015-05-05 16:42:08 -05:00
Clint Shryock
e9b08cf31f
revert the required part
2015-05-05 16:23:26 -05:00
Clint Shryock
1ed81da9a9
update ENI test for SG egress constraint
2015-05-05 16:23:26 -05:00
Clint Shryock
85b1756c27
revise tests and check for vpc_id
2015-05-05 16:23:26 -05:00
Clint Shryock
8ded3c2d1b
Move block for deleing default rule into the create method; only invoke once
2015-05-05 16:23:26 -05:00
Clint Shryock
ee65684abe
Add spec for removing default egress rule
2015-05-05 16:23:26 -05:00
Clint Shryock
b145ce88b7
Document Egress+VPC change, update link
2015-05-05 16:23:26 -05:00
Clint Shryock
1558fd1c3e
provider/aws: Remove default egress rule from Security Group on creation
2015-05-05 16:23:25 -05:00
Mitchell Hashimoto
412a2dca0b
Merge pull request #1575 from freshbooks/aws-eni-route
...
provider/aws: Add Elastic Network Interfaces as route destination
2015-05-05 13:28:48 -07:00
Mitchell Hashimoto
1c2d5fbd0a
Merge branch 'f-aws-associate-eip-to-eni' of https://github.com/jstremick/terraform into jstremick-f-aws-associate-eip-to-eni
2015-05-05 13:24:50 -07:00
Clint
18b43b78cb
Merge pull request #939 from bitglue/iam
...
Implement a subset of IAM resources
2015-05-05 15:05:05 -05:00
Clint Shryock
7b082d007e
Merge commit '33183c0'
...
* commit '33183c0':
Implement a hash function for string sets
2015-05-05 15:01:02 -05:00
Mitchell Hashimoto
7a5499d4f7
providers/aws: chain credentials
2015-05-05 10:44:19 -07:00
Mitchell Hashimoto
639f310ae6
Merge pull request #1805 from dupuy/openstack-resource-docs
...
Openstack resource docs
2015-05-05 10:25:30 -07:00
John Engelman
6ee17a8e9e
Add acceptance tests
2015-05-05 12:47:20 -04:00
Phil Frost
b082117e92
Implement AWS IAM resources
...
- Users
- Groups
- Roles
- Inline policies for the above three
- Instance profiles
- Managed policies
- Access keys
This is most of the data types provided by IAM. There are a few things
missing, but the functionality here is probably sufficient for 95% of
the cases. Makes a dent in #28 .
2015-05-05 12:47:20 -04:00
Phil Frost
33183c078b
Implement a hash function for string sets
...
Sets of strings are pretty common. Let's not duplicate the function
necessary to create a set of strings in so many places.
2015-05-05 12:47:18 -04:00
Clint Shryock
272415303d
provider/aws: Shorting retry timeout for Subnets to 2 minutes, from 5
2015-05-05 11:20:29 -05:00
Clint Shryock
3ce3b7c516
provider/aws: Shorting retry timeout for Security Groups to 2 minutes, from 5
2015-05-05 11:07:16 -05:00
Clint Shryock
4b160dd28e
minor cleanups
2015-05-05 10:45:30 -05:00
jba
c50bcf2930
renaming function according to the aws struct
2015-05-05 10:39:25 -05:00
jba
e9215c0676
move accept block to the update func
2015-05-05 10:38:20 -05:00
jba
5658fd6122
clean code
2015-05-05 10:37:13 -05:00
jba
11ba9b1042
add the auto_accecpt option
2015-05-05 10:37:13 -05:00
Alexander Dupuy
2ccaaf204d
fix copy/paste typo in OpenStack FW error messages
2015-05-05 14:01:49 +02:00
Sander van Harmelen
44541c5465
Fixing up some tests after a couple of thorough test rounds
2015-05-05 12:31:21 +02:00
Avi Nanhkoesingh
1411d4010f
Fixes #1 : sets the rights values based on isUUID
2015-05-05 12:31:21 +02:00
Sander van Harmelen
7274de3c1d
Small fix needed to be inline with the updated AWS SDK again...
...
Executed a couple of AWS ACC test as well to make sure everything works
properly again after this fix…
2015-05-05 12:26:26 +02:00
Christopher Tiwald
69e981c0b0
aws: Fixup structure_test to handle new expandIPPerms behavior.
2015-05-04 23:56:54 -04:00
Christopher Tiwald
362a6124e3
aws: Add security group acceptance tests for protocol -1 fixes.
...
These only test ingress rules as egress rules are broken by the
default "0.0.0.0/0" rule Amazon includes with every egressed security
group.
2015-05-04 23:55:32 -04:00
Christopher Tiwald
89bacc0b15
aws: error on expndIPPerms(...) if our ports and protocol conflict.
...
Ingress and egress rules given a "-1" protocol don't have ports when
Read out of AWS. This results in hashing problems, as a local
config file might contain port declarations AWS can't ever return.
Rather than making ports optional fields, which carries with it a huge
headache trying to distinguish between zero-value attributes (e.g.
'to_port = 0') and attributes that are simply omitted, simply force the
user to opt-in when using the "-1" protocol. If they choose to use it,
they must now specify "0" for both to_port and from_port. Any other
configuration will error.
2015-05-04 23:43:31 -04:00
Clint Shryock
81422123e8
provider/aws: Add a regression check for Route 53 records
2015-05-04 17:05:49 -05:00
Mitchell Hashimoto
9ed909c8fe
Merge pull request #1749 from nabeken/aws-proxy-protocol-policy
...
provider/aws: Add proxy protocol support in ELB
2015-05-04 14:04:53 -07:00
Mitchell Hashimoto
8633c88723
Merge pull request #1775 from TimeIncOSS/r53-alias-record
...
aws: Add support for Alias records into AWS Route 53
2015-05-04 14:03:29 -07:00
Mitchell Hashimoto
c8c0b02790
Merge pull request #1787 from koendc/f-aws-max-retries
...
aws: make MaxRetries for API calls configurable
2015-05-04 14:00:37 -07:00
Mitchell Hashimoto
2c90d3a637
Merge pull request #1793 from ctiwald/ct/add-vpn-connection-route
...
provider/aws: add support for VPN connection routes
2015-05-04 13:58:17 -07:00
Mitchell Hashimoto
9617761eb4
Merge pull request #1776 from TimeIncOSS/eip-without-igw
...
[bugfix] aws/eip: Don't save instance ID if association fails
2015-05-04 11:19:32 -07:00
Mitchell Hashimoto
cf6fa89f46
Merge pull request #1785 from koendc/f-aws-security-token
...
aws: re-introduce support for AWS_SECURITY_TOKEN
2015-05-04 11:18:28 -07:00
Josh Bleecher Snyder
76bcac3031
providers/template: add tests, address review comments
...
Do directory expansion on filenames.
Add basic acceptance tests. Code coverage is 72.5%.
Uncovered code is uninteresting and/or impossible error cases.
Note that this required adding a knob to
helper/resource.TestStep to allow transient
resources.
2015-05-04 10:26:17 -07:00
Christopher Tiwald
2c21f248ad
aws: Add acceptance tests for VPN connection routes.
2015-05-04 12:55:55 -04:00
Christopher Tiwald
e7f8883929
aws: Add support for VPN connection routes.
2015-05-04 12:20:42 -04:00
Christopher Tiwald
4727260987
aws: fix VPN connection acceptance test.
...
This corrects syntactical errors and uses distinct IP addresses for
each configuration.
2015-05-04 11:34:35 -04:00
Christopher Tiwald
47305c9c5d
aws: Fix customer gateway acceptance test.
...
This test contained a few syntactical errors.
2015-05-04 11:34:35 -04:00
Christopher Tiwald
f31466a60e
aws: Fix app cookie stickiness policy acceptance test.
...
This used the wrong AZ and contained a few syntactical errors in
configuration.
2015-05-04 11:34:35 -04:00
Christopher Tiwald
14ea3a33a4
aws: Fix LB cookie stickiness policy acceptance test.
...
This needs to run in us-west-2 and contained a few syntactical errors
that prevented it from working.
2015-05-04 11:34:34 -04:00
Jean Mertz
87cde8834e
OpenStack: add functionality to attach FloatingIP to Port
2015-05-03 16:00:00 +02:00
Koen De Causmaecker
398c22adcd
aws: make MaxRetries for API calls configurable
...
- Make it configurable in the AWS provider by add an option
'max_retries'.
- Set the default from 3 to 11 retries.
2015-05-03 15:35:51 +02:00
Koen De Causmaecker
c8f32a2711
aws: re-introduce support for AWS_SECURITY_TOKEN
2015-05-03 10:26:58 +02:00
Dave Cunningham
cc7f4edd27
Merge pull request #1764 from sparkprime/scopes-pr
...
Use a set for service account scopes. Fix #1759
2015-05-01 22:31:12 -04:00
Paul Hinze
fb37b3515d
Merge pull request #1712 from hashicorp/f-rename-elasticache-cluster
...
providers/aws: add _cluster to aws_elasticache
2015-05-01 20:07:19 -05:00
Josh Bleecher Snyder
745d83a995
providers: add template provider
...
Fixes #215 .
2015-05-01 16:59:49 -07:00
Radek Simko
795d53e706
[bugfix] Don't save instance ID if association fails
...
- typically happens when no internet GW is available in VPC
2015-05-01 23:55:08 +01:00
Radek Simko
3d665ddfcf
provider/aws: Add support for alias record to Route53
2015-05-01 22:43:04 +01:00
Christopher Tiwald
f255fd8c42
aws: Add acceptance tests for aws_vpn_connection resources.
2015-05-01 12:23:16 -04:00
Christopher Tiwald
814403f45c
aws: Add support for AWS VPN connections
2015-05-01 12:23:08 -04:00
Radek Simko
bafabf17be
provider/aws: Expose zone_id from elb
2015-05-01 08:07:33 +01:00
Dave Cunningham
85cc4ec0c1
Use a set for service account scopes. Fix #1759
2015-04-30 21:21:21 -04:00
Camilo Aguilar
338ae601bc
providers/aws: Implements DHCP Options Set support.
2015-04-30 17:52:04 -04:00
Mitchell Hashimoto
aaf94e7cec
Merge pull request #1745 from hashicorp/b-openstack-bool
...
provider/openstack: enable_dhcp should be bool [GH-1741]
2015-04-30 14:27:14 -07:00
Paul Hinze
15b9bde1fe
providers/aws: add _cluster to aws_elasticache
...
This AWS calls the actual resources "Cache Clusters" so it seems like
this name makes more sense.
Verified all Elasticache acc tests pass.
2015-04-30 16:12:08 -05:00
Paul Hinze
a9de720a4e
Merge pull request #1708 from hashicorp/f-elb-source-security-group
...
providers/aws: add source_security_group to elb
2015-04-30 16:10:02 -05:00
Clint
76e897fedb
Merge pull request #1753 from hashicorp/f-aws-db-subnet-name
...
provider/aws: Fix refresh/plan issue with DB Param. Group name
2015-04-30 13:42:06 -05:00
Paul Hinze
b99611fa44
provider/aws: allow key_pair name to be generated
...
As a module author, I'd like to be able to create a module that includes
a key_pair. I don't care about the name, I only know I don't want it to
collide with anything else in the account.
This allows my module to be used multiple times in the same account
without having to do anything funky like adding a user-specified unique
name parameter.
2015-04-30 10:33:14 -05:00
Clint Shryock
c006af9efe
provider/aws: Fix refresh/plan issue with DB Param. Group name
...
Check against AWS with lowercase, but store in state unmodified.
2015-04-30 09:25:50 -05:00
TANABE Ken-ichi
53a7da379c
provider/aws: Add acceptance tests for aws_proxy_protocol_policy
2015-04-30 17:56:46 +09:00
TANABE Ken-ichi
9df2bf68cb
providers/aws: use isLoadBalancerNotFound
2015-04-30 17:56:46 +09:00
TANABE Ken-ichi
5c1dabdb69
provider/aws: Add ProxyProtocol support via aws_proxy_protocol_policy
2015-04-30 17:56:46 +09:00
Dave Cunningham
f6554fb4a9
Support Google Cloud DNS, Fix #1148
2015-04-30 01:32:34 -04:00
Christopher Tiwald
eb03f08454
aws: Add acceptance test for aws_customer_gateway.
2015-04-29 21:32:59 -04:00
Christopher Tiwald
2794a1c5ab
aws: Add support for aws_customer_gateway
2015-04-29 21:32:51 -04:00
Mitchell Hashimoto
136402afe9
Merge pull request #1726 from skfmu/f-openstack-add-availability-zones
...
provider/openstack: Add availability zones for OpenStack block storage
2015-04-29 17:38:19 -07:00
Mitchell Hashimoto
914740f065
provider/openstack: enable_dhcp should be bool [GH-1741]
2015-04-29 17:30:58 -07:00
Mitchell Hashimoto
4bf9c26af0
Merge pull request #1740 from grosskur/alan-cloudflare-error-msg
...
providers/cloudflare: Better error message
2015-04-29 13:54:25 -07:00
Alan Grosskurth
023b2f94eb
providers/cloudflare: Better error message
...
Currently, if a record isn't found, we get an error like:
Couldn't find record: Record not found
This change improves the error message to add more context:
Couldn't find record ID (123456789) for domain (example.com): Record not found
2015-04-29 13:49:16 -07:00
Clint
daeaba5cd4
Merge pull request #1618 from hashicorp/b-aws-fix-vpc-security-id-update
...
provider/aws: Fix issue with updating VPC Security Group IDs for an Instance
2015-04-29 10:39:14 -05:00
Paul Hinze
950bd92837
Merge pull request #1633 from Banno/route53-zone-back-to-list
...
changing route53_zone.name_servers back to list
2015-04-29 10:38:59 -05:00
Clint Shryock
036d199dd6
provider/aws: Fix issue with updating VPC Security Group IDs for an Instance
...
Currently, we weren't correctly setting the ids, and are setting both
`security_groups` and `vpc_security_group_ids`. As a result, we really only use
the former.
We also don't actually update the latter in the `update` method.
This PR fixes both issues, correctly reading `security_groups` vs.
`vpc_security_group_ids` and allows users to update the latter without
destroying the Instance when in a VPC.
2015-04-29 10:03:57 -05:00
James Stremick
e586d05a7d
Remove some unecessary debug output I added
2015-04-29 10:21:28 -04:00
James Stremick
244639cf3d
Remove some domain checking duplication
2015-04-29 10:21:28 -04:00
James Stremick
b29e9d3b6f
Allow assocation of EIP to ENI
2015-04-29 10:21:08 -04:00
Mitchell Hashimoto
d66012969a
Merge pull request #1658 from bitglue/ebs
...
provider/aws: Implement aws_ebs_volume
2015-04-28 20:37:26 -07:00
Mitchell Hashimoto
77f6945ae7
Merge pull request #1662 from jgjay/elb-sgs-update
...
provider/aws: update elb security groups in-place
2015-04-28 20:30:00 -07:00
Mitchell Hashimoto
b45cd2830f
Merge pull request #1682 from mzupan/master
...
provider/aws: Don't re-do a ASG on a grace healthcheck grace period change
2015-04-28 20:26:00 -07:00
Mitchell Hashimoto
d354cae524
Merge pull request #1685 from ctiwald/master
...
provider/aws: Implement support for various AWS ELB cookie stickiness policies
2015-04-28 20:24:11 -07:00
Mitchell Hashimoto
57af67b314
Merge pull request #1718 from ravenac95/encrypted-ebs-volume-fix
...
provider/aws: Fix connecting encrypted ebs volumes to aws_instances
2015-04-28 20:21:12 -07:00
Reuven V. Gonzales
e8e42decc9
Added docs about m3.medium to tests
2015-04-28 15:19:31 -07:00
Reuven V. Gonzales
25ab54b4e3
Added tests to check for encrypted flag
2015-04-28 15:07:23 -07:00
Reuven V. Gonzales
4ef6d468e9
Actually sends ebs encrypted flag
2015-04-28 10:54:30 -07:00
Phil Frost
dcebff7108
Implement aws_ebs_volume
...
This resource allows the management of EBS volumes not associated with
any EC2 instance.
2015-04-28 12:54:02 -04:00
Sander van Harmelen
764bdbcac9
Merge pull request #1711 from jeroendekorte/b-cloudstack-aclrule
...
Provider/Cloudstack: Fixed the acl rules to support protocol all and icmp
2015-04-28 18:39:21 +02:00
Jeroen de Korte
bf05734b9a
Added some extra tests for the acl-rules
2015-04-28 18:17:02 +02:00
Jeroen de Korte
92128b48a8
Added support for protocol all and fixed the hash diff for icmp and all
2015-04-28 17:05:43 +02:00
Paul Hinze
fc26f7a119
Merge pull request #1331 from tmtk75/dev/aws_ecache
...
provider/aws: resource ElastiCache
2015-04-28 10:00:25 -05:00
Paul Hinze
e4e6ac5d91
providers/aws: add source_security_group to elb
2015-04-28 09:40:19 -05:00
Paul Hinze
c748ce9c9e
Merge pull request #1695 from aznashwan/commfix
...
Fixed/added docstrings in aws provider package.
2015-04-28 08:51:20 -05:00
Paul Hinze
a6de57e5d3
Merge pull request #1687 from dainis/fix_gce_healthcheck_typo
...
Fix - typo in healthcheck names
2015-04-28 08:50:58 -05:00
Paul Hinze
4140253578
Merge pull request #1701 from hashicorp/b-cannot-retrieve-eip
...
provider/aws: fix EIPs on new upstream sdk
2015-04-28 08:50:39 -05:00
Justin Campbell
6f4b7b25c6
providers/dnsimple: default ttl to 3600
...
Since the field is optional and DNSimple defaults it to 3600 on their end, `terraform plan` currently will report `ttl: "3600" => ""`.
2015-04-28 09:20:23 -04:00
Paul Hinze
120cfdce59
provider/aws: fix EIPs on new upstream sdk
...
As we've seen elsewhere, the SDK now wants nils instead of empty arrays
for collections
fixes #1696
thanks @jstremick for pointing me in the right direction
2015-04-27 19:55:26 -05:00
aznashwan
d64dd99d4d
Fixed/added docstrings in aws provider package.
2015-04-27 21:06:49 +03:00
Dainis Tillers
2fa8403673
Fix - typo in healthcheck names
2015-04-27 11:42:50 +03:00
skfmu
2c32988743
Added availability zones for OpenStack block storage.
2015-04-27 05:52:45 +00:00
Christopher Tiwald
99ce8cf25e
aws: Add acceptance test of aws_app_cookie_stickiness_policy.
2015-04-26 18:56:56 -04:00
Christopher Tiwald
0533d60195
aws: Add support for aws_app_cookie_stickiness_policy.
...
This resource represents a session stickiness policy in AWS, and can be
applied to an ELB's client-facing listeners.
2015-04-26 18:56:07 -04:00
Christopher Tiwald
448fb4895f
aws: Add acceptance test of aws_lb_cookie_stickiness_policy.
2015-04-26 18:05:40 -04:00
Christopher Tiwald
0120899f2a
aws: Add support for aws_lb_cookie_stickiness_policy.
...
This resource represents a session stickiness policy in AWS, and can be
applied to an ELB's client-facing listeners.
2015-04-26 18:05:37 -04:00
Mike Zupan
0177be2a66
need to update aws with the change if there is one
2015-04-25 20:00:04 -07:00
Mike Zupan
9fe6317348
don't need to create a new ASG for this change
...
Tested
```
aws_autoscaling_group.rabbit: Modifying...
health_check_grace_period: "200" => "3000"
aws_autoscaling_group.rabbit: Modifications complete
```
2015-04-25 19:50:33 -07:00
Tomotaka Sakuma
f3d9a287e1
support aws resource ElastiCache
2015-04-26 10:53:21 +09:00
Paul Hinze
37c693e8ce
Merge pull request #1672 from PeopleNet/vpc_peering_tags
...
Fix for #1664 . Apply AWS VPC Peering Conn. tags on create.
2015-04-25 09:37:28 -05:00
John Engelman
c2fa397ec8
Fix for #1664 . Apply AWS VPC Peering Conn. tags on create.
2015-04-24 16:12:20 -05:00
Trevor Pounds
fe62312617
Fix comment typos.
2015-04-24 10:25:19 -07:00
Gavin James
c986c65238
update security groups in-place
2015-04-23 20:57:37 +01:00
Henrik Hodne
769f456028
aws: add propagating_vgws to route tables
2015-04-23 15:03:45 +00:00
Luke Amdor
fe2d9ea3cc
sorting the name_server entries
2015-04-23 08:48:19 -05:00
Paul Hinze
10b73f95ae
Merge pull request #1635 from hashicorp/b-net-acls-blank-id
...
providers/aws: network_acl, remove blank filter
2015-04-23 07:32:04 -05:00
Paul Hinze
69ef012dfc
Merge pull request #1632 from hashicorp/f-generate-sg-names
...
unique identifier helper for resources / generate AWS security group names
2015-04-23 07:25:23 -05:00
Panagiotis Moustafellos
6bb8947d16
providers/aws: aws_elb incr. idle_timeout to 60s
...
per docs
http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/config-idle-timeout.html
2015-04-23 12:46:52 +03:00
Paul Hinze
6401635b97
providers/aws: network_acl, remove blank filter
...
The upstream behavior here changed, and the request needs a `nil`
instead of an empty slice to indicate that we _don't_ want to filter on
Network ACL IDs.
fixes #1634
2015-04-22 14:44:31 -05:00
Luke Amdor
6b5138328f
changing route53_zone.name_servers back to list
2015-04-22 13:27:20 -05:00
Paul Hinze
079856620a
provider/aws: set default SG description
...
because requiring a SG description is annoying
2015-04-22 13:27:20 -05:00
Paul Hinze
33de319293
provider/aws: allow SG names to be generated
2015-04-22 12:56:06 -05:00
Paul Hinze
94f703692c
provider/aws: switch to helper for LC names
2015-04-22 12:53:47 -05:00
Mitchell Hashimoto
c1464b1c6d
Merge pull request #1623 from hashicorp/b-private-ip-ssh
...
providers/aws: if no public IP, use private IP for SSH by default
2015-04-22 16:02:04 +02:00
Mitchell Hashimoto
341b2ff864
Merge pull request #1625 from hashicorp/b-panic-network-acl
...
provider/aws: fix potential panic when finding network ACL
2015-04-22 16:01:57 +02:00
Mitchell Hashimoto
f77f77f9f8
provider/aws: fix potential panic when finding network ACL
2015-04-22 12:39:01 +02:00
Mitchell Hashimoto
19b3fa1a76
provider/aws: allow int for network acl entry [GH-1435]
2015-04-22 12:35:23 +02:00
Mitchell Hashimoto
ec38a65dda
providers/aws: if no public IP, use private IP for SSH by default
2015-04-22 12:25:28 +02:00
Mitchell Hashimoto
8ca42f832e
Merge pull request #1525 from Banno/route53-zone-nameservers
...
providers/aws: Expose Route53 zone nameservers for parent zone NS record
2015-04-22 12:10:27 +02:00
Mitchell Hashimoto
9037a3a4bc
Merge pull request #1426 from dainis/master
...
provider/google: add additional options to google provider
2015-04-22 08:50:22 +02:00
Mitchell Hashimoto
d02abb7a8c
Merge pull request #1484 from sparkprime/deprecate-network
...
deprecate google instance 'network' attribute in favor of network_interface
2015-04-22 08:49:04 +02:00
Mitchell Hashimoto
11e6e89f73
provider/aws: make tests public and run them
2015-04-22 08:44:24 +02:00
Mitchell Hashimoto
78f9fb164b
provider/aws: fix compilation errors
2015-04-22 08:42:44 +02:00
Mitchell Hashimoto
887f1b3d12
Merge branch 'elb-connection-settings' of https://github.com/jwaldrip/terraform into jwaldrip-elb-connection-settings
2015-04-22 08:38:19 +02:00
Mitchell Hashimoto
70a0579a12
Merge pull request #1578 from TimeIncOSS/route53-weighted-records
...
provider/aws: Add support for weighted Route53 records
2015-04-22 08:33:28 +02:00
Mitchell Hashimoto
2cecd586c2
Merge pull request #1619 from jgjay/elb-listener-update
...
provider/aws: handle changes to elb listeners after creation
2015-04-22 08:24:36 +02:00
Mitchell Hashimoto
b755459ee3
Merge pull request #1358 from rzh/placement_group
...
provider/aws: support for AWS Placement Group
2015-04-22 08:20:43 +02:00
Mitchell Hashimoto
55f2a3659f
Merge pull request #1550 from ggiamarchi/openstack/lb_vip_floatingip
...
Floating IP support for LBaaS Virtual IP
2015-04-22 08:17:50 +02:00
Mitchell Hashimoto
2996a25ce0
Merge pull request #1597 from aocsolutions/fix_sg_refresh
...
provider/aws: more careful with pointers
2015-04-22 08:12:43 +02:00
Mitchell Hashimoto
3176e5b44a
Merge pull request #1595 from TimeIncOSS/aws-account-protection
...
aws: Allow defining blacklist/whitelist of account IDs
2015-04-22 08:08:01 +02:00
Gavin James
81079bb6ac
handle addition/update/removal of listeners after creation
2015-04-21 23:17:17 +01:00
Clint Shryock
0c5011bea4
provider/aws: Fix issue with empty IPRanges
2015-04-21 10:57:50 -05:00
Mitchell Hashimoto
c8a8f05935
Merge pull request #1601 from bitglue/sts_token
...
provider/aws: support session token in AWS credentials
2015-04-20 15:01:29 -07:00
Matt Good
21b0a03d70
Support for multiple providers of the same type
...
Adds an "alias" field to the provider which allows creating multiple instances
of a provider under different names. This provides support for configurations
such as multiple AWS providers for different regions. In each resource, the
provider can be set with the "provider" field.
(thanks to Cisco Cloud for their support)
2015-04-20 14:14:34 -07:00
Paul Hinze
d55c8d8404
provider/docker: fmt on container resource
2015-04-20 14:18:46 -05:00
Phil Frost
d4c8c528e0
Support session token in AWS credentials
...
Session tokens are necessary to utilize temporary credentials.
http://docs.aws.amazon.com/STS/latest/UsingSTS/Welcome.html
2015-04-20 15:09:04 -04:00
Paul Hinze
3ded884d95
provider/docker: guard against nil NetworkSettings
2015-04-20 12:42:36 -05:00
Stephan Epping
c2319da1aa
Add docker container network settings to output attribute
2015-04-20 12:41:35 -05:00
Nevins Bartolomeo
6da242de03
fixing sg refresh
2015-04-20 11:27:58 -04:00
Radek Simko
150fd00932
AWS account ID protection added
2015-04-20 12:07:39 +01:00
Mitchell Hashimoto
1c0f2f136c
provider/aws: fix vet error, missing fmt param
2015-04-19 18:13:04 -07:00
Mitchell Hashimoto
dda4ae6d12
Merge pull request #1555 from fatih/fix-eip-panic
...
providers/aws: check allocationId only if it's vpc, fixes #1345
2015-04-19 18:10:31 -07:00
Mitchell Hashimoto
2acc9b2e44
Merge pull request #1564 from nickryand/docker_links
...
Added Docker links support to the docker_container resource.
2015-04-18 16:41:17 -07:00
Mitchell Hashimoto
283a3af693
Merge pull request #1576 from bitglue/s3_refresh
...
provider/aws: refresh state for deleted s3 bucket correctly
2015-04-18 16:40:12 -07:00
Radek Simko
009514f0d3
Allow using deprecated security_groups in NI spec
2015-04-17 21:26:17 +01:00
Clint Shryock
eda987dcfb
provider/aws: Fix issue when creating ELB with no tags
2015-04-17 14:00:27 -05:00
Radek Simko
555f9dfab3
aws: Support for weighted Route53 records added
...
- closes #1155
2015-04-17 18:53:36 +01:00
Phil Frost
47e1ec85f1
Refresh state for deleted s3 bucket correctly
...
If reading an S3 bucket's state, and that bucket has been deleted, don't
fail with a 404 error. Instead, update the state to reflect that the
bucket does not exist. Fixes #1574 .
2015-04-17 13:30:31 -04:00
duncan
e1ac4b9f90
Add Elastic Network Interfaces as route destination
...
Fixes #938
2015-04-17 13:22:31 -04:00
Luke Amdor
c3f9c12426
Merge remote-tracking branch 'refs/remotes/origin/master' into route53-zone-nameservers
2015-04-17 10:11:53 -05:00
Clint
0d1540d448
Merge pull request #1565 from hashicorp/f-aws-upstream-cleanup
...
F aws upstream cleanup
2015-04-17 08:55:11 -05:00
Paul Hinze
a6325ad18c
Merge pull request #1547 from sparkprime/user-agent
...
Add a UserAgent with version temporarily set to 0.0.0
2015-04-16 16:57:10 -05:00
Clint Shryock
d27a41746c
clean up tags sdk lib
2015-04-16 15:31:40 -05:00
Clint Shryock
3e6822ce08
more cleans ups of SDK reference
2015-04-16 15:28:18 -05:00
Clint Shryock
79fc8223bb
consolidate structure.go
2015-04-16 15:18:01 -05:00
Clint Shryock
ba43b7c963
mass search-replace of ec2SDKconn
2015-04-16 15:05:55 -05:00
Clint Shryock
331f6705b8
providers/aws: cleanup of connections, upgrades network acl test
2015-04-16 15:02:04 -05:00
Nick Downs
f74405d5e7
Added Docker links support to the docker_container resource.
2015-04-16 12:42:21 -07:00
Clint Shryock
c59bfd0ca5
Merge branch 'f-aws-upstream-s3'
...
* f-aws-upstream-s3:
provider/aws: Conver AWS S3 to upstream sdk
2015-04-16 13:51:12 -05:00
Clint Shryock
1da9bc8f4c
fix go formatting after rebase
2015-04-16 13:42:16 -05:00
Clint Shryock
1545dbb803
provider/aws: Convert Route 53 Zone, Record to upstream
2015-04-16 13:41:38 -05:00
Clint Shryock
a5b2437dcf
provider/aws: Convert Instance to use upstream library
2015-04-16 12:01:10 -05:00
Fatih Arslan
86810789c2
providers/aws: check allocationId only if it's vpc, fixes #1345
...
EIP with VPC only returns an allocationID. However, for standard we need
to lookup for PublicIP. When we use an example for standard EC2 instance
(here `t1.micro`):
```
resource "aws_instance" "example" {
ami = "ami-25773a24"
instance_type = "t1.micro"
}
resource "aws_eip" "ip" {
instance = "${aws_instance.example.id}"
}
```
then in this case, allocationID will be nil, but publicIP will be non
nil (which is used later for association the IP). So check for
allocationId only if it's of domain `VPC`.
2015-04-16 16:08:52 +03:00
Clint Shryock
7a99dd48b2
provider/aws: Convert Launch Configuration over to upstream
...
- removes extra ASG connection
2015-04-16 07:10:17 -05:00
Guillaume Giamarchi
d855047af3
Floating IP support for LBaaS Virtual IP
2015-04-16 02:51:05 +02:00
Dave Cunningham
e0905d89f8
Add a UserAgent with version temporarily set to 0.0.0
2015-04-15 18:17:21 -04:00
Luke Amdor
f8b05fa05e
using a set for route53 name_servers
2015-04-15 16:10:02 -05:00
Luke Amdor
46d3ab5ccd
rename delegation_set_name_servers to name_servers
2015-04-15 16:07:50 -05:00
Clint Shryock
210b380d01
go vet updates
2015-04-15 15:32:20 -05:00
Clint Shryock
723be13f96
go fmt asg things
2015-04-15 15:30:35 -05:00
Clint Shryock
1f7d0944f1
provider/aws: Convert AWS ASG to upstream aws-sdk-go
2015-04-15 15:29:59 -05:00
Clint
e97fd27b14
Merge pull request #1539 from hashicorp/f-aws-instance-vpc-sec-ids
...
provider/aws: Add support for separate VPC Security Group IDs attribute
2015-04-15 15:25:03 -05:00
Clint
334b157a5c
Merge pull request #1510 from hashicorp/f-aws-upstream-rds-instance
...
provider/aws: Convert AWS RDS to use upstream aws-sdk-go
2015-04-15 15:23:52 -05:00
Clint Shryock
1ed2219493
don't capitalize IAM
2015-04-15 15:05:44 -05:00
Paul Hinze
9053cc3d18
Merge pull request #1537 from ggiamarchi/openstack/insecure_https
...
OpenStack - Allow to disable HTTPS certificate check
2015-04-15 15:03:26 -05:00
Clint Shryock
df45b2cda8
go fmt db things
2015-04-15 15:02:52 -05:00
Guillaume Giamarchi
b87c05e5a8
Allow to disable HTTPS certificate check
2015-04-15 21:54:44 +02:00
Clint Shryock
470379e7ed
connection naming cleanups
2015-04-15 14:36:08 -05:00
Clint Shryock
9187cab6ac
provider/aws: Convert remaining RDS resources to use upstream library
2015-04-15 14:31:53 -05:00
Clint Shryock
d579b4b75c
provider/aws: Convert AWS RDS to use upstream aws-sdk-go
2015-04-15 14:28:02 -05:00
Clint
220f62eb72
Merge pull request #1532 from hashicorp/f-aws-upstream-elb
...
providers/aws: Conver AWS ELB to upstream
2015-04-15 14:16:24 -05:00
Clint
5a815efdbb
Merge pull request #1531 from hashicorp/f-aws-upstream-vpn-gateway
...
provider/aws: Convert VPN Gateway to upstream
2015-04-15 14:15:03 -05:00
Clint
f948b6205a
Merge pull request #1522 from hashicorp/f-aws-upstream-vpc-peering
...
provider/aws: Convert AWS VPC Peering to upstream
2015-04-15 14:14:02 -05:00
Clint Shryock
3337503eda
update test and documentation for vpc ids in instances
2015-04-15 12:17:21 -05:00
Clint Shryock
97b98b1da6
Merge branch 'master' into f-aws-instance-vpc-sec-ids
...
* master: (511 commits)
Update CHANGELOG.md
core: avoid diff mismatch on NewRemoved fields during -/+
Update CHANGELOG.md
update CHANGELOG
Fix minor error in index/count docs
terraform: remove debug
terraform: when pruning destroy, only match exact nodes, or exact counts
up version for dev
update CHANGELOG
terraform: prune tainted destroys if no tainted in state [GH-1475]
update CHANGELOG
config/lang: support math on variables through implicits
update CHANGELOG
update cHANGELOG
update cHANGELOG
providers/aws: set id outside if/esle
providers/aws: set ID after creation
core: remove dead code from pre-deposed refactor
website: update LC docs to note name is optional
security_groups field expects a list of Security Group Group Names, not IDs
...
2015-04-15 12:12:17 -05:00
Paul Hinze
76701884cd
Merge pull request #1517 from hashicorp/f-simplify-google-instance
...
google: simplify instance metadata schema
2015-04-15 11:48:37 -05:00
Paul Hinze
01e75e0fc3
google: simplify instance metadata schema
...
It doesn't need to be a List of Maps, it can just be a Map.
We're also safe to remove a previous workaround I stuck in there.
The config parsing is equivalent between a list of maps and a plain map,
so we just need a state migration to make this backwards compatible.
2015-04-15 11:01:35 -05:00
Clint Shryock
dc54d6a852
refactor out a refresh fun that wasn't really used
2015-04-15 10:26:39 -05:00
Clint Shryock
a3ffb6ea6e
fix test failure
2015-04-15 09:43:43 -05:00
Clint Shryock
7078753733
Merge branch 'master' into f-aws-upstream-elb
...
* master:
Update CHANGELOG.md
core: avoid diff mismatch on NewRemoved fields during -/+
2015-04-15 09:34:28 -05:00
Paul Hinze
6365b3af89
Merge pull request #1515 from hashicorp/b-diff-mismatch-on-instance-replacement
...
core: avoid diff mismatch on NewRemoved fields during -/+
2015-04-14 17:44:28 -05:00
Paul Hinze
64f0897c82
core: avoid diff mismatch on NewRemoved fields during -/+
...
fixes #1508
In a DESTROY/CREATE scenario, the plan diff will be run against the
state of the old instance, while the apply diff will be run against an
empty state (because the state is cleared when the destroy node does its
thing.)
For complex attributes, this can result in keys that seem to disappear
between the two diffs, when in reality everything is working just fine.
Same() needs to take into account this scenario by analyzing NewRemoved
and treating as "Same" a diff that does indeed have that key removed.
2015-04-14 17:23:30 -05:00
Luke Amdor
b763294926
fixing string format
2015-04-14 16:51:58 -05:00
Clint Shryock
4186ec18c6
providers/aws: Conver AWS ELB to upstream
2015-04-14 16:41:36 -05:00
Clint Shryock
900dd4e151
provider/aws: Convert VPN Gateway to upstream
2015-04-14 15:45:48 -05:00
Luke Amdor
eb43822f68
err-check the resource set
2015-04-14 14:54:38 -05:00
Luke Amdor
8f1acaf026
expose Route53 zone name servers
2015-04-14 14:17:01 -05:00
Clint Shryock
95026b6266
provider/aws: Convert AWS VPC Peering to upstream
2015-04-14 11:23:26 -05:00
Clint Shryock
d4e7c2dedc
provider/aws: Conver AWS S3 to upstream sdk
2015-04-14 11:07:05 -05:00
Mitchell Hashimoto
710d1113eb
Merge pull request #1490 from jtopjian/openstack-allow-blank-region
...
provider/openstack: Allow Blank Region
2015-04-14 08:28:03 -07:00
Mitchell Hashimoto
0eb69bcd37
Merge pull request #1518 from hashicorp/b-lc-id
...
providers/aws: set LC ID after creation
2015-04-14 08:23:31 -07:00
Mitchell Hashimoto
783d912b7c
providers/aws: set id outside if/esle
2015-04-14 08:23:16 -07:00
Clint
0eecf070d9
Merge pull request #1489 from hashicorp/f-aws-upstream-route-table
...
provider/aws: Convert Route table and Route table association to upstream aws-sdk-go
2015-04-14 10:15:24 -05:00
Clint
85c4a134ad
Merge pull request #1486 from hashicorp/f-aws-upstream-vpc
...
provider/aws: Convert AWS VPC to upstream aws-sdk-go
2015-04-14 10:14:56 -05:00
Mitchell Hashimoto
f7a2f2a2e7
providers/aws: set ID after creation
2015-04-13 17:03:13 -07:00
Paul Hinze
86d58089d3
Merge pull request #1509 from hashicorp/f-aws-upstream-network-acl
...
provider/aws: Convert Network ACL and helper library to upstream aws-sdk-go
2015-04-13 16:48:25 -05:00
Jason Waldrip
74bfbece69
Implement Additional ELB Connection Attributes
2015-04-13 14:14:26 -06:00
Clint Shryock
5394d91657
provider/aws: Convert Network ACL and helper library to upstream aws-sdk-go
2015-04-13 11:14:21 -05:00
Sander van Harmelen
41536c0d58
Reverting the behavioural change, while still fixing the logic error
2015-04-13 17:33:22 +02:00
Clint Shryock
53478c96de
provider/aws: Convert AWS Main Route Table Association to upstream
2015-04-13 10:01:56 -05:00
Sander van Harmelen
852e7a3554
Merge pull request #1492 from svanharmelen/f-cloudstack-network
...
Fixing a small logic error
2015-04-11 17:56:09 +02:00
Sander van Harmelen
8c37a95a5e
Fixing a small logic error
2015-04-11 17:53:25 +02:00
Sander van Harmelen
0963d556a3
Refactored the template provider to make it fit in nicely
...
Fixing a few things while add it and added a additional test as well.
2015-04-11 17:50:06 +02:00
Sander van Harmelen
365251f7a3
Merge pull request #1228 from benjvi/cloudstack-template-resource
...
provider/cloudstack: added template resource for CloudStack
2015-04-11 17:42:13 +02:00
Joe Topjian
fe0a7a5ec5
Allow Blank Region
...
When OS_REGION_NAME is not set, fall back to a blank string. This
will cause gophercloud to use the cloud's only region in
single-region clouds.
2015-04-11 05:10:10 +00:00
Clint Shryock
c89470a754
provider/aws: Convert Route table and Route table association to upstream aws-sdk-go
2015-04-10 17:09:36 -05:00
Clint Shryock
74bab7b89d
provider/aws: Convert AWS VPC to upstream aws-sdk-go
2015-04-10 16:09:12 -05:00
Dave Cunningham
c08d69a509
deprecate google instance 'network' attribute in favor of network_interface
2015-04-10 17:03:51 -04:00
Sander van Harmelen
56adfce61f
Merge pull request #1481 from svanharmelen/f-cloudstack-connection
...
provider/cloudstack: adding a few lines to set the connection info
2015-04-10 21:36:39 +02:00
Sander van Harmelen
b7a6692548
Adding a few lines to set the connection info
2015-04-10 20:39:52 +02:00
Clint
9f56addf0c
Merge pull request #1446 from hashicorp/f-aws-upstream-security-group
...
providers/aws: Convert AWS Security Group to upstream aws-sdk-go
2015-04-10 11:06:55 -05:00
Clint
7c676f8c91
Merge pull request #1470 from hashicorp/b-aws-fix-credential-detection
...
provider/aws: Detect creds in AWS config
2015-04-10 10:06:08 -05:00
Paul Hinze
8f5ac1d06f
Merge pull request #1458 from sparkprime/fix-network-source
...
Avoid 'source' being undefined in legacy network Read
2015-04-10 09:34:56 -05:00
Clint Shryock
c160058baf
provider/aws: Detect creds in AWS config
2015-04-09 17:06:22 -05:00
Clint Shryock
6ff9b0c776
provider/aws: Fix type mismatch issue with AWS RDS
2015-04-09 14:27:52 -05:00
Mitchell Hashimoto
6f82137875
provider/aws: fix potential panic on nil db name [GH-1460]
2015-04-09 11:19:33 -07:00
Mitchell Hashimoto
4e92b8c77f
provider/aws: fix network ACL test, at some point we added a second rule
2015-04-09 10:45:22 -07:00
Paul Hinze
1118a86798
providers/aws: make acc test name match pattern
2015-04-09 12:33:20 -05:00
Dave Cunningham
d149db41d6
Avoid 'source' being undefined in legacy network Read
2015-04-09 13:29:59 -04:00
Mitchell Hashimoto
d189457376
provider/aws: clean up VPC peering connection test
2015-04-09 10:18:50 -07:00
Clint
02c81c479d
Merge pull request #1430 from hashicorp/b-aws-route53-record-update
...
provider/aws: Fix issue in updating Route 53 records on refresh/read.
2015-04-09 11:54:27 -05:00
Mitchell Hashimoto
db58c7dd33
providers/docker: default cert_path to non-nil so input isn't asked
2015-04-09 09:49:03 -07:00
Paul Hinze
4363ac4970
Merge pull request #1444 from hashicorp/b-launch-config-bugs
...
providers/aws: fix a few more bugs in launch configs
2015-04-09 10:24:18 -05:00
Paul Hinze
bfb3134148
Merge pull request #1445 from hashicorp/b-ebs-perpetual-recreate-without-both-volume-fields
...
providers/aws: reduce scope of block_device set hashcodes
2015-04-09 10:24:07 -05:00
Clint Shryock
ffdd20133a
providers/aws: Convert AWS Security Group to upstream aws-sdk-go
...
Moves structure test lib too, to that `make test` actually runs it
2015-04-09 09:10:04 -05:00
Clint Shryock
ef0a763c29
fix pointer references
2015-04-09 09:03:45 -05:00
Paul Hinze
34c7bbcf4d
providers/aws: reduce scope of block_device set hashcodes
...
Fixes #1409
Resource set hash calculation is a bit of a devil's bargain when it
comes to optional, computed attributes.
If you omit the optional, computed attribute from the hash function,
changing it in an existing config is not properly detected.
If you include the optional, computed attribute in the hash and do not
specify a value for it in the config, then you'll end up with a
perpetual, unresolvable diff.
We'll need to think about how to get the best of both worlds, here, but
for now I'm switching us to the latter and documenting the fact that
changing these attributes requires manual `terraform taint` to apply.
2015-04-09 08:53:09 -05:00
Paul Hinze
8fccd9cec4
providers/aws: fix a few more bugs in launch configs
...
These bugs were found by additional check added in #1443
* Reversed nil err check meant that block devices were broken :(
* Fixing the err check revealed a few missed pointer derefs
* Unlike instances, ephemeral block devices do come back in
`BlockDeviceMappings` from `DescribeLaunchConfigurations` calls, so
we need to recognize them and filter them properly. Even though
they're not set as computed, I'm doing a `d.Set` since it doesn't
hurt and it gives us the benefit of basic drift detection.
2015-04-09 08:36:18 -05:00
Radek Simko
947761f34f
ec2/config: Use provided region instead of hardcoding us-west-2
2015-04-09 12:36:37 +01:00
Clint
5c3ec3ddcc
Merge pull request #1411 from hashicorp/f-aws-upstream-network-interface
...
provider/aws: Convert AWS Network Interface to aws-sdk-go
2015-04-08 15:51:36 -05:00
Clint
8e25dcd4f6
Merge pull request #1408 from hashicorp/f-aws-upstream-eip
...
provider/aws: Convert EIP to use upstream aws-sdk-go
2015-04-08 15:51:18 -05:00
Clint
0f6ba3eae9
Merge pull request #1407 from hashicorp/f-aws-upstream-internet-gateway
...
Convert AWS Internet Gateway to use upstream aws-sdk-go
2015-04-08 15:51:10 -05:00
Clint
281825db76
Merge pull request #1398 from hashicorp/f-aws-upstream-subnet
...
provider/aws: Convert AWS Subnet to mainstream aws-sdk-go
2015-04-08 15:38:05 -05:00
Clint Shryock
3a5a3d8515
update test to pass on Travis
2015-04-08 15:27:48 -05:00
Clint
abdfa450b2
Merge pull request #1397 from hashicorp/aws-upstream-keypair
...
provider/aws: Convert Key Pair to upstream aws-sdk-go
2015-04-08 15:21:58 -05:00
Clint
28f8dab87f
Merge pull request #1396 from hashicorp/f-aws-route53record-add-update
...
provider/aws: Change Route 53 record to allow resource updates
2015-04-08 15:14:46 -05:00
Paul Hinze
650b9d5542
Merge pull request #1427 from dainis/fix_network_interface_interface
...
Fix #1394 , network value for network_interface
2015-04-08 14:24:20 -05:00
Clint Shryock
22e487c5d0
surface error with setting records on Route 53 record
2015-04-08 14:01:00 -05:00
Clint Shryock
29a5d9fc1a
Update how we expand/flatten TXT records for Route 53
2015-04-08 13:58:23 -05:00
Clint
9a3bc12cff
Merge pull request #1415 from hashicorp/b-fix-route53-recorcd-zone
...
provider/aws: Fix issue with Route 53 and pre-existing, external Hosted zones
2015-04-08 09:38:59 -05:00
Clint Shryock
f2b68c4ca8
provider/aws: Fix issue in updating Route 53 records on refresh/read.
...
Route 53 records were silently erroring out when saving the records returned
from AWS, because they weren't being presented as an array of strings like we
expected.
2015-04-08 09:06:15 -05:00
Dainis Tillers
ab71de8650
Just removing network refresh wont cut it, value from config must be used
2015-04-08 15:38:07 +03:00
Dainis Tillers
8f717c3e60
Fix #1394 , network value for network_interface isn't a computed value and there is no need to refresh it each time instance data is read
2015-04-08 15:29:46 +03:00
Dainis Tillers
22616764fc
Added - disk device name
2015-04-08 14:34:37 +03:00
Dainis Tillers
8ee3bb2d16
Added - create disk from snapshot
2015-04-08 14:21:39 +03:00
Clint Shryock
547080002c
provider/aws: Fix issue with Route 53 and pre-existing, external Hosted Zones
2015-04-07 15:20:56 -05:00
Paul Hinze
ee7ccb7908
providers/aws: fix LCs being invalid in classic
...
Turns out AssociatePublicIPAddress was always being set, but the AWS
APIs don't like that when you're launching into EC2 Classic and return a
validation error at ASG launch time.
Fixes #1410
2015-04-07 13:08:09 -05:00
Clint Shryock
6376ac2dab
provider/aws: Convert AWS Network Interface to aws-sdk-go
...
Also adds sdk versions of structure, structure test
2015-04-07 12:07:12 -05:00
Clint Shryock
a15547b955
provider/aws: Convert EIP to use upstream aws-sdk-go
2015-04-07 10:37:17 -05:00
Clint Shryock
2c1c448031
providers/aws: Convert AWS Internet gateway to upstream aws-sdk-go
2015-04-07 09:44:00 -05:00
Clint Shryock
6feba0bf36
migrate aws keypair test suite
2015-04-06 15:13:29 -05:00
Clint Shryock
0fbbd1195a
provider/aws: Convert AWS Subnet to mainstream aws-sdk-go
2015-04-06 15:07:40 -05:00
Clint Shryock
eb82f2bf2a
provider/aws: Convert Key Pair to upstream aws-sdk-go
2015-04-06 12:22:57 -05:00
Clint
23c0fb7695
Merge pull request #1384 from hashicorp/b-aws-fix-route53-hosted-refresh
...
provider/aws: Fix refresh issue in Route 53 hosted zone
2015-04-06 11:11:07 -05:00
Clint
fa2d41ef55
Merge pull request #1234 from hashicorp/b-fix-aws-subnet-map-public-change
...
provider/aws: Fix issue when changing map-public-ip in Subnets
2015-04-06 11:03:45 -05:00
Clint
008012b7a6
Merge pull request #1382 from hashicorp/f-aws-rds-updates
...
provider/aws: Support additional changes to RDS without forcing new
2015-04-06 10:59:57 -05:00
Paul Hinze
6726309947
Fix string typo
2015-04-06 10:51:30 -05:00
Paul Hinze
c2b293d047
Fix comment typo
2015-04-06 10:45:02 -05:00
Clint Shryock
c5eb16cfb1
provider/aws: Change Route 53 record to allow resource updates
...
This removes `ForceNew` from `records` and `ttl`, and introduces a
`resourceAwsRoute53RecordUpdate` function. The `resourceAwsRoute53RecordUpdate`
falls through to the `resourceAwsRoute53RecordCreate` function, which utilizes
AWS `UPSERT` behavior and diffs for us.
`Name` and `Type` are used by AWS in the `UPSERT`, so only records with matching
`name` and `type` can be updated. Others are created as new, so we leave the
`ForceNew` behavior here.
2015-04-06 10:16:23 -05:00
Clint Shryock
f02de51d58
provider/aws: Fix refresh issue in Route 53 hosted zone
...
Change the error handling/detection to correctly determine no hosted zone
exists.
2015-04-03 13:59:34 -05:00
Paul Hinze
9a91e1021a
providers/aws: don't force update for existing launch configs
...
These changes should fix #1367 :
* `ebs_optimized` gets `Computed: true` and set from `Read`
* `ephemeral_block_device` loses `Computed: true`
* explicitly set `root_block_device` to empty from `Read`
While I was in there (tm):
* Send pointers to `d.Set` so we can use its internal nil check.
2015-04-03 12:58:49 -05:00
Paul Hinze
b0abb4ea49
Merge pull request #1379 from hashicorp/f-validate-forcenew-on-resources-without-update
...
helper/schema: ensure ForceNew set when Update is not
2015-04-03 12:53:55 -05:00
Clint Shryock
961a646b9a
provider/aws: Support additional changes to RDS without forcing a new resource
2015-04-03 12:23:01 -05:00
Paul Hinze
66dbf91ffd
helper/schema: ensure ForceNew set when Update is not
...
If a given resource does not define an `Update` function, then all of
its attributes must be specified as `ForceNew`, lest Applys fail with
"doesn't support update" like #1367 .
This is something we can detect automatically, so this adds a check for
it when we validate provider implementations.
2015-04-03 09:57:30 -05:00
Clint Shryock
268f935386
provider/aws: Fix issue finding db subnets
...
AWS seems to lower case DB Subnet Group names, causing a failure in TF if your
name isn't all lower case.
2015-04-03 09:34:04 -05:00
Paul Hinze
cedfadc808
Merge pull request #1352 from hashicorp/b-rds-pointers
...
providers/aws: pass pointers directly to d.Set in RDS
2015-04-02 12:41:31 -05:00
Jason Waldrip
f77250f17d
block device support for launch configurations
...
- mimics block device support from AWS instance
- splits the acceptance tests out so they all pass, handling a FIXME
from #1079
2015-04-02 12:34:13 -05:00
Paul Hinze
f8a699f3d8
Merge pull request #1079 from bobtfish/launch_configuration_computed_names
...
RFC for making launch configuration names computed.
2015-04-02 12:10:22 -05:00
Paul Hinze
de1a58512a
Merge pull request #1359 from hashicorp/b-do-ssh-key-test
...
providers/digitalocean: fix ssh key test
2015-04-02 11:34:34 -05:00
Paul Hinze
ace47c1c5b
providers/digitalocean: fix ssh key test
...
there's now validation on the public key field
2015-04-02 09:04:59 -05:00
Clint Shryock
87e1260fac
update hash for aws security group test
2015-04-02 09:00:47 -05:00
Paul Hinze
e0cdadfc55
Merge pull request #1347 from jtopjian/compute-network-refactor
...
provider/openstack Compute Network Refactor
2015-04-02 08:46:03 -05:00
Rui Zhang
94bb3ed513
Support for AWS Placement Group
...
- add placement_group for aws instance
- update test and document
2015-04-01 23:33:16 -07:00
Mitchell Hashimoto
a2014fc846
Merge pull request #1185 from hashicorp/f-remote-resource
...
Feature: Remote Modules
2015-04-01 22:50:30 -07:00
Mitchell Hashimoto
478379b3b3
providers/terraform: name it terraform_remote_state
2015-04-01 22:49:05 -07:00
Joe Topjian
1693767922
Compute Instance basic acceptance test
...
A change was made to account for clouds with multiple networks.
2015-04-02 00:10:46 +00:00
Joe Topjian
7ca97f4bfc
Updating Floating IP acceptance tests
2015-04-01 22:54:09 +00:00
Joe Topjian
99ac8b4410
Compute Floating IP Test Update
...
Changes the test to require a network UUID rather than a name.
2015-04-01 21:39:54 +00:00
Joe Topjian
ef4e03a729
Workaround for missing tenant-network
...
This commit resolves an issue where the tenant-network api extension
does not exist. The caveat is that the user must either specify no
networks (single network environment) or can only specify UUIDs for
network configurations.
2015-04-01 21:31:55 +00:00
Clint Shryock
c7282d6a94
provider/aws: Change AWS Subnet map ip on launch to default false, from computed
2015-04-01 16:27:12 -05:00
Clint Shryock
85c0910165
Merge remote-tracking branch 'upstream/master' into b-fix-aws-subnet-map-public-change
...
* upstream/master: (295 commits)
Update CHANGELOG.md
provider/aws: Allow DB Parameter group to change in RDS
return error if failed to set tags on Route 53 zone
core: [tests] fix order dependent test
Fix hashcode for ASG test
provider/aws: Fix issue with tainted ASG groups failing to re-create
Don't error when reading s3 bucket with no tags
Avoid panics when DBName is not set
Add floating IP association in aceptance tests
Use env var OS_POOL_NAME as default for pool attribute
providers/heroku: Add heroku-postgres to example
docs: resource addressing
providers/heroku: Document environment variables
providers/heroku: Add region to example
Bugfix on floating IP assignment
Update CHANGELOG.md
update CHANGELOG
website: note on docker
core: formalize resource addressing
core: fill out context tests for targeted ops
...
2015-04-01 16:24:38 -05:00
Clint Shryock
b31a69fe43
provider/aws: Allow DB Parameter group to change in RDS
2015-04-01 16:05:19 -05:00
Clint Shryock
261faaf3d2
Merge branch 'master' into f-rds-update
...
* master: (167 commits)
return error if failed to set tags on Route 53 zone
core: [tests] fix order dependent test
Fix hashcode for ASG test
provider/aws: Fix issue with tainted ASG groups failing to re-create
Don't error when reading s3 bucket with no tags
Avoid panics when DBName is not set
Add floating IP association in aceptance tests
Use env var OS_POOL_NAME as default for pool attribute
providers/heroku: Add heroku-postgres to example
docs: resource addressing
providers/heroku: Document environment variables
providers/heroku: Add region to example
Bugfix on floating IP assignment
Update CHANGELOG.md
update CHANGELOG
website: note on docker
core: formalize resource addressing
core: fill out context tests for targeted ops
core: docs for targeted operations
core: targeted operations
...
2015-04-01 15:28:35 -05:00
Clint Shryock
6be66612b5
Merge remote-tracking branch 'upstream/master' into f-aws-rds-tags
...
* upstream/master:
return error if failed to set tags on Route 53 zone
cleanups
provider/aws: Finish Tag support for Route 53 zone
provider/aws: Add tags to Route53 hosted zones
2015-04-01 14:58:04 -05:00
Clint Shryock
815b79753a
return error if failed to set tags on Route 53 zone
2015-04-01 14:49:50 -05:00
Clint Shryock
a4f72dc8ee
Merge branch 'master' into f-aws-route53zone-tags
...
* master: (172 commits)
core: [tests] fix order dependent test
Fix hashcode for ASG test
provider/aws: Fix issue with tainted ASG groups failing to re-create
Don't error when reading s3 bucket with no tags
Avoid panics when DBName is not set
Add floating IP association in aceptance tests
Use env var OS_POOL_NAME as default for pool attribute
providers/heroku: Add heroku-postgres to example
docs: resource addressing
providers/heroku: Document environment variables
providers/heroku: Add region to example
Bugfix on floating IP assignment
Update CHANGELOG.md
update CHANGELOG
website: note on docker
core: formalize resource addressing
core: fill out context tests for targeted ops
core: docs for targeted operations
core: targeted operations
user_data support
...
2015-04-01 14:23:32 -05:00
Clint Shryock
d16492a962
Merge branch 'master' into f-aws-rds-tags
...
* master: (172 commits)
core: [tests] fix order dependent test
Fix hashcode for ASG test
provider/aws: Fix issue with tainted ASG groups failing to re-create
Don't error when reading s3 bucket with no tags
Avoid panics when DBName is not set
Add floating IP association in aceptance tests
Use env var OS_POOL_NAME as default for pool attribute
providers/heroku: Add heroku-postgres to example
docs: resource addressing
providers/heroku: Document environment variables
providers/heroku: Add region to example
Bugfix on floating IP assignment
Update CHANGELOG.md
update CHANGELOG
website: note on docker
core: formalize resource addressing
core: fill out context tests for targeted ops
core: docs for targeted operations
core: targeted operations
user_data support
...
2015-04-01 14:21:57 -05:00
Paul Hinze
78963fc3d9
providers/aws: fix/improve RDS pointers handling
...
* d.Set has a pointer nil check we can lean on
* need to be a bit more conservative about nil checks on nested structs;
(this fixes the RDS acceptance tests)
/cc @fanhaf
2015-04-01 11:32:17 -05:00
Benjamin Vickers
909fb66f5b
template resource for cloudstack
2015-04-01 17:27:45 +01:00
Joe Topjian
4244d0947e
Making the network resource computable
...
This allows the obtained network information to be successfully stored
for environments that do not require a network resource to be specified.
2015-04-01 16:06:47 +00:00
Clint Shryock
3f5829dc78
Merge branch 'f-aws-asg-fix-drain-delete'
...
* f-aws-asg-fix-drain-delete:
Fix hashcode for ASG test
2015-04-01 10:47:09 -05:00
Clint Shryock
84e448de1a
Fix hashcode for ASG test
2015-04-01 10:42:53 -05:00
Joe Topjian
67e33a7ac9
Updated compute_instance acceptance tests for floating IPs
2015-04-01 15:39:36 +00:00
Joe Topjian
bb81228205
typo with netname when no networks are specified
2015-04-01 15:39:36 +00:00
Joe Topjian
30b0fc7489
Only attempt to get the MAC address if it exists.
2015-04-01 15:39:36 +00:00
Joe Topjian
0d77232196
Fixing computed parameters
2015-04-01 15:39:36 +00:00
Joe Topjian
ccba698370
Network Read changes
...
This commit changes how the network info is read from OpenStack.
It pulls all relevant information from server.Addresses and merges
it with the available information from the networks parameters.
The access_v4, access_v6, and floating IP information is then
determined from the result.
A MAC address parameter is also added since that information is
available in server.Addresses.
2015-04-01 15:39:36 +00:00
Joe Topjian
b160654cb3
Allow networks to be specified by name
...
This commit allows the user to specify a network by name rather than
just uuid. This is done via the os-tenant-networks api extension.
This works for both neutron and nova-network.
2015-04-01 15:39:36 +00:00
Joe Topjian
b90a6152c5
Renamed fixed_ip to fixed_ip_v4 and added fixed_ip_v6
2015-04-01 15:39:36 +00:00
Joe Topjian
d768a01cab
Removes check for a "public" network
...
This is only possible if the OpenStack cloud explicitly has a network
called "public".
2015-04-01 15:39:36 +00:00
Joe Topjian
141b40189e
os-floating-ips support
...
This commit causes the resource to manage floating IPs by way of the
os-floating-ips API.
At the moment, it works with both nova-network and Neutron environments,
but if you use multiple Neutron networks, the network that supports the
floating IP must be listed first.
2015-04-01 15:39:18 +00:00
Clint
9d91c806fc
Merge pull request #1353 from hashicorp/f-aws-asg-fix-drain-delete
...
provider/aws: Fix issue with tainted ASG groups failing to re-create
2015-04-01 10:20:58 -05:00
Clint Shryock
3d65998282
provider/aws: Fix issue with tainted ASG groups failing to re-create
2015-04-01 09:24:26 -05:00
Paul Hinze
0b84f4b097
Merge pull request #1342 from ggiamarchi/openstack-bugfix-floating-ip
...
OpenStack provider - Bugfix on floating IP assignment
2015-04-01 09:09:11 -05:00
Paul Hinze
85c89c3ec6
Merge pull request #1350 from fanhaf/panic_DBName_null
...
Provider/AWS: RDS - Avoid panics when DBName is not set
2015-04-01 09:02:52 -05:00
Phil Frost
27f0873de7
Don't error when reading s3 bucket with no tags
...
s3.GetBucketTagging returns an error if there are no tags associated
with a bucket. Consequently, any configuration with a tagless s3 bucket
would fail with an error, "the TagSet does not exist".
Handle that error more appropriately, interpreting it as an empty set of
tags.
2015-04-01 08:57:50 -04:00
Michał Guminiak
dc67b043fa
Avoid panics when DBName is not set
...
provider/aws: The DBName in RDS instance is optional and when
not set, the Read function return null.
2015-04-01 14:43:05 +02:00
Guillaume Giamarchi
56aa764b94
Add floating IP association in aceptance tests
2015-04-01 11:27:56 +02:00
Guillaume Giamarchi
c0b85d4939
Use env var OS_POOL_NAME as default for pool attribute
...
To have the same behaviour for openstack_networking_floatingip_v2
and openstack_compute_foatingip_v2.
2015-04-01 11:24:54 +02:00
Guillaume Giamarchi
a90b9db397
Bugfix on floating IP assignment
...
The `getFirstNetworkID` does not work correctly because the first
network is not always the private network of the instance.
As long as the `GET /networks` gives a list containing also public
networks we don't have any guarantee that the first network is the
one we want. Furthermore, with a loop over the network list we are
not able to determine which network is the one we want.
Instead of retrieving the network ID and then finding the port ID,
it's better to basically take the first port ID of the instance.
2015-04-01 00:14:56 +02:00
Paul Hinze
08814a51ba
Merge pull request #924 from jrperritt/openstack-gophercloud-v1.0
...
OpenStack Provider
2015-03-31 16:58:21 -05:00
Mitchell Hashimoto
3a167c0216
Merge pull request #1329 from hashicorp/f-docker
...
Docker provider
2015-03-31 14:50:08 -07:00
Chris Buben
0092946f74
user_data support
...
Mostly stolen from: https://github.com/jtopjian/terraform-provider-openstack/blob/master/openstack/resource_openstack_instance.go
2015-03-31 09:54:50 -06:00
Julien Vey
2e37784065
Fix general comments by @phinze
2015-03-31 09:54:50 -06:00
Joe Topjian
f011462e30
Volume Pending States
...
This commit adds pending states for volume attachment, detachment,
and deletion.
2015-03-31 09:54:50 -06:00
Joe Topjian
f5feb7fbbb
Allows "self" to be discovered and recorded correctly.
2015-03-31 09:54:50 -06:00
Guillaume Giamarchi
ba880b136b
Code clean-up
2015-03-31 09:54:50 -06:00
Guillaume Giamarchi
83160acf69
Return Read call result in Create & Update
2015-03-31 09:54:50 -06:00
Guillaume Giamarchi
bdeca31731
remove boilerplate code using CheckDeleted
2015-03-31 09:54:50 -06:00
Guillaume Giamarchi
16a963313f
FWaaS version is actually v1 not v2
...
Rename files and methods.
Confusion have been made between neutron
version and FWaaS extension version.
2015-03-31 09:54:50 -06:00
Guillaume Giamarchi
1efaaeeca6
Use d.GetOk to populate data in read operations
2015-03-31 09:54:50 -06:00
Guillaume Giamarchi
ed31588b84
Unassociate firewall rule from policy before delete
2015-03-31 09:54:49 -06:00
Guillaume Giamarchi
54174dcc05
Fix firewall policies tests
2015-03-31 09:54:49 -06:00
Guillaume Giamarchi
c5e861c049
Remove useless code
2015-03-31 09:54:49 -06:00
Guillaume Giamarchi
1c981d6f30
Fix race conditions on firewall state transition
2015-03-31 09:54:49 -06:00
Guillaume Giamarchi
d6733fb379
Fix code regarding to the latest gophercloud code
2015-03-31 09:54:49 -06:00
Guillaume Giamarchi
cfd3329e00
Add tenant_id attribute on FWaaS resources
2015-03-31 09:54:49 -06:00
Guillaume Giamarchi
0ab06af410
Add FWaaS firewall acceptance test
2015-03-31 09:54:49 -06:00
Guillaume Giamarchi
06826fb677
Add FWaaS policy acceptance test
2015-03-31 09:54:49 -06:00
Guillaume Giamarchi
88a55a5d58
Enable FWaaS resources
2015-03-31 09:54:49 -06:00
Guillaume Giamarchi
3d1001d8fe
Add FWaaS rule acceptance test
2015-03-31 09:54:49 -06:00
Guillaume Giamarchi
5d42242d4b
Add FWaaS firewall resource
2015-03-31 09:54:49 -06:00
Guillaume Giamarchi
f829427151
Add FWaaS policy resource
2015-03-31 09:54:49 -06:00
Guillaume Giamarchi
552b0af201
Add FWaaS rule resource
2015-03-31 09:54:49 -06:00
Joe Topjian
102848525f
Added CheckDelete to handle bad Gets. Also removed unneeded Get
...
from Delete.
2015-03-31 09:54:49 -06:00
Joe Topjian
b7091414fe
Volume Safe Delete
...
This commit ensures that a volume is detached from all instances
before it is deleted.
It also adds in an `attachment` exported parameter that shows details
of the volume's attachment(s).
2015-03-31 09:54:49 -06:00
Joe Topjian
c3c4840baf
openstack_compute_floatingip_v2
...
This commit adds a resource that allows the user to allocate,
deallocate, associate, and disassociate floating IPs through the
nova api.
2015-03-31 09:54:49 -06:00
Eric Bellemon
d03b420e62
Replace perigee.UnexpectedResponseCodeError with gophercloud.UnexpectedResponseCodeError
2015-03-31 09:54:49 -06:00
Long Nguyen
42fb14f19a
Added self option to security groups
2015-03-31 09:54:49 -06:00
Joe Topjian
79e5c419c3
Fixing rule/rules and re-arranged order for schema consistency
2015-03-31 09:54:49 -06:00
Joe Topjian
4c9a44b69f
Added access_ip_v6 support
...
This commit populates access_ip_v6 by either the AccessIPv6 attribute
or by finding the first available IPv6 address.
This commit retains the original feature of setting the default ssh
connection to the IPv4 address unless one is not found. IPv6 access
can still be enabled by explicitly setting it in the resource paramters.
This commit also removes d.Set("host") in favor of SetConnInfo
2015-03-31 09:54:49 -06:00
Jon Perritt
633e98dffe
security group rule fix; still not exporting rule ID
2015-03-31 09:54:49 -06:00
Joe Topjian
4df32aebed
Changing how security groups are read for compute instances
2015-03-31 09:54:49 -06:00
Jon Perritt
64d53009a0
typeset->typelist
2015-03-31 09:54:49 -06:00
Jon Perritt
bb6969a4c5
resize server on flavor_id or flavor_name change
2015-03-31 09:54:49 -06:00
Jon Perritt
49b01a4f0a
update compute instance security group Read operation
2015-03-31 09:54:49 -06:00
Joe Topjian
e5f2315bfe
Instance volume attach
...
This commit adds the ability for instances to attach volumes from within their resource.
2015-03-31 09:54:48 -06:00
Joe Topjian
16ea14e8c9
Grammar fix
2015-03-31 09:54:48 -06:00
Joe Topjian
b3438d07d6
This commit enables both the image_id and the image_name to be
...
computed, so that specifying one will populate the other.
2015-03-31 09:54:48 -06:00
Joe Topjian
768292c069
Support for flavor_name
...
This commit renames flavor_ref to flavor_id and adds the flavor_name
parameter. Users can now specify either a flavor ID or name when launching
instances.
2015-03-31 09:54:48 -06:00
Joe Topjian
74482abc5b
Refactoring multiple results
2015-03-31 09:54:48 -06:00
Joe Topjian
bad2c9f18d
Accounting for multiple results of an image name
...
If multiple results are found, an error will be returned to the user.
2015-03-31 09:54:48 -06:00
Joe Topjian
f51a53000f
Support for image_name
...
This commit renames image_ref to image_id and adds the image_name
parameter. Users can now specify either an image UUID or image name
when launching instances.
image_name is preferrable as deployers/sysadmins generally regularly
deprecate/remove outdated and insecure images. Using a consistent
naming scheme allows end-users to always retrieve a working image.
2015-03-31 09:54:48 -06:00
Jon Perritt
fafa946871
handle 404 (Not Found) in Get operations
2015-03-31 09:54:48 -06:00
Eric Bellemon
9b30ef4eb2
Remove region properties on acceptance tests
2015-03-31 09:54:48 -06:00
Eric Bellemon
e9abf04e4b
Add router interface resource
2015-03-31 09:54:48 -06:00
Eric Bellemon
32d0e36709
Add router resource
2015-03-31 09:54:48 -06:00
Julien Vey
132d5acb33
Make pool name configurable in tests
2015-03-31 09:54:48 -06:00
Julien Vey
760e03856e
Manage floating IP in compute instances
2015-03-31 09:54:48 -06:00
Julien Vey
9aa9c90248
Add floating IP resource
2015-03-31 09:54:48 -06:00
Julien Vey
aae87816f6
add ACTIVE as pending state when deleting instance
2015-03-31 09:54:48 -06:00
Julien Vey
8e9c6787dd
Just try the first IP available if none found before
...
Some cloud don't implement correctly IP addresses.
Instead of failing during the provisionning, we just take the
first IP available and try with this one.
2015-03-31 09:54:48 -06:00
Jon Perritt
ccd51ae3ab
added ok codes to gophercloud -> update ServerV2StateRefreshFunc
2015-03-31 09:54:48 -06:00
Jon Perritt
e2634562a4
define block_device schema
2015-03-31 09:54:48 -06:00
Jon Perritt
436ef9e53b
boot from volume ops and docs
2015-03-31 09:54:48 -06:00
Jon Perritt
761d58df2f
add container and volume resources
2015-03-31 09:54:48 -06:00
Jon Perritt
a85067062d
object storage v1 acceptance tests
2015-03-31 09:54:47 -06:00
Jon Perritt
d2169e0e96
block storage v1 acceptance tests
2015-03-31 09:54:47 -06:00
Jon Perritt
acd5a033f0
fix typo in client variable name
2015-03-31 09:54:47 -06:00
Jon Perritt
f1ac6dbfec
block storage volume v1 ops
2015-03-31 09:54:47 -06:00
Jon Perritt
a5147f472b
update metadata before actual Update op
2015-03-31 09:54:47 -06:00
Jon Perritt
43564d1c5c
object storage container v1 ops
2015-03-31 09:54:47 -06:00
Jon Perritt
08672e697e
networking subnets acceptance tests
2015-03-31 09:54:47 -06:00
Jon Perritt
e040934077
networking networks acceptance tests
2015-03-31 09:54:47 -06:00
Jon Perritt
d46d9a6540
lb vips acceptance tests
2015-03-31 09:54:47 -06:00
Jon Perritt
e7a69d0a6c
lb pools acceptance tests
2015-03-31 09:54:47 -06:00
Jon Perritt
e08e97304f
lb monitors acceptance tests
2015-03-31 09:54:47 -06:00
Jon Perritt
66129632b3
security groups acceptance tests
2015-03-31 09:54:47 -06:00
Jon Perritt
fa15d41d45
UpdateOpts not optional
2015-03-31 09:54:47 -06:00
Jon Perritt
b9395b36d2
update client methods
2015-03-31 09:54:47 -06:00
Jon Perritt
6b2f2df042
'rules' -> 'rule'
2015-03-31 09:54:47 -06:00
Jon Perritt
33d62bbdbf
'networks' -> 'network'
2015-03-31 09:54:47 -06:00
Jon Perritt
777c34cf7c
move lb member ops into lb pool file
2015-03-31 09:54:47 -06:00
Jon Perritt
1aba665ad7
refactor service clients to *Config
2015-03-31 09:54:47 -06:00
Jon Perritt
3627368fc0
remove security group rule option from provider
2015-03-31 09:54:47 -06:00
Jon Perritt
a2d2f92741
remove security group rule file
2015-03-31 09:54:47 -06:00
Jon Perritt
c233c7f7f0
fix typo in comment
2015-03-31 09:54:47 -06:00
Jon Perritt
ea7c075273
add security group rules ops to security groups file
2015-03-31 09:54:47 -06:00
Jon Perritt
3a6107d0ab
keypairs v2 acceptance tests
2015-03-31 09:54:47 -06:00
Jon Perritt
17b137c972
go fmt
2015-03-31 09:54:47 -06:00
Jon Perritt
a707f8414c
compute instance v2 acceptance tests
2015-03-31 09:54:46 -06:00
Jon Perritt
e278f852b3
add image_ref and flavor_ref checks
2015-03-31 09:54:46 -06:00
Jon Perritt
59b5efc25a
add defaultFuncs; fix bug with server createOpts
2015-03-31 09:54:46 -06:00
Jon Perritt
e6f3a19284
add defaultFunc for 'tenant_name'
2015-03-31 09:54:46 -06:00
Jon Perritt
d86cb6be1c
fix diff bug in 'Read' functions
2015-03-31 09:54:46 -06:00
Jon Perritt
5d2fe153c0
go fmt
2015-03-31 09:54:46 -06:00
Jon Perritt
d51ee3111e
always need both name and description when updating
2015-03-31 09:54:46 -06:00
Jon Perritt
2214331b3c
export 'region' from 'Read' operations
2015-03-31 09:54:46 -06:00
Jon Perritt
46a7949c9d
fix bug in SessionPersistence logic
2015-03-31 09:54:46 -06:00
Jon Perritt
9b54c569cc
use 'Default' to forgo prompt
2015-03-31 09:54:46 -06:00
Jon Perritt
dc99dd1f05
add versioning to files
2015-03-31 09:54:46 -06:00
Jon Perritt
8579c8693a
make 'region' resource-specific; create new client for each crud operation
2015-03-31 09:54:46 -06:00
Jon Perritt
bfe492d407
add options for openstack identity v3
2015-03-31 09:54:46 -06:00
Jon Perritt
b0e8cd5dd3
a more general way of generating provider clients
2015-03-31 09:54:46 -06:00
Jon Perritt
b1b693e461
region is resource-specific; doesn't belong with auth
2015-03-31 09:54:46 -06:00
Jon Perritt
cc1445d760
if update func called, there's something to update
2015-03-31 09:54:46 -06:00
Jon Perritt
dd4155fa80
set host in read function
2015-03-31 09:54:46 -06:00
Jon Perritt
8e6e7909cb
neutron subnet operations
2015-03-31 09:54:46 -06:00
Jon Perritt
ef3ee11045
neutron network operations
2015-03-31 09:54:46 -06:00
Jon Perritt
c2230a8aaa
lb vip operations
2015-03-31 09:54:46 -06:00
Jon Perritt
7132b02a84
lb pool operations
2015-03-31 09:54:45 -06:00
Jon Perritt
966c8420d1
lb monitor operations
2015-03-31 09:54:45 -06:00
Jon Perritt
9077b66045
lb member operations
2015-03-31 09:54:45 -06:00
Jon Perritt
ac79c76b13
add lb resources
2015-03-31 09:54:45 -06:00
Jon Perritt
4424828d25
crud for neutron subnets
2015-03-31 09:54:45 -06:00
Jon Perritt
4761075790
crud for neutron networks
2015-03-31 09:54:45 -06:00
Jon Perritt
45c4868f90
fix comment
2015-03-31 09:54:45 -06:00
Jon Perritt
457bbe661a
resource_compute_secgroup -> resource_openstack_compute_secgroup
2015-03-31 09:54:45 -06:00
Jon Perritt
d7560de2dd
remove errant comment
2015-03-31 09:54:45 -06:00
Jon Perritt
23d425072c
add/delete security groups and rules
2015-03-31 09:54:45 -06:00
Jon Perritt
01e41646d3
add/get/delete keypairs
2015-03-31 09:54:45 -06:00
Jon Perritt
47955b1d44
remove unneeded variables during server creation
2015-03-31 09:54:45 -06:00
Jon Perritt
edc280a8dc
add/update admin pass on server; change key pair format from map to string
2015-03-31 09:54:45 -06:00
Jon Perritt
04a9d47bca
add/update/remove sec groups from server
2015-03-31 09:54:45 -06:00
Jon Perritt
f17649e9dc
server resizing
2015-03-31 09:54:45 -06:00
Jon Perritt
0bb0dad58c
provider test
2015-03-31 09:54:45 -06:00
Jon Perritt
48e92f8173
OS_REGION -> OS_REGION_NAME (thank you @hartzell)
2015-03-31 09:54:45 -06:00
Jon Perritt
3112103acf
server keypair
2015-03-31 09:54:45 -06:00
Jon Perritt
cc9ee787ac
update openstack server metadata
2015-03-31 09:54:45 -06:00
Jon Perritt
f9fa748024
crud for openstack servers v2
2015-03-31 09:54:45 -06:00
Clint Shryock
e485767694
provider/aws: Add non-destructive updates to AWS RDS
...
This introduces non-destructive, in-place upgrades to MultiAZ and Engine Version
attributes of AWS RDS instances.
2015-03-31 09:41:37 -05:00
Clint Shryock
a897b5208e
Merge branch 'f-aws-rds-tags' into f-rds-update
...
* f-aws-rds-tags:
fix index out of range error
fix formatting
upgrade VPC Ids and DB Subnet to be optionally computed
fix typo
provider/aws: Introduce IAM connection
2015-03-30 15:19:35 -05:00
Clint Shryock
755f8d0f44
provider/aws: Fix acceptance test checks for AWS Security Group
2015-03-30 14:54:03 -05:00
Paul Hinze
f2968b045c
Merge pull request #1316 from hashicorp/b-empty-instancestate-state-migrate-crash
...
providers/aws: handle empty instancestate in state migration
2015-03-29 08:53:04 -05:00
Mitchell Hashimoto
118a5b9dfd
providers/docker: ping docker server on startup
2015-03-28 19:06:48 -07:00
Mitchell Hashimoto
a7a5d2e564
providers/docker: make container test better
2015-03-28 18:45:36 -07:00
Mitchell Hashimoto
09333e5e76
providres/docker: cache client
2015-03-28 18:37:20 -07:00
Mitchell Hashimoto
7c253155c1
providers/docker: container acceptance tests
2015-03-27 15:33:17 -07:00
Mitchell Hashimoto
3601e9f5ee
providers/docker: docker_image acceptance test
2015-03-27 15:22:33 -07:00
Mitchell Hashimoto
d6303c91ad
providers/docker: support DOCKER_CERT_PATH
2015-03-27 15:18:52 -07:00
Clint Shryock
ce8ec26d08
cleanups
2015-03-27 16:05:54 -05:00
Mitchell Hashimoto
b7c88f0038
Merge branch 'master' of https://github.com/jefferai/terraform into jefferai-master
2015-03-27 13:44:40 -07:00
Clint Shryock
12585b1963
provider/aws: Finish Tag support for Route 53 zone
2015-03-27 15:41:42 -05:00
Mitchell Hashimoto
7d846cb97e
Merge pull request #1315 from hashicorp/b-heroku-config-vars-2
...
providers/heroku: empty config vars block shouldn't panic [GH-1211]
2015-03-27 12:17:27 -07:00
Clint Shryock
3ce5b6cd70
Merge branch 'master' into f-aws-route53zone-tags
...
* master:
provider/aws: Fix dependency violation when deleting Internet Gateways
command/remote-config: failing tests
update CHANGELOG
command/remote-config: do a pull with `terraform remote config`
command/remote-{pull,push}: colorize and show success output
command/remote-config: lowercase the type so that Atlas works, for example
command/remote-config: show flag parse errors
command/remote-config: remove weird error case that shows no error message
command: when setting up state, only write back if local is newer
2015-03-27 13:57:33 -05:00
Clint Shryock
38c386487b
Merge branch 'master' into f-aws-rds-tags
...
* master: (66 commits)
provider/aws: Fix dependency violation when deleting Internet Gateways
command/remote-config: failing tests
update CHANGELOG
command/remote-config: do a pull with `terraform remote config`
command/remote-{pull,push}: colorize and show success output
command/remote-config: lowercase the type so that Atlas works, for example
command/remote-config: show flag parse errors
command/remote-config: remove weird error case that shows no error message
command: when setting up state, only write back if local is newer
minor code cleanups to get acceptance tests passing
update CHANGELOG
providers/digitalocean: add dot in GET response
providers/digitalocean: force fqdn in dns rr value
update CHANGELOG
small code cleanup
Add proper reading/updating of tags for S3
provider/aws: Add tags to S3
Documentation for ASG Tags added
Tags support added for AWS ASG
command/output: don't panic if no root module in state [GH-1263]
...
2015-03-27 13:49:05 -05:00
Clint Shryock
043a4848ee
provider/aws: Fix dependency violation when deleting Internet Gateways
2015-03-27 11:39:07 -05:00
Clint Shryock
b64a919d83
provider/aws: Add tags to Route53 hosted zones
2015-03-26 16:45:23 -05:00
Clint
340863b6cc
Merge pull request #1312 from hashicorp/f-aws-s3-tags
...
provider/aws: Add tags to S3
2015-03-26 15:15:54 -05:00
Clint
1b22f206fb
Merge pull request #1279 from hashicorp/b-route53-record-fixes
...
provider/aws: Cleanup Route 53 subdomain name handling
2015-03-26 15:15:31 -05:00
Clint Shryock
deda59b50e
minor code cleanups to get acceptance tests passing
2015-03-26 14:49:15 -05:00
Clint Shryock
877eb902a0
Merge branch 'master' into time-asg-tags-support
...
* master:
update CHANGELOG
providers/digitalocean: add dot in GET response
providers/digitalocean: force fqdn in dns rr value
update CHANGELOG
Add disk size to google_compute_instance disk blocks.
'project' should be set to the project's ID, not its name.
Don't error when enabling DNS hostnames in a VPC
Correct AWS VPC or route table read functions
Updates to GCE Instances and Instance Templates to allow for false values to be set for the auto_delete setting.
Update GCE Instance Template tests now that existing disk must exist prior to template creation.
Update Google API import to point to the new location.
add network field to the network_interface
2015-03-26 13:47:46 -05:00
Paul Hinze
f51fb5e127
providers/aws: handle empty instancestate in state migration
...
fixes #1309
2015-03-26 13:07:04 -05:00
Anton Tereshchenkov
6f76340192
providers/digitalocean: add dot in GET response
...
Added tests for relative and external CNAME values.
2015-03-26 10:57:46 -07:00
Anton Tereshchenkov
3565ae034e
providers/digitalocean: force fqdn in dns rr value
...
Fixes a bug that forces DNS record to be recreated when dealing with
records that have domain values (CNAME, MX, NS, etc.)
2015-03-26 10:57:46 -07:00
Mitchell Hashimoto
5e7007e38f
Merge pull request #1239 from BashtonLtd/gce_fix_false_bools
...
providers/google: Updates to GCE Instances and Instance Templates to allow for false bools.
2015-03-26 10:20:52 -07:00
Mitchell Hashimoto
591376f88d
Merge pull request #1238 from BashtonLtd/gce_update_instance_template_disk_tests
...
providers/google: Update GCE Instance Template tests now that existing disk must exist first.
2015-03-26 10:20:29 -07:00
Mitchell Hashimoto
266670c1a1
Merge pull request #1154 from stuntgoat/gce-add-network
...
providers/google: add network field to the network_interface
2015-03-26 10:19:00 -07:00
Mitchell Hashimoto
944ff16d4e
Merge branch 'vpc_missing' of https://github.com/bitglue/terraform into bitglue-vpc_missing
...
Conflicts:
builtin/providers/aws/resource_aws_vpc.go
2015-03-26 10:17:14 -07:00
Mitchell Hashimoto
d21c112593
Merge pull request #1236 from BashtonLtd/gce_update_imports
...
Update Google API import to point to the new location.
2015-03-26 10:14:33 -07:00
Mitchell Hashimoto
deb5052454
Merge pull request #1284 from ndarilek/add-size-to-instance-disk
...
Add size option to disk blocks under google_compute_instance
2015-03-26 10:13:11 -07:00
Clint Shryock
1b699aae7d
small code cleanup
2015-03-26 11:58:20 -05:00
Mitchell Hashimoto
e5a375ae58
providers/heroku: empty config vars block shouldn't panic [GH-1211]
2015-03-26 09:45:37 -07:00
Clint Shryock
be60d39b24
Add proper reading/updating of tags for S3
2015-03-26 11:45:16 -05:00
Clint Shryock
c6d832333b
provider/aws: Add tags to S3
2015-03-26 11:19:42 -05:00
Radek Simko
fff05e2aad
Tags support added for AWS ASG
2015-03-26 07:35:15 +00:00
Sander van Harmelen
26fa9b6daa
Merge pull request #1305 from svanharmelen/b-provider/cloudstack-template
...
provider/cloudstack: some small fixes, needed to work with bigger templates
2015-03-25 22:56:37 +01:00
Sander van Harmelen
041cce36b4
Some small fixes, needed to work with bigger templates
2015-03-25 22:48:44 +01:00
Paul Hinze
396b082c20
Merge pull request #1304 from hashicorp/b-aws-vpc-modify-attr-req
...
providers/aws: fix DNS options on VPC
2015-03-25 16:24:13 -05:00
Paul Hinze
cddb057f40
providers/aws: fix DNS options on VPC
...
One typo on a `d.Get` and reuse of the request object was making it sad.
Now it is happy!
fixes #1301
2015-03-25 15:15:32 -05:00
Paul Hinze
6b02cfb700
Merge pull request #1277 from hashicorp/f-aws-derive-root-device-name
...
providers/aws: derive instance root_block_device name
2015-03-25 15:15:05 -05:00
Clint Shryock
89854b0af5
fix index out of range error
2015-03-25 11:10:12 -05:00
Clint Shryock
398f4564c4
fix formatting
2015-03-25 10:32:54 -05:00
Clint Shryock
65ff5b327d
upgrade VPC Ids and DB Subnet to be optionally computed
2015-03-25 10:14:45 -05:00
Clint Shryock
676f3c5bab
fix typo
2015-03-25 10:05:15 -05:00
Clint Shryock
87907e24ba
provider/aws: Introduce IAM connection
2015-03-24 15:47:22 -05:00
Clint Shryock
ef094e2cfe
provider/aws: Add tag support to ELB
2015-03-24 13:37:42 -05:00
Nolan Darilek
9d75fa72ab
Add disk size to google_compute_instance disk blocks.
2015-03-24 11:45:20 -05:00
Clint Shryock
32eebf4e15
provider/aws: Cleanup Route 53 subdomain name handling
2015-03-23 15:01:53 -05:00
Paul Hinze
a4e80b6313
providers/aws: derive instance root_block_device name
...
I was working on building a validation to check the user-provided
"device_name" for "root_block_device" on AWS Instances, when I realized
that if I can check it, I might as well just derive it automatically!
So that's what we do here - when you customize the details of the root
block device, device name is just comes from the selected AMI.
2015-03-23 11:58:45 -05:00
Clint
55d682482a
Merge pull request #1274 from TimeIncOSS/modifiers-fix
...
Fix fmt modifiers for bool to be actually bool, not integer
2015-03-23 10:56:23 -05:00
Radek Simko
bbda2d6733
Fix fmt modifiers for bool to be actually bool, not integer
2015-03-22 13:33:17 +00:00
Phil Frost
b49fba6b61
Don't error when enabling DNS hostnames in a VPC
...
The AWS API call ModifyVpcAttribute will allow only one attribute to be
modified at a time. Modifying both results in the error:
Fields for multiple attribute types specified: enableDnsHostnames, enableDnsSupport
Retructure the provider to honor this restriction.
Also, enable DNS support before attempting to enable DNS hostnames,
since the former is a prerequisite of the latter.
Additionally, fix what must have been a copy&paste error, setting
enable_dns_support to the value of enable_dns_hostnames.
2015-03-20 14:49:50 -04:00
Phil Frost
9545f26fa0
Correct AWS VPC or route table read functions
...
If the state file contained a VPC or a route table which no longer
exists, Terraform would fail to create the correct plan, which is to
recreate them.
In the case of VPCs, this was due to incorrect error handling. The AWS
SDK returns a aws.APIError, not a *aws.APIError on error. When the VPC
no longer exists, upon attempting to refresh state Terraform would
simply exit with an error.
For route tables, the provider would recognize that the route table no
longer existed, but would not make the appropriate call to update the
state as such. Thus there'd be no crash, but also no plan to re-create
the route table.
2015-03-20 13:38:41 -04:00
Clint Shryock
f97343dea1
provider/aws: Fix issue in AWS AutoScaling Group where health_check_type is not set correctly
2015-03-20 10:11:12 -05:00
Clint Shryock
c48a5bf42b
provider/aws: Fix DB Subnet refresh issue
2015-03-19 16:45:07 -05:00
Clint
bb4dd8ae77
Merge pull request #1137 from deverton/aws-go-vpn
...
provider/aws: Add Support For AWS VPN Gateways using aws-sdk-go
2015-03-19 16:12:17 -05:00
Clint Shryock
1ccfcb5e3d
Merge remote-tracking branch 'upstream/master'
...
* upstream/master:
provider/aws: Fix dependency violation with subnets and security groups
2015-03-19 16:01:15 -05:00
Clint Shryock
a8c80a447e
Merge branch 'b-fix-route53-txt-records'
...
* b-fix-route53-txt-records:
provider/aws: Fix issue with Route53 and TXT records
provider/aws: Add test for TXT route53 record
2015-03-19 15:47:20 -05:00
Clint
3cbc8899b5
Merge pull request #1252 from hashicorp/fix-subnet-sg-dependency-violation
...
provider/aws: Fix dependency violation with subnets and security groups
2015-03-19 15:39:57 -05:00
Clint Shryock
3d8005729d
provider/aws: Fix dependency violation with subnets and security groups
...
Though not directly connected, trying to delete a subnet and security group in
parallel can cause a dependency violation from the subnet, claiming there are
dependencies.
This commit fixes that by allowing subnet deletion to tolerate failure with a
retry / refresh function.
Fixes #934
2015-03-19 15:10:49 -05:00
Paul Hinze
5e1de9d930
Merge pull request #1250 from hashicorp/b-block-devices
...
providers/aws: fix bug w/ empty block dev mapping
2015-03-19 13:21:08 -05:00
Paul Hinze
6c62e23829
providers/aws: fix bug w/ empty block dev mapping
...
fixes #1249
2015-03-19 13:14:31 -05:00