Commit Graph

506 Commits

Author SHA1 Message Date
Mitchell Hashimoto bea81d7710 providers/aws: fix some broken tests 2014-09-22 08:57:17 -07:00
Mitchell Hashimoto 166847d5dc Merge branch 'f-state'
Conflicts:
	builtin/providers/aws/resource_aws_subnet.go
2014-09-22 08:55:44 -07:00
Alek Storm c7f219a781 Store aws_db_instance.password in tfstate, change to AttrTypeCreate 2014-09-18 13:55:43 -07:00
Alek Storm ba0591c85d Force recreation when aws_instance.private_ip changes 2014-09-18 13:26:49 -07:00
Alek Storm f928829a1c Don't error out when RDS DB instance disappears 2014-09-18 13:25:30 -07:00
Alek Storm 5b806f0737 Rename aws_db_instance.subnet_group_name to db_subnet_group_name 2014-09-18 13:19:24 -07:00
Mitchell Hashimoto 9b2b3a963f ResourceDiff => InstanceDiff 2014-09-17 16:33:24 -07:00
Eric Buth 90b75b86c4 added missing internal ELB option 2014-09-17 17:56:27 -04:00
Mitchell Hashimoto c5d6df692d providers/aws: tests passing, compiles 2014-09-16 17:49:24 -07:00
Mitchell Hashimoto 78471d2aa0 providers/cloudflare: tests passing, compiles 2014-09-16 17:31:07 -07:00
Mitchell Hashimoto e4066595c9 providers/consul: tests passing, compiling 2014-09-16 17:29:38 -07:00
Mitchell Hashimoto aafbc2ab7c providers/digitalocean: tests passing, compiling 2014-09-16 17:28:22 -07:00
Mitchell Hashimoto c2a2aca999 providers/dnsimple: tests passing, compiling 2014-09-16 17:24:05 -07:00
Mitchell Hashimoto a590ed02df providers/mailgun: tests passing, compiling 2014-09-16 17:21:49 -07:00
Mitchell Hashimoto 64bc356f97 providers/heroku: tests passing, compiling 2014-09-16 17:21:01 -07:00
Mitchell Hashimoto ecc10616ba providers/google: tests passing, compiling 2014-09-16 17:17:09 -07:00
Mitchell Hashimoto c452579512 provisioners/*: compiling, tests passing 2014-09-16 17:08:27 -07:00
Jack Pearkes 002e640d0b Merge pull request #259 from hden/vpc_zone_identifier
allow vpc_zone_identifier in aws_autoscaling_group
2014-09-16 10:44:32 -04:00
Jack Pearkes 9fc775e41c providers/aws: fix tests for subnet map_public_ip, add docs
This working depends on merging mitchellh/goamz#109

Related: #285

cc/ @hden
2014-09-16 10:37:22 -04:00
Jack Pearkes ee24fce321 Merge pull request #285 from hden/263
add MapPublicIpOnLaunch
2014-09-16 09:56:40 -04:00
Jack Pearkes dd434fb71b providers/aws: add description to test
cc/ @buth

Looks like the schema was correctly defining description as required,
added it to the tests and it's passing now.
2014-09-16 09:44:32 -04:00
Eric Buth 4cd11e4091 AWS DB Subnet Group resource and testing 2014-09-15 14:58:04 -04:00
Hao-kang Den d9665bad4e add MapPublicIpOnLaunch 2014-09-10 13:13:16 +08:00
Mitchell Hashimoto 2317f7ea9b providers/aws: proper DefaultFunc to return nil if no env 2014-09-09 21:46:50 -07:00
Mitchell Hashimoto 6a275d7bd0 providers/aws: convert validation to helper/schema 2014-09-09 21:44:31 -07:00
Mitchell Hashimoto 62e2743dcc providers/aws: retry delete of eip [GH-276] 2014-09-09 14:18:53 -07:00
Mitchell Hashimoto 57f287c06d providers/aws: check for non-exist on refresh 2014-09-09 14:15:33 -07:00
Mitchell Hashimoto a5b85dd788 providers/aws: check if instance is set on eip 2014-09-09 14:15:08 -07:00
Mitchell Hashimoto a5c884f5aa fmt 2014-09-09 13:43:03 -07:00
Mitchell Hashimoto 78672ead21 providers/digitalocean: convert domain to helper/schema [GH-187] 2014-09-09 13:42:06 -07:00
Mitchell Hashimoto 228fd035ba providers/digitalocean: handle when resource deleted manually [GH-279] 2014-09-09 13:36:47 -07:00
Mitchell Hashimoto 0a1397b374 providers/digitalocean: convert record to schema 2014-09-09 13:29:36 -07:00
Mitchell Hashimoto 6a1a8b9487 providers/digitalocean: schema framework, validation 2014-09-09 13:13:11 -07:00
Mitchell Hashimoto ab5e07a1f9 providers/aws: use GetOk to check for value [GH-258] 2014-09-08 20:24:43 -07:00
Mitchell Hashimoto b9e693134d Merge pull request #254 from dainis/fix_gce_persistent_disk_attaching
providers/google: Fix gce persistent disk attaching
2014-09-07 16:08:49 -07:00
Mitchell Hashimoto 634dd7e4a3 Merge pull request #260 from jkinred/master
providers/amazon: Allow building of EC2 instances with ebs_optimized flag
2014-09-07 16:01:59 -07:00
Jack Pearkes 58a482d677 providers/digitalocean: fix tests for region
the user_data argument doesn't exist on all regions
2014-09-05 11:18:49 -04:00
Jack Pearkes 28692656e2 providers/digitalocean: add user_data for create droplet
fixes #267
2014-09-05 11:16:12 -04:00
Jack Pearkes bf52f3886b providers/digitalocean: if delete droplet returns 404, mark as gone 2014-09-05 11:10:22 -04:00
shin1x1 781e512dde fix associate_public_ip_address parameter name 2014-09-03 20:54:36 +09:00
Jonathan Kinred 2b764de383 Allow building of EC2 instances with ebs_optimized flag 2014-09-03 20:18:40 +10:00
Hao-kang Den 125977e075 allow vpc_zone_identifier in aws_autoscaling_group 2014-09-03 09:38:07 +08:00
Dainis Tillers 0ba2194503 Added - flag to set whether disk needs to be delete or not when instance terminates 2014-09-02 16:52:49 +03:00
Dainis Tillers 47ee01b7ce Fixed - allow to attach already existing disks 2014-09-02 16:52:21 +03:00
Dainis Tillers ebdceac770 Require project id as otherwise it will fail with cryptic error 2014-09-02 16:49:16 +03:00
Mitchell Hashimoto 3a3e3346d5 providers/aws: route53 record destroy in parallel works 2014-08-31 09:12:05 -07:00
Mitchell Hashimoto 08dbf4daf0 fmt 2014-08-30 17:02:11 -07:00
Jack Pearkes 7cfad67920 providers/mailgun: remove dedebugging 2014-08-29 13:36:26 -07:00
Jack Pearkes 96c481578f providers/mailgun: save domain records 2014-08-29 11:39:06 -07:00
Jack Pearkes 02c93f0aea providers/mailgun: return domain response instead of domain
see also 5b02e7e9ff
2014-08-29 11:15:14 -07:00
Mitchell Hashimoto bb2edb20fd providers/heroku: clean up heroku_app config vars 2014-08-27 21:07:56 -07:00
Mitchell Hashimoto 39c4fb2005 providers/heroku: plans work without specific plan name [GH-198] 2014-08-27 21:05:09 -07:00
Mitchell Hashimoto d8cc32b49f providers/heroku: all_config_vars for reading 2014-08-27 16:35:15 -07:00
Mitchell Hashimoto 0a03ff9d34 providers/heroku: config vars aren't computed, they're non-exclusive
/cc @pearkes - See doc change
2014-08-27 16:26:03 -07:00
Jack Pearkes 02d18d67b8 providers/heroku: name and region are now required
cc/ @catsby if you're curious. That fixed the acceptance tests,
thought there is still one (different issue) that is still failing.

Also, it nows construct a transport instead of using the default
and setting the auth globally. TF could potentially run things
concurrently and that might go wrong.
2014-08-27 16:06:43 -07:00
Mitchell Hashimoto c9a541d95b helper/schema: generate a full diff in destroy/create cycle 2014-08-27 15:45:52 -07:00
Clint Shryock f6d5ed6c31 Swap bgentry/heroku-go for cyberdelia/heroku-go 2014-08-27 09:50:37 -05:00
Mitchell Hashimoto 2fc1a47212 bins/consul: add test file 2014-08-26 21:57:33 -07:00
Mitchell Hashimoto 8f1cbc5ab7 bins/{google,mailgun} 2014-08-26 21:56:47 -07:00
Mitchell Hashimoto 3e4b7b862a providers/google: compute_firewall partial state 2014-08-26 20:33:53 -07:00
Mitchell Hashimoto bfbb9201c4 providers/google: partial updates with compute_instance 2014-08-26 20:31:35 -07:00
Mitchell Hashimoto cefc07d665 Merge pull request #227 from desimone/patch-2
provisioners/remote-exec: More descriptive variable names for pipes.
2014-08-26 15:35:45 -07:00
Mitchell Hashimoto b7e16c6b53 providers/aws: source_dest_check applies [GH-229] 2014-08-26 15:05:36 -07:00
Mitchell Hashimoto 3934c1b106 Merge pull request #235 from hashicorp/f-gce
Google Compute Engine Provider
2014-08-26 14:53:27 -07:00
Mitchell Hashimoto ea585a5950 providers/google: compute_instance supports updating tags 2014-08-26 13:52:18 -07:00
Mitchell Hashimoto a451be0140 providers/google: compute_instance supports updating metadata 2014-08-26 13:48:49 -07:00
Mitchell Hashimoto 69a9619924 providers/google: compute_firewall update 2014-08-26 12:50:08 -07:00
Mitchell Hashimoto f2d7900e63 providers/google: on refresh, treat 404 as resource gone 2014-08-25 22:49:14 -07:00
Mitchell Hashimoto 673b62db96 providers/google: check operations for errors 2014-08-25 22:44:27 -07:00
Mitchell Hashimoto bf6df9420f providers/google: compute_route 2014-08-25 22:39:29 -07:00
Mitchell Hashimoto 0c2a0aeeba providers/google: proper resource type in error message 2014-08-25 22:13:37 -07:00
Mitchell Hashimoto 8639c104a2 providers/google: compute_firewall 2014-08-25 22:09:38 -07:00
Mitchell Hashimoto 7ad39614fa providers/google: compute_network 2014-08-25 21:41:15 -07:00
Mitchell Hashimoto 99918bde2e providers/google: support disks coming from other disks 2014-08-25 21:35:23 -07:00
Mitchell Hashimoto 81c9b695a1 fmt 2014-08-25 16:23:38 -07:00
Mitchell Hashimoto efe9b53a05 providers/google: compute_disk 2014-08-25 16:23:28 -07:00
Mitchell Hashimoto f5d4b605c2 providers/google: can assign IP to instance 2014-08-25 15:47:21 -07:00
Mitchell Hashimoto 7f3bb1a45a providers/google: compute_instance supports metadata 2014-08-25 15:25:45 -07:00
Mitchell Hashimoto da03be8941 providers/google: support tags on compute_instance 2014-08-25 15:10:30 -07:00
Mitchell Hashimoto 5bf258809f providers/google: compute_instance 2014-08-25 14:57:17 -07:00
bdd 4a53f38d3a Update resource_provisioner.go
Better variable name.
2014-08-25 17:39:46 -04:00
Mitchell Hashimoto 043a7d516e providers/google: compute_address tests 2014-08-25 13:56:40 -07:00
Mitchell Hashimoto a80222bbe4 providers/google: google_compute_address 2014-08-25 12:55:08 -07:00
Mitchell Hashimoto f346964fca providers/google: first pass 2014-08-25 11:48:20 -07:00
Jack Pearkes b79834e859 providers/mailgun: smtp_password is required, no need for pub api key 2014-08-25 10:09:50 -07:00
Jack Pearkes b71ff28871 providers/mailgun: smtp_password is required 2014-08-25 10:09:50 -07:00
Jack Pearkes e3d54cb487 providers/mailgun: initial commit 2014-08-25 10:09:50 -07:00
bdd b2ff49be2e More descriptive variable names for pipes. 2014-08-25 12:39:07 -04:00
bdd 6da9a2d49d Use scanner instead of buffer read line
Supported in Go 1.1 http://golang.org/pkg/bufio/#Scanner
2014-08-25 11:58:14 -04:00
Mitchell Hashimoto 56cf1e6faa Fix go vet complaints 2014-08-24 21:50:35 -07:00
Ryan Uber e530eea226 provider/aws: fix panic when user_data receives nil from StateFunc 2014-08-23 00:20:41 -07:00
Mitchell Hashimoto 623c635fb1 providers/aws: can create records with multiple values [GH-221] 2014-08-22 17:19:39 -07:00
Mitchell Hashimoto c886148e15 providers/aws: use example.com for tests 2014-08-22 12:51:19 -07:00
Mitchell Hashimoto ed99d2497b providers/aws: retry route53 operations [GH-183] 2014-08-22 12:51:11 -07:00
Mitchell Hashimoto 8f70920c17 providers/aws: fix some other issues with aws_instance 2014-08-22 12:20:06 -07:00
Mitchell Hashimoto ba68be5672 providers/aws: use StateFunc to process the user_data 2014-08-22 08:46:48 -07:00
Mitchell Hashimoto f26a2700a1 fmt 2014-08-22 08:46:03 -07:00
Mitchell Hashimoto 7be2f1b091 helper/schema: add GetOk 2014-08-21 23:03:04 -07:00
Mitchell Hashimoto 2fd2470c92 providers/aws: resource_aws_instance partially to schema.Resource 2014-08-21 18:38:43 -07:00
Alek Storm b6c5e5bbf6 Allow aws_instance private IP's to be specified 2014-08-21 17:13:36 -07:00
Mitchell Hashimoto cdc2a53553 providers/aws: changing order of security group cidrs doesn't affect
things
2014-08-21 14:10:09 -07:00
Mitchell Hashimoto 5b620b76f5 providers/aws: update comment 2014-08-21 12:00:32 -07:00
Mitchell Hashimoto 200f7c4488 providers/aws: can add remove individual cidr/groups in security group 2014-08-21 11:59:03 -07:00
Mitchell Hashimoto 4015d942ab providers/aws: security group ingress rules treated as set [GH-87]
/cc @pearkes - !!!
2014-08-20 22:24:13 -07:00
Jack Pearkes 6eb6d19384 providers/aws: vpc dns settings tests
cc/ @deoxxa see diff for how to add tests – quite straight forward.

Normally, I would like to add a check to ensure that the attribute
was updated remotely (by seeing what it's value with AWS is) but
I don't think we have that value returned.
2014-08-20 11:29:52 -07:00
Mitchell Hashimoto 53cdbcc9fa providers/aws: security group ingress rules can be updated 2014-08-20 11:18:16 -07:00
Mitchell Hashimoto a594ef9a28 providers/aws: expandIPPerms works again 2014-08-20 11:18:16 -07:00
Jack Pearkes 33a7d32f40 Merge pull request #172 from deoxxa/add-vpc-dns-attributes
add vpc dns attribute support
2014-08-20 11:14:07 -07:00
Jack Pearkes 97cae408b2 providers/aws: tests and document adding load balancers to autoscaling
cc/ @thatha
2014-08-20 10:42:14 -07:00
Mitchell Hashimoto 89041c0595 providers/aws: resource_aws_security_group using helper/schema 2014-08-20 10:40:18 -07:00
Ian Atha 13b0e7ee2c Allow 'load_balancers.*' to pass resource_aws_autoscaling_group_validation 2014-08-19 19:53:12 -07:00
Mitchell Hashimoto d25747ba5c providers/aws: cleaner detection of VPC [GH-122] 2014-08-19 17:22:25 -07:00
Mitchell Hashimoto c4d261ac61 providers/aws: resource_aws_eip is in new framework 2014-08-19 16:56:23 -07:00
Mitchell Hashimoto 776bb22e4e providers/aws: create an empty schema.Provider 2014-08-19 15:40:48 -07:00
Mitchell Hashimoto 25607686c1 provider/heroku: fix bin 2014-08-19 10:19:19 -07:00
Mitchell Hashimoto 9a0c0ea985 providers/heroku: domain/drain have dep on app 2014-08-19 10:16:47 -07:00
Mitchell Hashimoto 2a6b83591a providers/heroku: nuking config vars works 2014-08-19 10:13:34 -07:00
Jack Pearkes d99e475ea2 Merge pull request #170 from alekstorm/aws-security-group-owner
Implement specification of AWS security groups in ingress rules as <owner>/<id>
2014-08-19 09:42:05 -07:00
Mitchell Hashimoto 839f9d84c8 Merge pull request #201 from hashicorp/f-resource
High-Level Framework for Writing Providers and Resources
2014-08-19 09:40:59 -07:00
Jack Pearkes 4cdb95a6b2 Merge pull request #166 from alekstorm/aws-elb-subnets-security-groups
Add 'security_groups' and 'subnets' args to 'aws_elb'
2014-08-19 09:40:30 -07:00
Mitchell Hashimoto e6dff7bf04 provider/heroku: update bin to use the new provider 2014-08-19 09:38:58 -07:00
Mitchell Hashimoto e2b8951a58 remove heroku2 since we're done here 2014-08-19 09:19:51 -07:00
Mitchell Hashimoto 43405c270b providers/heroku: heroku_drain 2014-08-19 09:18:45 -07:00
Mitchell Hashimoto 27ee254447 providers/heroku: heroku_domain resource 2014-08-19 09:14:14 -07:00
Mitchell Hashimoto 5fc308d934 providers/heroku: addon 2014-08-18 15:49:54 -07:00
Mitchell Hashimoto 4e1d8869fe providers/heroku: use new schema API 2014-08-18 15:18:51 -07:00
Mitchell Hashimoto 199b72d798 providers/heroku: clean up unused functions 2014-08-18 09:36:37 -07:00
Mitchell Hashimoto 513596cc37 providers/heroku: Heroku app is mostly converted 2014-08-18 09:32:40 -07:00
Mitchell Hashimoto b3f4a9eb10 providers/heroku2: going to convert this to new schema package 2014-08-17 20:58:41 -07:00
Mitchell Hashimoto ca5be43519 providers/aws: fix RDB test syntax error 2014-08-11 09:58:53 -07:00
Jason Padvorac 8d97c3656c Add listener.ssl_certificate_id support to AWS ELB 2014-08-10 17:16:53 -07:00
deoxxa 4405a8d974 add vpc dns attribute support 2014-08-09 22:43:00 +10:00
Alek Storm 7109b8c770 Implement specification of AWS security groups in ingress rules as <owner>/<id> 2014-08-08 11:51:18 -07:00
Alek Storm 5a84296c61 Add 'security_groups' and 'subnets' args to 'aws_elb' 2014-08-07 17:41:15 -07:00
Alex Gaynor 46154ca1d3 Fixed a ton of typos in docs and comments 2014-08-07 00:19:56 -07:00
Hector Castro f869a077a2 Fix output of aws_db_instance port via endpoint
When trying to output the `endpoint` attribute of an `aws_db_instance`,
the port was not being emitted properly. Converting the port number from
an integer to a string has resolved the issue.
2014-08-01 17:13:26 -04:00
Jack Pearkes 61122beec4 providers/digitalocean: fix comment 2014-08-01 11:05:32 -04:00
Jack Pearkes d9bfe1c2fe providers/digitalocean: only save private ip address if private 2014-08-01 10:12:29 -04:00
Jack Pearkes 2fe6f2e2b1 providers/digitalocean: restart droplet in failed resize 2014-08-01 10:10:52 -04:00
Jack Pearkes c6741cf1b5 providers/aws: add tests for instance availability zone
cc/ @dcosson here we go!
2014-07-31 20:35:31 -04:00
Jack Pearkes aa94e0c41a Merge pull request #129 from dcosson/aws_availability_zone
Allow specifying the AWS availability zone on creation
2014-07-31 15:28:34 -04:00
Jack Pearkes e07dc8891d providers/aws: db instance wait for destroy, allow destroy config 2014-07-31 15:22:14 -04:00
Danny Cosson e838624468 Allow specifying the AWS availability zone on creation 2014-07-31 13:52:03 -04:00
Jack Pearkes 887ee10f77 providers/cloudflare: add bins
close #126
2014-07-31 09:52:48 -04:00
Jack Pearkes 0ca0b8dd62 providers/aws: remove password from resource diff to not trigger changes
cc/ @mitchellh

This one caught me a bit, and I'm not sure if there's another AttrType
that could be useful here – perhaps a AttrTypeHidden or something? I
don't know...this feels sloppy to have in the diff func.
2014-07-31 09:39:19 -04:00
Jack Pearkes 9a2685cf13 providers/aws: db instances now depend on db security groups 2014-07-31 09:28:25 -04:00
Jack Pearkes bc79f15db3 providers/aws: require description in security groups. fixes #123 2014-07-30 17:15:51 -04:00
Jack Pearkes 60ed50b4b6 providers/aws: allow "modifying" as pending state for db instances
fixes #119
2014-07-30 11:58:11 -04:00
John Wards 7493ee31cb Stop passing engine into EngineVersion
Fixes #95
2014-07-30 16:44:02 +01:00
Jack Pearkes 7adc6162d8 providers/aws: add test for health check, save health check state
cc/ @vertis

I added an acceptance test here, as well as making it so we
saved the health check state on update_state.
2014-07-30 10:15:22 -04:00