Commit Graph

948 Commits

Author SHA1 Message Date
Martin Atkins ef161e1c1b Various interpolation functions for CIDR range manipulation.
These new functions allow Terraform to be used for network address space
planning tasks, and make it easier to produce reusable modules that
contain or depend on network infrastructure.

For example:
- cidrsubnet allows an aws_subnet to derive its
  CIDR prefix from its parent aws_vpc.
- cidrhost allows a fixed IP address for a resource to be assigned within
  an address range defined elsewhere.
- cidrnetmask provides the dotted-decimal form of a prefix length that is
  accepted by some systems such as routing tables and static network
  interface configuration files.

The bulk of the work here is done by an external library I authored called
go-cidr. It is MIT licensed and was implemented primarily for the purpose
of using it within Terraform. It has its own unit tests and so the unit
tests within this change focus on simple success cases and on the correct
handling of the various error cases.
2015-10-22 08:10:52 -07:00
Martin Atkins 932f0ddbeb Fix syntax errors in AWS CodeDeploy resource docs. 2015-10-21 09:45:48 -07:00
Martin Atkins c0f44a7301 Merge #2783: AWS Codeploy apps and deployment groups 2015-10-21 08:38:58 -07:00
Martin Atkins dd56b39e0c Codeploy deployment group app_name instead of application_name.
The corresponding resource is called aws_codeploy_app, so for consistency
we'll name the attribute app_name instead of application_name.
2015-10-21 08:34:46 -07:00
Matt Morrison cccc5d03e3 Add lower / upper interpolation functions 2015-10-21 08:16:24 -07:00
Christopher Tiwald 0952505358 aws: Add docs for aws_codedeploy_deployment_group 2015-10-20 18:05:40 -04:00
Christopher Tiwald fa3dfd1420 aws: Add documentation for "aws_codedeploy_app" resources. 2015-10-20 18:05:39 -04:00
Martin Atkins 484d6f8765 Merge pull request #3487 from nathan7/etcd
Etcd remote state backend
2015-10-19 18:42:29 -07:00
David Adams 3021069207 Update init and remote config command docs
* Update init docs to be correct, and provide an example.
* Update remote config docs to provide more details about the Consul
  backend and to provide another example.
2015-10-18 18:23:13 -05:00
Nathan Zadoks 362a2035c0 Document the etcd remote state backend 2015-10-18 23:24:56 +02:00
Dave Cunningham 5930771615 Update compute_instance.html.markdown
Make it clear that you can't have two networks
2015-10-18 13:21:41 -04:00
Radek Simko 4017a611c3 docs: Glacier Vault - add title + make note more brief 2015-10-15 20:59:58 +02:00
Radek Simko 26bc27594b docs: Fix EFS documentation 2015-10-15 20:57:42 +02:00
Paul Hinze 9d41e6f3d1 vsphere docs: add warning about possible changes
Since we merged this so that the community could collaborate on
improvements, I thought it would be prudent to inform potential users of
the status of the provider so they know what to expect.
2015-10-15 09:35:06 -05:00
Paul Hinze 60e9bec052 Merge pull request #3483 from hashicorp/d-vsphere
vsphere docs; first draft
2015-10-15 09:21:32 -05:00
Paul Hinze 05d6c5b509 vsphere docs; first draft
I'm not familiar with vSphere so I had to skip over details in some
places, but this at least gets the basic structure in for the docs.
2015-10-15 09:18:05 -05:00
Martin Atkins 3708e752af Merge pull request #3138 from mastor/master
Support tags for aws_db_subnet_group
2015-10-14 19:36:45 -07:00
Martin Atkins 1300f165b1 Merge pull request #3311 from caarlos0/allow-non-persistent-spot-requests
Allow non-persistent spot requests
2015-10-14 19:34:31 -07:00
Rob Zienert a1939e70f7 Adding ignore_changes lifecycle meta property 2015-10-14 16:34:27 -05:00
Paul Hinze 5f6c03f515 Merge pull request #3191 from hashicorp/f-asg-wait-config
provider/aws: configurable capacity waiting duration
2015-10-14 10:34:55 -05:00
Paul Hinze c51080d16b Merge pull request #3210 from hashicorp/d-module-source-private-github-repos
doc: module sources from private github repos
2015-10-14 10:21:15 -05:00
Paul Hinze 46952b9c13 Merge pull request #3469 from squaresurf/doc-update
A script must have executable permissions.
2015-10-14 10:20:45 -05:00
Paul Hinze e62d2c7aec Merge pull request #3489 from gtheys/fix_doc_aws_elb_stickyness
fix illegal char in the policy name
2015-10-14 10:19:47 -05:00
Radek Simko 88e56479a5 docs: Make IAM policy doc canonical 2015-10-13 22:52:11 +02:00
Radek Simko 43c7711ac8 docs/aws: Fix whitespacing in glacier_vault 2015-10-13 22:46:55 +02:00
stack72 2a7b8be9f3 Gofmt of the aws glacier vault resource 2015-10-13 14:58:29 +01:00
stack72 95d35ad77f Adding the the docs for the Glacier Vault resource
Updating the glacier docs to include a link to the AWS developer guide
2015-10-13 14:58:29 +01:00
Geert Theys aaac9435ec fix illegal char in the policy name
aws_lb_cookie_stickiness_policy.elbland: Error creating LBCookieStickinessPolicy: ValidationError: Policy name cannot contain characters that are not letters, or digits or the dash.
2015-10-13 12:57:22 +02:00
Paul Hinze a811a72f11 provider/aws: fix force_delete on ASGs
The `ForceDelete` parameter was getting sent to the upstream API call,
but only after we had already finished draining instances from
Terraform, so it was a moot point by then.

This fixes that by skipping the drain when force_delete is true, and it
also simplifies the field config a bit:

 * set a default of false to simplify the logic
 * remove `ForceNew` since there's no need to replace the resource to
   flip this value
 * pull a detail comment from code into the docs
2015-10-12 17:10:01 -05:00
Paul Hinze 61721387b3 Merge pull request #3457 from TimeIncOSS/f-aws-ec2-placement-groups
provider/aws: Add support for EC2 Placement Group
2015-10-12 14:24:12 -05:00
Clint 8152f5822e Merge pull request #3265 from stack72/aws-s3-bucket-update
provider/aws: Adding some other simple S3 Bucket Object (Optional) Inputs
2015-10-12 14:23:29 -05:00
Martin Atkins 51630aea26 Merge #3397: Tags for AWS Kinesis Streams 2015-10-12 09:38:09 -07:00
Garrett Heel 36f78cc1dc provider/aws: Allow tags for kinesis streams 2015-10-12 09:00:56 -07:00
stack72 3809cb5b88 Fixing the merge conflicts on the s3 bucket object resource after another PR had been merged 2015-10-12 16:51:27 +01:00
Martin Atkins 091d3fe206 Merge #3351: aws_autoscaling_lifecycle_hook resource 2015-10-11 22:52:00 -07:00
stack72 7d600cadd2 Adding the docs for the autoscaling_lifecycle_hook 2015-10-11 20:42:14 -03:00
Martin Atkins 200a42ab46 Documentation of TF_LOG taking log levels.
As of 0090c063e it is now possible to filter the logs by level by setting
TF_LOG to one of the known log level names.
2015-10-11 10:56:45 -07:00
Anthony Stanton b62833e7b8 Add documentation for compact() 2015-10-11 16:47:48 +02:00
Martin Atkins b7247026e9 Merge #3228: aws_directory_service_directory resource 2015-10-10 18:09:17 -07:00
Martin Atkins fd0174b031 Merge pull request #3415 from apparentlymart/heredoc-docs
Document that heredoc syntax is supported
2015-10-10 17:32:27 -07:00
Martin Atkins a97036f3a3 Merge pull request #3383 from apparentlymart/docker-container-command-docs
Example for the command arg on docker_container.
2015-10-10 17:30:33 -07:00
Martin Atkins 5a91a765e9 Merge pull request #3367 from josephholsten/atlas-artifact
Update docs to show correct launching of atlas artifact in AWS.
2015-10-10 17:19:09 -07:00
Trevor Pounds a4fb080abe Add missing `to_port` argument to website docs. 2015-10-10 14:54:59 -07:00
Martin Atkins a888cd6f62 Merge pull request #3200 from zpatrick/master
Optional "content" argument for "s3_bucket_object"
2015-10-10 11:26:38 -07:00
Sam Handler 444d63240b Update page title for project.html.markdown 2015-10-09 17:43:10 -04:00
Daniel Paul Searles fd2d9371e9 A script must have executable permissions.
Why:

* The current example for passing arguments to a local script does not
  include making the uploaded file executable.

This change addresses the need by:

* Add a step to make the uploaded script executable to the example
  showing how to pass arguments to an uploaded script.
2015-10-09 11:27:38 -07:00
Julian C. Dunn 3143d1703d Graphviz Workspace appears to be dead, so remove it from the docs. 2015-10-09 01:19:14 -04:00
Radek Simko f43ea74f4d provider/aws: Add docs for aws_directory_service_directory 2015-10-08 17:06:39 -07:00
Rafael Fonseca acb8d044a3 Add missing 'e' 2015-10-09 09:34:17 +13:00
Radek Simko 78f76b993c provider/aws: Add docs for aws_placement_group 2015-10-08 13:03:25 -07:00