Daniel Farina
67b03247ec
Make Routes in RouteTable optional
...
Otherwise it is impossible to get simple configurations with the
"default" routing table, which is only the "local" route.
The following contents of main.tf expose the bug, and boots an instance
fine after this patch is applied:
variable aws_access_key {}
variable aws_secret_key {}
variable aws_ubuntu_ami {}
provider "aws" {
access_key = "${var.aws_access_key}"
secret_key = "${var.aws_secret_key}"
region = "us-east-1"
}
resource "aws_vpc" "default" {
cidr_block = "10.0.0.0/20"
}
resource "aws_route_table" "private" {
vpc_id = "${aws_vpc.default.id}"
# Note the lack of "route" sub-key here.
}
resource "aws_subnet" "private" {
vpc_id = "${aws_vpc.default.id}"
cidr_block = "10.0.1.0/24"
}
resource "aws_route_table_association" "private" {
subnet_id = "${aws_subnet.private.id}"
route_table_id = "${aws_route_table.private.id}"
}
# Demonstrate an instance can be booted fine in this fashion.
resource "aws_instance" "sample" {
ami = "${var.aws_ubuntu_ami}"
instance_type = "t2.micro"
subnet_id = "${aws_subnet.private.id}"
}
terraform.tfvars for completeness:
aws_access_key = "..."
aws_secret_key = "..."
# A public Trusty AMI
aws_ubuntu_ami = "ami-9aaa1cf2"
2014-11-19 22:04:44 -08:00
Simon Turvey
31132f1ded
Add tag support to AWS subnets
2014-11-02 12:30:33 -08:00
Mitchell Hashimoto
b43cfa3bb0
providers/aws: launch configuration in helper/schema
2014-10-10 14:50:23 -07:00
Mitchell Hashimoto
caaa9d145a
providers/aws: convert autoscaling group to helper/schema
2014-10-10 14:34:40 -07:00
Mitchell Hashimoto
12ff354749
providers/aws: convert most of ELB to schema
2014-10-09 23:58:48 -07:00
Mitchell Hashimoto
699b2efa1c
providers/aws: convert aws_vpc to helper/schema
2014-10-08 16:43:13 -07:00
Mitchell Hashimoto
2fd2470c92
providers/aws: resource_aws_instance partially to schema.Resource
2014-08-21 18:38:43 -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
Mitchell Hashimoto
89041c0595
providers/aws: resource_aws_security_group using helper/schema
2014-08-20 10:40:18 -07:00
Mitchell Hashimoto
c4d261ac61
providers/aws: resource_aws_eip is in new framework
2014-08-19 16:56:23 -07:00
deoxxa
4405a8d974
add vpc dns attribute support
2014-08-09 22:43:00 +10:00
Jack Pearkes
f6fa012e82
providers/aws: remove security_group_update
2014-07-28 13:13:29 -04:00
Mitchell Hashimoto
b1fc87fe59
providers/aws/aws_eip: support update (reassociation)
...
/cc @pearkes - woot
2014-07-26 15:53:26 -07:00
Armon Dadgar
ca43c44a85
providers/aws: Re-order entries
2014-07-23 23:35:03 -04:00
Armon Dadgar
b6503a7810
provider/aws: Adding route53 records support
2014-07-22 23:08:41 -04:00
Jack Pearkes
4da83b9eca
providers/aws: db sec group
2014-07-22 22:23:09 -04:00
Armon Dadgar
8e7e65770d
provider/aws: Support for Route53 zones
2014-07-22 17:55:19 -04:00
Jack Pearkes
2f26ac97c2
providers/aws: add rds
2014-07-22 16:26:58 -04:00
Armon Dadgar
64f7a1dc89
provider/aws: Adding support for aws_s3_bucket
2014-07-21 14:34:50 -04:00
Mitchell Hashimoto
d956880e2f
providers/aws/aws_route_table: can set routes on instance_id
2014-07-17 09:21:55 -07:00
Jack Pearkes
a55ee34aba
providers/aws: autoscaling updates, fix create for new goamz api
2014-07-15 17:20:54 -04:00
Jack Pearkes
ff0741a12e
providers/aws: security group validations
2014-07-15 12:40:20 -04:00
Jack Pearkes
278dd49a4d
providers/aws: launch configuration validation
2014-07-15 12:36:29 -04:00
Jack Pearkes
86e935bfd5
providers/aws: autoscaling group config validation
2014-07-15 12:31:49 -04:00
Jack Pearkes
a87f2a7987
providers/aws: elb, eip config validations
2014-07-15 12:18:36 -04:00
Mitchell Hashimoto
2fa6ca1c4e
providers/aws/aws_instance: source_dest_check support
2014-07-14 14:16:59 -07:00
Mitchell Hashimoto
6a3fa2f4db
providers/aws: aws_route_table_association
2014-07-10 17:17:01 -07:00
Mitchell Hashimoto
9afebeb07e
providers/aws: route table tests
2014-07-10 15:52:56 -07:00
Mitchell Hashimoto
17b0280724
providers/aws: InternetGateway has to define the update function
2014-07-10 14:24:36 -07:00
Jack Pearkes
305994036d
providers/aws: add createlaunchocnfiguration
2014-07-10 14:15:58 -04:00
Jack Pearkes
62a311a341
providers/aws: add autoscalinggroup
2014-07-09 19:00:30 -04:00
Mitchell Hashimoto
d111a4c05d
providers/aws: fix syntax error
2014-07-09 09:51:52 -07:00
Mitchell Hashimoto
fdfed5000f
providers/aws: route table prepare for routes
2014-07-09 09:47:13 -07:00
Mitchell Hashimoto
2fd5b36550
providers/aws: validation of route table
2014-07-08 16:17:30 -07:00
Mitchell Hashimoto
c9bb814917
providers/aws: basic route table creation
2014-07-08 15:56:19 -07:00
Jack Pearkes
6368526ac3
providers/aws: security groups
2014-07-08 14:06:51 -04:00
Mitchell Hashimoto
42e999923a
providers/aws: aws_internet_gateway
2014-07-07 16:12:03 -07:00
Mitchell Hashimoto
a31c4e8788
providers/aws: aws_subnet
2014-07-07 14:46:18 -07:00
Jack Pearkes
4f10569037
providers/aws: add EIP provider
...
resource "aws_eip" "public_web" {
instance = "${aws_instance.web.instance_id}"
# Defaults to false
# vpc = "true"
}
2014-07-07 15:20:17 -04:00
Mitchell Hashimoto
e51bdc92fa
providers/aws: aws_vpc
2014-07-07 12:16:58 -07:00
Mitchell Hashimoto
20198cb7aa
providers/aws: ABC, Its as Easy as 123
...
https://www.youtube.com/watch?v=I8GvDLDYhNM&feature=kp
2014-07-07 11:25:54 -07:00
Jack Pearkes
d484ebadcd
providers/aws: update
2014-07-07 10:07:06 -04:00
Jack Pearkes
a2815e50eb
providers/aws: first pass at elb support
2014-07-07 10:07:06 -04:00
Jack Pearkes
4c9a4ad041
providers/aws: add elb layout, move instance into it's own namespace
2014-07-07 10:07:06 -04:00
Mitchell Hashimoto
5dbfed31b6
providers/aws: compile
2014-07-03 13:06:24 -07:00
Mitchell Hashimoto
92e1e09a69
main: fix the help output to show up
2014-06-26 10:24:51 -07:00
Mitchell Hashimoto
6e995feb5e
providers/aws: if no reservations, no instance
2014-06-26 09:58:38 -07:00
Mitchell Hashimoto
fa3ac806cc
providers/aws: use one resourcestate so we don't lose attributes
2014-06-25 23:21:46 -07:00
Mitchell Hashimoto
e8035a5c96
providers/aws: properly create an i nstance after destroy
2014-06-25 18:49:30 -07:00
Mitchell Hashimoto
bd0f23ce25
Move diff to helper/diff, helper/resource knows about it
2014-06-24 10:27:39 -07:00