FEATURES:
IMPROVEMENTS:
- provider/aws: Support 'publish' attribute in lambda_function [GH-8653]
- provider/google: Resources depending on the
network
attribute can now reference the network byself_link
orname
[GH-8639] - provider/postgresql: The standard environment variables PGHOST, PGUSER, PGPASSWORD and PGSSLMODE are now supported for provider configuration [GH-8666]
BUG FIXES:
- provider/aws: Bump
aws_elasticsearch_domain
timeout values [GH-672] - provider/aws:
aws_nat_gateways
will now recreate onfailed
state [GH-8689] - provider/scaleway: fix security_group_rule identification [GH-8661]
BACKWARDS INCOMPATIBILITIES / NOTES:
- Terraform now validates the uniqueness of variable and output names in your configurations. In prior versions certain ways of duplicating variable names would work. This is now a configuration error (and should've always been). If you get an error running Terraform you may need to remove the duplicates. Done right, this should not affect the behavior of Terraform.
- The internal structure of
.terraform/modules
changed slightly. For configurations with modules, you'll need to runterraform get
again.
FEATURES:
- New Provider:
rabbitmq
(#7694) - New Data Source:
aws_cloudformation_stack
(#8640) - New Resource:
aws_cloudwatch_log_stream
(#8626) - New Resource:
aws_default_route_table
(#8323) - New Resource:
aws_spot_datafeed_subscription
(#8640) - New Resource:
aws_s3_bucket_policy
(#8615) - New Resource:
aws_sns_topic_policy
(#8654) - New Resource:
aws_sqs_queue_policy
(#8657) - New Resource:
aws_ssm_association
(#8376) - New Resource:
cloudstack_affinity_group
(#8360) - New Resource:
librato_alert
(#8170) - New Resource:
librato_service
(#8170) - New Remote State Backend:
local
(#8647) - Data source blocks can now have a count associated with them (#8635)
- The count of a resource can now be referenced for interpolations:
self.count
andtype.name.count
work (#8581) - Provisioners now support connection using IPv6 in addition to IPv4 (#6616)
IMPROVEMENTS:
- core: Add wildcard (match all) support to
ignore_changes
(#8599) - core: HTTP module sources can now use netrc files for auth
- core: Show last resource state in a timeout error message (#8510)
- helper/schema: Add diff suppression callback (#8585)
- provider/aws: API Gateway Custom Authorizer (#8535)
- provider/aws: Add MemoryReservation To
aws_ecs_container_definition
data source (#8437) - provider/aws: Add ability Enable/Disable For ELB Access logs (#8438)
- provider/aws: Add support for assuming a role prior to performing API operations (#8638)
- provider/aws: Export
arn
ofaws_autoscaling_group
(#8503) - provider/aws: More robust handling of Lambda function archives hosted on S3 (#6860)
- provider/aws: Spurious diffs of
aws_s3_bucket
policy attributes due to JSON field ordering are reduced (#8615) - provider/aws:
name_regex
attribute for local post-filtering ofaws_ami
data source results (#8403) - provider/aws: Support for lifecycle hooks at ASG creation (#5620)
- provider/consul: Make provider settings truly optional (#8551)
- provider/statuscake: Add support for contact-group id in statuscake test (#8417)
BUG FIXES:
- core: Changing a module source from file to VCS no longer errors (#8398)
- core: Configuration is now validated prior to input, fixing an obscure parse error when attempting to interpolate a count (#8591)
- core: JSON configuration with resources with a single key parse properly (#8485)
- core: States with duplicate modules are detected and an error is shown (#8463)
- core: Validate uniqueness of variables/outputs in a module (#8482)
- core:
-var
flag inputs starting with/
work - core:
-var
flag inputs starting with a number work and was fixed in such a way that this should overall be a lot more resilient to inputs (#8044) - provider/aws: Add AWS error message to retry APIGateway account update (#8533)
- provider/aws: Do not set empty string to state for
aws_vpn_gateway
availability zone (#8645) - provider/aws: Fix. Adjust create and destroy timeout in aws_vpn_gateway_attachment. (#8636)
- provider/aws: Handle missing EFS mount target in
aws_efs_mount_target
(#8529) - provider/aws: If an
aws_security_group
was used in Lambda function it may have prevented you from destroying such SG due to dangling ENIs created by Lambda service. These ENIs are now automatically cleaned up prior to SG deletion (#8033) - provider/aws: Increase
aws_route_table
timeouts from 1 min to 2 mins (#8465) - provider/aws: Increase aws_rds_cluster timeout to 40 minutes (#8623)
- provider/aws: Refresh
aws_route
from state ifaws_route_table
not found (#8443) - provider/aws: Remove
aws_elasticsearch_domain
from state if it doesn't exist (#8643) - provider/aws: Remove unsafe ptr dereferencing from ECS/ECR (#8514)
- provider/aws: Set
apply_method
to state inaws_db_parameter_group
(#8603) - provider/aws: Stop
aws_instance
source_dest_check
triggering an API call on each terraform run (#8450) - provider/aws: Wait for
aws_route_53_record
to be in-sync after a delete (#8646) - provider/aws:
aws_volume_attachment
detachment errors are caught (#8479) - provider/aws: adds resource retry to
aws_spot_instance_request
(#8516) - provider/aws: Add validation of Health Check target to aws_elb. (#8578)
- provider/aws: Skip detaching when aws_internet_gateway not found (#8454)
- provider/aws: Handle all kinds of CloudFormation stack failures (#5606)
- provider/azurerm: Reordering the checks after an Azure API Get (#8607)
- provider/chef: Fix "invalid header" errors that could occur (#8382)
- provider/github: Remove unsafe ptr dereferencing (#8512)
- provider/librato: Refresh space from state when not found (#8596)
- provider/mysql: Fix breakage in parsing MySQL version string (#8571)
- provider/template:
template_file
vars can be floating point (#8590) - provider/triton: Fix bug where the ID of a
triton_key
was used prior to being set (#8563)
BACKWARDS INCOMPATIBILITIES / NOTES:
- provider/openstack: changes were made to how volumes attached to instances are detected. If you attached a volume to an instance out of band to Terraform, it will be detached upon the next apply. You can resolve this by adding a
volume
entry for the attached volume. - provider/aws:
aws_spot_fleet_request
has changed theassociate_public_ip_address
default fromtrue
tofalse
FEATURES:
- New Resource:
aws_api_gateway_base_path_mapping
(#8353) - New Resource:
aws_api_gateway_domain_name
(#8353) - New Resource:
aws_ssm_document
(#8460)
IMPROVEMENTS:
- core: Names generated with a unique prefix are now sortable based on age (#8249)
- provider/aws: Add Primary Endpoint Address attribute for
aws_elasticache_replication_group
(#8385) - provider/aws: Add support for
network_mode
toaws_ecs_task_definition
(#8391) - provider/aws: Add support for LB target group to ECS service (#8190)
- provider/aws: Support Tags for
aws_alb
andaws_alb_target_group
resources (#8422) - provider/aws: Support
snapshot_name
for ElastiCache Cluster and Replication Groups (#8419) - provider/aws: Add support to
aws_redshift_cluster
for restoring from snapshot (#8414) - provider/aws: Add validation for master_password in
aws_redshift_cluster
(#8434) - provider/openstack: Add
allowed_address_pairs
toopenstack_networking_port_v2
(#8257)
BUG FIXES:
- core: fix crash case when malformed JSON given (#8295)
- core: when asking for input, spaces are allowed (#8394)
- core: module sources with URL encodings in the local file path won't error (#8418)
- command/apply: prefix destroying resources with module path (#8396)
- command/import: can import into specific indexes (#8335)
- command/push: -upload-modules=false works (#8456)
- command/state mv: nested modules can be moved (#8304)
- command/state mv: resources with a count > 1 can be moved (#8304)
- provider/aws: Refresh
aws_lambda_event_source_mapping
from state when NotFound (#8378) - provider/aws:
aws_elasticache_replication_group_id
validation change (#8381) - provider/aws: Fix possible crash if using duplicate Route53 records (#8399)
- provider/aws: Refresh
aws_autoscaling_policy
from state on 404 (#8430) - provider/aws: Fix crash with VPC Peering connection accept/requests (#8432)
- provider/aws: AWS SpotFleet Requests now works with Subnets and AZs (#8320)
- provider/aws: Refresh
aws_cloudwatch_event_target
from state onResourceNotFoundException
(#8442) - provider/aws: Validate
aws_iam_policy_attachment
Name parameter to stop being empty (#8441) - provider/aws: Fix segmentation fault in
aws_api_gateway_base_path_mapping
resource (#8466) - provider/google: fix crash regression from Terraform 0.7.1 on
google_compute_firewall
resource (#8390) - provider/openstack: Volume Attachment and Detachment Fixes (#8172)
FEATURES:
- New Command:
terraform state rm
(#8200) - New Provider:
archive
(#7322) - New Resource:
aws_alb
(#8254) - New Resource:
aws_alb_listener
(#8269) - New Resource:
aws_alb_target_group
(#8254) - New Resource:
aws_alb_target_group_attachment
(#8254) - New Resource:
aws_alb_target_group_rule
(#8321) - New Resource:
aws_vpn_gateway_attachment
(#7870) - New Resource:
aws_load_balancer_policy
(#7458) - New Resource:
aws_load_balancer_backend_server_policy
(#7458) - New Resource:
aws_load_balancer_listener_policy
(#7458) - New Resource:
aws_lb_ssl_negotiation_policy
(#8084) - New Resource:
aws_elasticache_replication_groups
(#8275) - New Resource:
azurerm_virtual_network_peering
(#8168) - New Resource:
azurerm_servicebus_namespace
(#8195) - New Resource:
google_compute_image
(#7960) - New Resource:
packet_volume
(#8142) - New Resource:
consul_prepared_query
(#7474) - New Data Source:
aws_ip_ranges
(#7984) - New Data Source:
fastly_ip_ranges
(#7984) - New Data Source:
aws_caller_identity
(#8206) - New Data Source:
aws_elb_service_account
(#8221) - New Data Source:
aws_redshift_service_account
(#8224)
IMPROVEMENTS
- provider/archive support folders in output_path (#8278)
- provider/aws: Introduce
aws_elasticsearch_domain
elasticsearch_version
field (to specify ES version) (#7860) - provider/aws: Add support for TargetGroups (
aws_alb_target_groups
) toaws_autoscaling_group
[8327] - provider/aws: CloudWatch Metrics are now supported for
aws_route53_health_check
resources (#8319) - provider/aws: Query all pages of group membership (#6726)
- provider/aws: Query all pages of IAM Policy attachments (#7779)
- provider/aws: Change the way ARNs are built (#7151)
- provider/aws: Add support for Elasticsearch destination to firehose delivery streams (#7839)
- provider/aws: Retry AttachInternetGateway and increase timeout on
aws_internet_gateway
(#7891) - provider/aws: Add support for Enhanced monitoring to
aws_rds_cluster_instance
(#8038) - provider/aws: Add ability to set Requests Payer in
aws_s3_bucket
(#8065) - provider/aws: Add ability to set canned ACL in
aws_s3_bucket_object
(#8091) - provider/aws: Allow skipping credentials validation, requesting Account ID and/or metadata API check (#7874)
- provider/aws: API gateway request/response parameters can now be specified as map, original
*_in_json
parameters deprecated (#7794) - provider/aws: Add support for
promotion_tier
toaws_rds_cluster_instance
(#8087) - provider/aws: Allow specifying custom S3 endpoint and enforcing S3 path style URLs via new provider options (#7871)
- provider/aws: Add ability to set Storage Class in
aws_s3_bucket_object
(#8174) - provider/aws: Treat
aws_lambda_function
w/ emptysubnet_ids
&security_groups_ids
invpc_config
as VPC-disabled function (#6191) - provider/aws: Allow
source_ids
inaws_db_event_subscription
to be Updatable (#7892) - provider/aws: Make
aws_efs_mount_target
creation fail for 2+ targets per AZ (#8205) - provider/aws: Add
force_destroy
option toaws_route53_zone
(#8239) - provider/aws: Support import of
aws_s3_bucket
(#8262) - provider/aws: Increase timeout for retrying creation of IAM role (#7733)
- provider/aws: Add ability to set peering options in aws_vpc_peering_connection. (#8310)
- provider/azure: add custom_data argument for azure_instance resource (#8158)
- provider/azurerm: Adds support for uploading blobs to azure storage from local source (#7994)
- provider/azurerm: Storage blob contents can be copied from an existing blob (#8126)
- provider/datadog: Allow
tags
to be configured for monitor resources. (#8284) - provider/google: allows atomic Cloud DNS record changes (#6575)
- provider/google: Move URLMap hosts to TypeSet from TypeList (#7472)
- provider/google: Support static private IP addresses in
resource_compute_instance
(#6310) - provider/google: Add support for using a GCP Image Family (#8083)
- provider/openstack: Support updating the External Gateway assigned to a Neutron router (#8070)
- provider/openstack: Support for
value_specs
param onopenstack_networking_network_v2
(#8155) - provider/openstack: Add
value_specs
param onopenstack_networking_subnet_v2
(#8181) - provider/vsphere: Improved SCSI controller handling in
vsphere_virtual_machine
(#7908) - provider/vsphere: Adding disk type of
Thick Lazy
tovsphere_virtual_disk
andvsphere_virtual_machine
(#7916) - provider/vsphere: Standardizing datastore references to use builtin Path func (#8075)
- provider/consul: add tls config support to consul provider (#7015)
- remote/consul: Support setting datacenter when using consul remote state (#8102)
- provider/google: Support import of
google_compute_instance_template
(#8147),google_compute_firewall
(#8236),google_compute_target_pool
(#8133),google_compute_fowarding_rule
(#8122),google_compute_http_health_check
(#8121),google_compute_autoscaler
(#8115)
BUG FIXES:
- core: Fix issue preventing
taint
from working with resources that had no other attributes in their diff (#8167) - core: CLI will only run exact match commands (#7983)
- core: Fix panic when resources ends up null in state file (#8120)
- core: Fix panic when validating a count with a unprefixed variable (#8243)
- core: Divide by zero in interpolations no longer panics (#7701)
- core: Fix panic on some invalid interpolation syntax (#5672)
- provider/aws: guard against missing image_digest in
aws_ecs_task_definition
(#7966) - provider/aws:
aws_cloudformation_stack
now respectstimeout_in_minutes
field when waiting for CF API to finish an update operation (#7997) - provider/aws: Prevent errors when
aws_s3_bucket
acceleration_status
is not available in a given region (#7999) - provider/aws: Add state filter to
aws_availability_zone
s data source (#7965) - provider/aws: Handle lack of snapshot ID for a volume in
ami_copy
(#7995) - provider/aws: Retry association of IAM Role & instance profile (#7938)
- provider/aws: Fix
aws_s3_bucket
resourceredirect_all_requests_to
action (#7883) - provider/aws: Fix issue updating ElasticBeanstalk Environment Settings (#7777)
- provider/aws:
aws_rds_cluster
creation timeout bumped to 40 minutes (#8052) - provider/aws: Update ElasticTranscoder to allow empty notifications, removing notifications, etc (#8207)
- provider/aws: Fix line ending errors/diffs with IAM Server Certs (#8074)
- provider/aws: Fixing IAM data source policy generation to prevent spurious diffs (#6956)
- provider/aws: Correct how CORS rules are handled in
aws_s3_bucket
(#8096) - provider/aws: allow numeric characters in RedshiftClusterDbName (#8178)
- provider/aws:
aws_security_group
now creates tags as early as possible in the process (#7849) - provider/aws: Defensively code around
db_security_group
ingress rules (#7893) - provider/aws:
aws_spot_fleet_request
throws panic on missing subnet_id or availability_zone (#8217) - provider/aws: Terraform fails during Redshift delete if FinalSnapshot is being taken. (#8270)
- provider/azurerm:
azurerm_storage_account
will interrupt for Ctrl-C (#8215) - provider/azurerm: Public IP - Setting idle timeout value caused panic. #8283
- provider/digitalocean: trim whitespace from ssh key (#8173)
- provider/digitalocean: Enforce Lowercase on IPV6 Addresses (#7652)
- provider/google: Use resource specific project when making queries/changes (#7029)
- provider/google: Fix read for the backend service resource (#7476)
- provider/mysql:
mysql_user
works with MySQL versions before 5.7.6 (#8251) - provider/openstack: Fix typo in OpenStack LBaaSv2 pool resource (#8179)
- provider/vSphere: Fix for IPv6 only environment creation (#7643)
- provider/google: Correct update process for authorized networks in
google_sql_database_instance
(#8290)
BACKWARDS INCOMPATIBILITIES / NOTES:
- Terraform Core
- Terraform's built-in plugins are now distributed as part of the main Terraform binary, and use the go-plugin framework. Overrides are still available using separate binaries, but will need recompiling against Terraform 0.7.
- The
terraform plan
command no longer persists state. This makes the command much safer to run, since it is now side-effect free. Therefresh
andapply
commands still persist state to local and remote storage. Any automation that assumes thatterraform plan
persists state will need to be reworked to explicitly callterraform refresh
to get the equivalent side-effect. (Theterraform plan
command no longer has the-state-out
or-backup
flags due to this change.) - The
concat()
interpolation function can no longer be used to join strings. - Quotation marks may no longer be escaped in HIL expressions (#7201)
- Lists materialized using splat syntax, for example
aws_instance.foo.*.id
are now ordered by the count index rather than lexographically sorted. If this produces a large number of undesirable differences, you can use the newsort()
interpolation function to produce the previous behaviour. - You now access the values of maps using the syntax
var.map["key"]
or thelookup
function instead ofvar.map.key
. - Outputs on
terraform_remote_state
resources are now top level attributes rather than inside theoutput
map. In order to access outputs, use the syntax:terraform_remote_state.name.outputname
. Currently outputs cannot be namedconfig
orbackend
. - AWS Provider
aws_elb
now defaultscross_zone_load_balancing
totrue
aws_instance
: EC2 Classic users may continue to usesecurity_groups
to reference Security Groups by theirname
. Users who are managing Instances inside VPCs will need to usevpc_security_group_ids
instead, and reference the security groups by theirid
. Ref hashicorp#6416 (comment)aws_kinesis_firehose_delivery_stream
: AWS Kinesis Firehose has been refactored to support Redshift as a destination in addition to S3. As a result, the configuration has changed and users will need to update their configuration to match the news3_configuration
block. Checkout the documentaiton on AWS Kinesis Firehose for more information (#7375)aws_route53_record
:latency_routing_policy
,geolocation_routing_policy
, andfailover_routing_policy
block options have been added. With these additions we’ve renamed theweight
attribute toweighted_routing_policy
, and it has changed from a string to a block to match the others. Please see the updated documentation on usingweighted_routing_policy
: https://www.terraform.io/docs/providers/aws/r/route53_record.html . (#6954)aws_db_instance
now defaultspublicly_accessible
to false- Microsoft Azure Provider
- In documentation, the "Azure (Resource Manager)" provider has been renamed to the "Microsoft Azure" provider.
azurerm_dns_cname_record
now accepts a single record rather than a list of recordsazurerm_virtual_machine
computer_name now Required- Openstack Provider
openstack_networking_subnet_v2
now defaults to turning DHCP on.openstack_fw_policy_v1
now correctly applies rules in the order they are specified. Upon the next apply, current rules might be re-ordered.- The
member
attribute ofopenstack_lb_pool_v1
has been deprecated. Please ue the newopenstack_lb_member_v1
resource. - Docker Provider
keep_updated
parameter removed fromdocker_image
- This parameter never did what it was supposed to do. See relevant docs, specificallypull_trigger
& newdocker_registry_image
data source to understand how to keep yourdocker_image
updated.- Atlas Provider
atlas_artifact
resource has be deprecated. Please use the newatlas_artifact
Data Source.- CloudStack Provider
- All deprecated parameters are removed from all
CloudStack
resources
FEATURES:
- Data sources are a new kind of primitive in Terraform. Attributes for data sources are refreshed and available during the planning stage. (#6598)
- Lists and maps can now be used as first class types for variables and may also be passed between modules. (#6322)
- State management CLI commands provide a variety of state manipulation functions for advanced use cases. This should be used where possible instead of manually modifying state files. (#5811)
- State Import allows a way to import existing resources into Terraform state for many types of resource. Initial coverage of AWS is quite high, and it is straightforward to add support for new resources.
- New Command:
terraform state
to provide access to a variety of state manipulation functions (#5811) - New Option:
terraform output
now supports the-json
flag to print a machine-readable representation of outputs (#7608) - New Data Source:
aws_ami
(#6911) - New Data Source:
aws_availability_zones
(#6805) - New Data Source:
aws_iam_policy_document
(#6881) - New Data Source:
aws_s3_bucket_object
(#6946) - New Data Source:
aws_ecs_container_definition
(#7230) - New Data Source:
atlas_artifact
(#7419) - New Data Source:
docker_registry_image
(#7000) - New Data Source:
consul_keys
(#7678) - New Interpolation Function:
sort
(#7128) - New Interpolation Function:
distinct
(#7174) - New Interpolation Function:
list
(#7528) - New Interpolation Function:
map
(#7832) - New Provider:
grafana
(#6206) - New Provider:
logentries
(#7067) - New Provider:
scaleway
(#7331) - New Provider:
random
- allows generation of random values without constantly generating diffs (#6672) - New Remote State Provider: -
gcs
- Google Cloud Storage (#6814) - New Remote State Provider: -
azure
- Microsoft Azure Storage (#7064) - New Resource:
aws_elb_attachment
(#6879) - New Resource:
aws_elastictranscoder_preset
(#6965) - New Resource:
aws_elastictranscoder_pipeline
(#6965) - New Resource:
aws_iam_group_policy_attachment
(#6858) - New Resource:
aws_iam_role_policy_attachment
(#6858) - New Resource:
aws_iam_user_policy_attachment
(#6858) - New Resource:
aws_rds_cluster_parameter_group
(#5269) - New Resource:
aws_spot_fleet_request
(#7243) - New Resource:
aws_ses_active_receipt_rule_set
(#5387) - New Resource:
aws_ses_receipt_filter
(#5387) - New Resource:
aws_ses_receipt_rule
(#5387) - New Resource:
aws_ses_receipt_rule_set
(#5387) - New Resource:
aws_simpledb_domain
(#7600) - New Resource:
aws_opsworks_user_profile
(#6304) - New Resource:
aws_opsworks_permission
(#6304) - New Resource:
aws_ami_launch_permission
(#7365) - New Resource:
aws_appautoscaling_policy
(#7663) - New Resource:
aws_appautoscaling_target
(#7663) - New Resource:
openstack_blockstorage_volume_v2
(#6693) - New Resource:
openstack_lb_loadbalancer_v2
(#7012) - New Resource:
openstack_lb_listener_v2
(#7012) - New Resource:
openstack_lb_pool_v2
(#7012) - New Resource:
openstack_lb_member_v2
(#7012) - New Resource:
openstack_lb_monitor_v2
(#7012) - New Resource:
vsphere_virtual_disk
(#6273) - New Resource:
github_repository_collaborator
(#6861) - New Resource:
datadog_timeboard
(#6900) - New Resource:
digitalocean_tag
(#7500) - New Resource:
digitalocean_volume
(#7560) - New Resource:
consul_agent_service
(#7508) - New Resource:
consul_catalog_entry
(#7508) - New Resource:
consul_node
(#7508) - New Resource:
consul_service
(#7508) - New Resource:
mysql_grant
(#7656) - New Resource:
mysql_user
(#7656) - New Resource:
azurerm_storage_table
(#7327) - New Resource:
azurerm_virtual_machine_scale_set
(#6711) - New Resource:
azurerm_traffic_manager_endpoint
(#7826) - New Resource:
azurerm_traffic_manager_profile
(#7826) - core: Tainted resources now show up in the plan and respect dependency ordering (#6600)
- core: The
lookup
interpolation function can now have a default fall-back value specified (#6884) - core: The
terraform plan
command no longer persists state. (#6811)
IMPROVEMENTS:
- core: The
jsonencode
interpolation function now supports encoding lists and maps (#6749) - core: Add the ability for resource definitions to mark attributes as "sensitive" which will omit them from UI output. (#6923)
- core: Support
.
in map keys (#7654) - core: Enhance interpolation functions to account for first class maps and lists (#7832) (#7834)
- command: Remove second DefaultDataDirectory const (#7666)
- provider/aws: Add
dns_name
toaws_efs_mount_target
(#7428) - provider/aws: Add
force_destroy
toaws_iam_user
for force-deleting access keys assigned to the user (#7766) - provider/aws: Add
option_settings
toaws_db_option_group
(#6560) - provider/aws: Add more explicit support for Skipping Final Snapshot in RDS Cluster (#6795)
- provider/aws: Add support for S3 Bucket Acceleration (#6628)
- provider/aws: Add support for
kms_key_id
toaws_db_instance
(#6651) - provider/aws: Specifying more than one health check on an
aws_elb
fails with an error prior to making an API request (#7489) - provider/aws: Add support to
aws_redshift_cluster
foriam_roles
(#6647) - provider/aws: SQS use raw policy string if compact fails (#6724)
- provider/aws: Set default description to "Managed by Terraform" (#6104)
- provider/aws: Support for Redshift Cluster encryption using a KMS key (#6712)
- provider/aws: Support tags for AWS redshift cluster (#5356)
- provider/aws: Add
iam_arn
to aws_cloudfront_origin_access_identity (#6955) - provider/aws: Add
cross_zone_load_balancing
onaws_elb
default to true (#6897) - provider/aws: Add support for
character_set_name
toaws_db_instance
(#4861) - provider/aws: Add support for DB parameter group with RDS Cluster Instances (Aurora) (#6865)
- provider/aws: Add
name_prefix
toaws_iam_instance_profile
andaws_iam_role
(#6939) - provider/aws: Allow authentication & credentials validation for federated IAM Roles and EC2 instance profiles (#6536)
- provider/aws: Rename parameter_group_name to db_cluster_parameter_group_name (#7083)
- provider/aws: Retry RouteTable Route/Assocation creation (#7156)
- provider/aws:
delegation_set_id
conflicts w/vpc_id
inaws_route53_zone
as delegation sets can only be used for public zones (#7213) - provider/aws: Support Elastic Beanstalk scheduledaction (#7376)
- provider/aws: Add support for NewInstancesProtectedFromScaleIn to
aws_autoscaling_group
(#6490) - provider/aws: Added support for
snapshot_identifier
parameter in aws_rds_cluster (#7158) - provider/aws: Add inplace edit/update DB Security Group Rule Ingress (#7245)
- provider/aws: Added support for redshift destination to firehose delivery streams (#7375)
- provider/aws: Allow
aws_redshift_security_group
ingress rules to change (#5939) - provider/aws: Add support for
encryption
andkms_key_id
toaws_ami
(#7181) - provider/aws: AWS prefix lists to enable security group egress to a VPC Endpoint (#7511)
- provider/aws: Retry creation of IAM role depending on new IAM user (#7324)
- provider/aws: Allow
port
onaws_db_instance
to be updated (#7441) - provider/aws: Allow VPC Classic Linking in Autoscaling Launch Configs (#7470)
- provider/aws: Support
task_role_arn
on `aws_ecs_task_definition (#7653) - provider/aws: Support Tags on
aws_rds_cluster
(#7695) - provider/aws: Support kms_key_id for
aws_rds_cluster
(#7662) - provider/aws: Allow setting a
poll_interval
onaws_elastic_beanstalk_environment
(#7523) - provider/aws: Add support for Kinesis streams shard-level metrics (#7684)
- provider/aws: Support create / update greater than twenty db parameters in
aws_db_parameter_group
(#7364) - provider/aws: expose network interface id in
aws_instance
(#6751) - provider/aws: Adding passthrough behavior for API Gateway integration (#7801)
- provider/aws: Enable Redshift Cluster Logging (#7813)
- provider/aws: Add ability to set Performance Mode in
aws_efs_file_system
(#7791) - provider/azurerm: Add support for EnableIPForwarding to
azurerm_network_interface
(#6807) - provider/azurerm: Add support for exporting the
azurerm_storage_account
access keys (#6742) - provider/azurerm: The Azure SDK now exposes better error messages (#6976)
- provider/azurerm:
azurerm_dns_zone
now returnsname_servers
(#7434) - provider/azurerm: dump entire Request/Response in autorest Decorator (#7719)
- provider/azurerm: add option to delete VMs Data disks on termination (#7793)
- provider/clc: Add support for hyperscale and bareMetal server types and package installation
- provider/clc: Fix optional server password (#6414)
- provider/cloudstack: Add support for affinity groups to
cloudstack_instance
(#6898) - provider/cloudstack: Enable swapping of ACLs without having to rebuild the network tier (#6741)
- provider/cloudstack: Improve ACL swapping (#7315)
- provider/cloudstack: Add project support to
cloudstack_network_acl
andcloudstack_network_acl_rule
(#7612) - provider/cloudstack: Add option to set
root_disk_size
tocloudstack_instance
(#7070) - provider/cloudstack: Do no longer force a new
cloudstack_instance
resource when updatinguser_data
(#7074) - provider/cloudstack: Add option to set
security_group_names
tocloudstack_instance
(#7240) - provider/cloudstack: Add option to set
affinity_group_names
tocloudstack_instance
(#7242) - provider/datadog: Add support for 'require full window' and 'locked' (#6738)
- provider/docker: Docker Container DNS Setting Enhancements (#7392)
- provider/docker: Add
destroy_grace_seconds
option to stop container before delete (#7513) - provider/docker: Add
pull_trigger
option todocker_image
to trigger pulling layers of a given image (#7000) - provider/fastly: Add support for Cache Settings (#6781)
- provider/fastly: Add support for Service Request Settings on
fastly_service_v1
resources (#6622) - provider/fastly: Add support for custom VCL configuration (#6662)
- provider/google: Support optional uuid naming for Instance Template (#6604)
- provider/openstack: Add support for client certificate authentication (#6279)
- provider/openstack: Allow Neutron-based Floating IP to target a specific tenant (#6454)
- provider/openstack: Enable DHCP By Default (#6838)
- provider/openstack: Implement fixed_ip on Neutron floating ip allocations (#6837)
- provider/openstack: Increase timeouts for image resize, subnets, and routers (#6764)
- provider/openstack: Add
lb_provider
argument tolb_pool_v1
resource (#6919) - provider/openstack: Enforce
ForceNew
on Instance Block Device (#6921) - provider/openstack: Can now stop instances before destroying them (#7184)
- provider/openstack: Disassociate LBaaS v1 Monitors from Pool Before Deletion (#6997)
- provider/powerdns: Add support for PowerDNS 4 API (#7819)
- provider/triton: add
triton_machine
domain names
(#7149) - provider/vsphere: Add support for
controller_type
tovsphere_virtual_machine
(#6785) - provider/vsphere: Fix bug with
vsphere_virtual_machine
wait for ip (#6377) - provider/vsphere: Virtual machine update disk (#6619)
- provider/vsphere:
vsphere_virtual_machine
adding controller creation logic (#6853) - provider/vsphere:
vsphere_virtual_machine
added support formac address
onnetwork_interface
(#6966) - provider/vsphere: Enhanced
vsphere
logging capabilities (#6893) - provider/vsphere: Add DiskEnableUUID option to
vsphere_virtual_machine
(#7088) - provider/vsphere: Virtual Machine and File resources handle Read errors properley (#7220)
- provider/vsphere: set uuid as
vsphere_virtual_machine
output (#4382) - provider/vsphere: Add support for
keep_on_remove
tovsphere_virtual_machine
(#7169) - provider/vsphere: Add support for additional
vsphere_virtial_machine
SCSI controller types (#7525) - provisioner/file: File provisioners may now have file content set as an attribute (#7561)
BUG FIXES:
- core: Correct the previous fix for a bug causing "attribute not found" messages during destroy, as it was insufficient (#6599)
- core: Fix issue causing syntax errors interpolating count attribute when value passed between modules (#6833)
- core: Fix "diffs didn't match during apply" error for computed sets (#7205)
- core: Fix issue where
terraform init .
would truncate existing files (#7273) - core: Don't compare diffs between maps with computed values (#7249)
- core: Don't copy existing files over themselves when fetching modules (#7273)
- core: Always increment the state serial number when upgrading the version (#7402)
- core: Fix a crash during eval when we're upgrading an empty state (#7403)
- core: Honor the
-state-out
flag when applying with a plan file (#7443) - core: Fix a panic when a
terraform_remote_state
data source doesn't exist (#7464) - core: Fix issue where
ignore_changes
caused incorrect diffs on dependent resources (#7563) - provider/aws: Manual changes to
aws_codedeploy_deployment_group
resources are now detected (#7530) - provider/aws: Changing keys in
aws_dynamodb_table
correctly force new resources (#6829) - provider/aws: Fix a bug where CloudWatch alarms are created repeatedly if the user does not have permission to use the the DescribeAlarms operation (#7227)
- provider/aws: Fix crash in
aws_elasticache_parameter_group
occuring following edits in the console (#6687) - provider/aws: Fix issue reattaching a VPN gateway to a VPC (#6987)
- provider/aws: Fix issue with Root Block Devices and encrypted flag in Launch Configurations (#6512)
- provider/aws: If more ENIs are attached to
aws_instance
, the one w/ DeviceIndex0
is always used in context ofaws_instance
(previously unpredictable) (#6761) - provider/aws: Increased lambda event mapping creation timeout (#7657)
- provider/aws: Handle spurious failures in resourceAwsSecurityGroupRuleRead (#7377)
- provider/aws: Make 'stage_name' required in api_gateway_deployment (#6797)
- provider/aws: Mark Lambda function as gone when it's gone (#6924)
- provider/aws: Trim trailing
.
fromname
inaws_route53_record
resources to prevent spurious diffs (#6592) - provider/aws: Update Lambda functions on name change (#7081)
- provider/aws: Updating state when
aws_sns_topic_subscription
is missing (#6629) - provider/aws:
aws_codedeploy_deployment_group
panic when settingon_premises_instance_tag_filter
(#6617) - provider/aws:
aws_db_instance
now defaultspublicly_accessible
to false (#7117) - provider/aws:
aws_opsworks_application.app_source
SSH key is write-only (#6649) - provider/aws: fix Elastic Beanstalk
cname_prefix
continual plans (#6653) - provider/aws: Bundle IOPs and Allocated Storage update for DB Instances (#7203)
- provider/aws: Fix case when instanceId is absent in network interfaces (#6851)
- provider/aws: fix aws_security_group_rule refresh (#6730)
- provider/aws: Fix issue with Elastic Beanstalk and invalid settings (#7222)
- provider/aws: Fix issue where aws_app_cookie_stickiness_policy fails on destroy if LoadBalancer doesn't exist (#7166)
- provider/aws: Stickiness Policy exists, but isn't assigned to the ELB (#7188)
- provider/aws: Fix issue with
manage_bundler
onaws_opsworks_layers
(#7219) - provider/aws: Set Elastic Beanstalk stack name back to state (#7445)
- provider/aws: Allow recreation of VPC Peering Connection when state is rejected (#7466)
- provider/aws: Remove EFS File System from State when NotFound (#7437)
- provider/aws:
aws_customer_gateway
refreshing from state on deleted state (#7482) - provider/aws: Retry finding
aws_route
after creating it (#7463) - provider/aws: Refresh CloudWatch Group from state on 404 (#7576)
- provider/aws: Adding in additional retry logic due to latency with delete of
db_option_group
(#7312) - provider/aws: Safely get ELB values (#7585)
- provider/aws: Fix bug for recurring plans on ec2-classic and vpc in beanstalk (#6491)
- provider/aws: Bump rds_cluster timeout to 15 mins (#7604)
- provider/aws: Fix ICMP fields in
aws_network_acl_rule
to allow ICMP code 0 (echo reply) to be configured (#7669) - provider/aws: Fix bug with Updating
aws_autoscaling_group
enabled_metrics
(#7698) - provider/aws: Ignore IOPS on non io1 AWS root_block_device (#7783)
- provider/aws: Ignore missing ENI attachment when trying to detach ENI (#7185)
- provider/aws: Fix issue updating ElasticBeanstalk Environment templates (#7811)
- provider/aws: Restore Defaults to SQS Queues (#7818)
- provider/aws: Don't delete Lambda function from state on initial call of the Read func (#7829)
- provider/aws:
aws_vpn_gateway
should be removed from state when in deleted state (#7861) - provider/aws: Fix aws_route53_record 0-2 migration (#7907)
- provider/azurerm: Fixes terraform crash when using SSH keys with
azurerm_virtual_machine
(#6766) - provider/azurerm: Fix a bug causing 'diffs do not match' on
azurerm_network_interface
resources (#6790) - provider/azurerm: Normalizes
availability_set_id
casing to avoid spurious diffs inazurerm_virtual_machine
(#6768) - provider/azurerm: Add support for storage container name validation (#6852)
- provider/azurerm: Remove storage containers and blobs when storage accounts are not found (#6855)
- provider/azurerm:
azurerm_virtual_machine
fixadditional_unattend_rm
Windows config option (#7105) - provider/azurerm: Fix
azurerm_virtual_machine
windows_config (#7123) - provider/azurerm:
azurerm_dns_cname_record
can create CNAME records again (#7113) - provider/azurerm:
azurerm_network_security_group
now waits for the provisioning state ofready
before proceeding (#7307) - provider/azurerm:
computer_name
is now required forazurerm_virtual_machine
resources (#7308) - provider/azurerm: destroy azurerm_virtual_machine OS Disk VHD on deletion (#7584)
- provider/azurerm: catch
azurerm_template_deployment
erroring silently (#7644) - provider/azurerm: changing the name of an
azurerm_virtual_machine
now forces a new resource (#7646) - provider/azurerm: azurerm_storage_account now returns storage keys value instead of their names (#7674)
- provider/azurerm:
azurerm_virtual_machine
computer_name now Required (#7308) - provider/azurerm: Change of
availability_set_id
onazurerm_virtual_machine
should ForceNew (#7650) - provider/azurerm: Wait for
azurerm_storage_account
to be available (#7329) - provider/cloudflare: Fix issue upgrading CloudFlare Records created before v0.6.15 (#6969)
- provider/cloudstack: Fix using
cloudstack_network_acl
within a project (#6743) - provider/cloudstack: Fix refresing
cloudstack_network_acl_rule
when the associated ACL is deleted (#7612) - provider/cloudstack: Fix refresing
cloudstack_port_forward
when the associated IP address is no longer associated (#7612) - provider/cloudstack: Fix creating
cloudstack_network
with offerings that do not support specifying IP ranges (#7612) - provider/digitalocean: Stop
digitocean_droplet
forcing new resource on uppercase region (#7044) - provider/digitalocean: Reassign Floating IP when droplet changes (#7411)
- provider/google: Fix a bug causing an error attempting to delete an already-deleted
google_compute_disk
(#6689) - provider/mysql: Specifying empty provider credentials no longer causes a panic (#7211)
- provider/openstack: Reassociate Floating IP on network changes (#6579)
- provider/openstack: Ensure CIDRs Are Lower Case (#6864)
- provider/openstack: Rebuild Instances On Network Changes (#6844)
- provider/openstack: Firewall rules are applied in the correct order (#7194)
- provider/openstack: Fix Security Group EOF Error when Adding / Removing Multiple Groups (#7468)
- provider/openstack: Fixing boot volumes interfering with block storage volumes list (#7649)
- provider/vsphere:
gateway
andipv6_gateway
are now read fromvsphere_virtual_machine
resources (#6522) - provider/vsphere:
ipv*_gateway
parameters won't force a newvsphere_virtual_machine
(#6635) - provider/vsphere: adding a
vsphere_virtual_machine
migration (#7023) - provider/vsphere: Don't require vsphere debug paths to be set (#7027)
- provider/vsphere: Fix bug where
enable_disk_uuid
was not set onvsphere_virtual_machine
resources (#7275) - provider/vsphere: Make
vsphere_virtual_machine
product_key
optional (#7410) - provider/vsphere: Refreshing devices list after adding a disk or cdrom controller (#7167)
- provider/vsphere:
vsphere_virtual_machine
no longer has to be powered on to delete (#7206) - provider/vSphere: Fixes the hasBootableVmdk flag when attaching multiple disks (#7804)
- provisioner/remote-exec: Properly seed random script paths so they are not deterministic across runs (#7413)
BACKWARDS INCOMPATIBILITIES / NOTES:
- provider/aws:
aws_eip
fieldprivate_ip
is now a computed value, and cannot be set in your configuration. Useassociate_with_private_ip
instead. See (#6521)
FEATURES:
- New provider:
librato
(#3371) - New provider:
softlayer
(#4327) - New resource:
aws_api_gateway_account
(#6321) - New resource:
aws_api_gateway_authorizer
(#6320) - New resource:
aws_db_event_subscription
(#6367) - New resource:
aws_db_option_group
(#4401) - New resource:
aws_eip_association
(#6552) - New resource:
openstack_networking_secgroup_rule_v2
(#6410) - New resource:
openstack_networking_secgroup_v2
(#6410) - New resource:
vsphere_file
(#6401)
IMPROVEMENTS:
- core: update HCL dependency to improve whitespace handling in
terraform fmt
(#6347) - core: Add support for marking outputs as sensitive (#6559)
- provider/aws: Add agent_version argument to
aws_opswork_stack
(#6493) - provider/aws: Add support for request parameters to
api_gateway_method
&api_gateway_integration
(#6501) - provider/aws: Add support for response parameters to
api_gateway_method_response
&api_gateway_integration_response
(#6344) - provider/aws: Allow empty S3 config in Cloudfront Origin (#6487)
- provider/aws: Improve error handling in IAM Server Certificates (#6442)
- provider/aws: Use
sts:GetCallerIdentity
as additional method for getting AWS account ID (#6385) - provider/aws:
aws_redshift_cluster
automated_snapshot_retention_period
didn't allow 0 value (#6537) - provider/aws: Add CloudFront
hosted_zone_id
attribute (#6530) - provider/azurerm: Increase timeout for ARM Template deployments to 40 minutes (#6319)
- provider/azurerm: Make
private_ip_address
an exported field onazurerm_network_interface
(#6538) - provider/azurerm: Add support for
tags
toazurerm_virtual_machine
(#6556) - provider/azurerm: Add
os_type
andimage_uri
inazurerm_virtual_machine
(#6553) - provider/cloudflare: Add proxied option to
cloudflare_record
(#5508) - provider/docker: Add ability to keep docker image locally on terraform destroy (#6376)
- provider/fastly: Add S3 Log Streaming to Fastly Service (#6378)
- provider/fastly: Add Conditions to Fastly Service (#6481)
- provider/github: Add support for Github Enterprise via base_url configuration option (#6434)
- provider/triton: Add support for specifying network interfaces on
triton machine
resources (#6418) - provider/triton: Deleted firewall rules no longer prevent refresh (#6529)
- provider/vsphere: Add
skip_customization
option tovsphere_virtual_machine
resources (#6355) - provider/vsphere: Add ability to specify and mount bootable vmdk in
vsphere_virtual_machine
(#6146) - provider/vsphere: Add support for IPV6 to
vsphere_virtual_machine
(#6457) - provider/vsphere: Add support for
memory_reservation
tovsphere_virtual_machine
(#6036) - provider/vsphere: Checking for empty diskPath in
vsphere_virtual_machine
before creating (#6400) - provider/vsphere: Support updates to vcpu and memory on
vsphere_virtual_machine
(#6356) - remote/s3: Logic for loading credentials now follows the same conventions as AWS provider which means it also supports EC2 role auth and session token (e.g. assumed IAM Roles) (#5270)
BUG FIXES:
- core: Boolean values in diffs are normalized to
true
andfalse
, eliminating some erroneous diffs (#6499) - core: Fix a bug causing "attribute not found" messages during destroy (#6557)
- provider/aws: Allow account ID checks on EC2 instances & w/ federated accounts (#5030)
- provider/aws: Fix an eventually consistent issue aws_security_group_rule and possible duplications (#6325)
- provider/aws: Fix bug where
aws_elastic_beanstalk_environment
ignoredwait_for_ready_timeout
(#6358) - provider/aws: Fix bug where
aws_elastic_beanstalk_environment
update config template didn't work (#6342) - provider/aws: Fix issue in updating CloudFront distribution LoggingConfig (#6407)
- provider/aws: Fix issue in upgrading AutoScaling Policy to use
min_adjustment_magnitude
(#6440) - provider/aws: Fix issue replacing Network ACL Relationship (#6421)
- provider/aws: Fix issue with KMS Alias keys and name prefixes (#6328)
- provider/aws: Fix issue with encrypted snapshots of block devices in
aws_launch_configuration
resources (#6452) - provider/aws: Fix read of
aws_cloudwatch_log_group
after an update is applied (#6384) - provider/aws: Fix updating
number_of_nodes
onaws_redshift_cluster
(#6333) - provider/aws: Omit
aws_cloudfront_distribution
custom_error fields when not explicitly set (#6382) - provider/aws: Refresh state on
aws_sqs_queue
not found (#6381) - provider/aws: Respect
selection_pattern
inaws_api_gateway_integration_response
(previously ignored field) (#5893) - provider/aws:
aws_cloudfront_distribution
resources now require thecookies
argument (#6505) - provider/aws:
aws_route
crash when used withaws_vpc_endpoint
(#6338) - provider/aws: validate
cluster_id
length foraws_elasticache_cluster
(#6330) - provider/azurerm:
ssh_keys
can now be set forazurerm_virtual_machine
resources, allowing provisioning (#6541) - provider/azurerm: Fix issue that updating
azurerm_virtual_machine
was failing due to empty adminPassword (#6528) - provider/azurerm:
storage_data_disk
settings now work correctly onazurerm_virtual_machine
resources (#6543) - provider/cloudflare: can manage apex records (#6449)
- provider/cloudflare: won't refresh with incorrect record if names match (#6449)
- provider/datadog:
notify_no_data
andno_data_timeframe
are set correctly fordatadog_monitor
resources (#6509) - provider/docker: Fix crash when using empty string in the
command
list indocker_container
resources (#6424) - provider/vsphere: Memory reservations are now set correctly in
vsphere_virtual_machine
resources (#6482)
BACKWARDS INCOMPATIBILITIES / NOTES:
aws_instance
- if you still usesecurity_groups
field for SG IDs - i.e. inside VPC, this will generate diffs duringplan
andapply
will recreate the resource. Terraform expects IDs (VPC SGs) insidevpc_security_group_ids
.
FEATURES:
- New command:
terraform fmt
to automatically normalize config file style (#4955) - New interpolation function:
jsonencode
(#5890) - New provider:
cobbler
(#5969) - New provider:
fastly
(#5814) - New resource:
aws_cloudfront_distribution
(#5221) - New resource:
aws_cloudfront_origin_access_identity
(#5221) - New resource:
aws_iam_user_ssh_key
(#5774) - New resource:
aws_s3_bucket_notification
(#5473) - New resource:
cloudstack_static_nat
(#6004) - New resource:
consul_key_prefix
(#5988) - New resource:
aws_default_network_acl
(#6165) - New resource:
triton_fabric
(#5920) - New resource:
triton_vlan
(#5920) - New resource:
aws_opsworks_application
(#4419) - New resource:
aws_opsworks_instance
(#4276) - New resource:
aws_cloudwatch_log_subscription_filter
(#5996) - New resource:
openstack_networking_router_route_v2
(#6207)
IMPROVEMENTS:
- command/apply: Output will now show periodic status updates of slow resources. (#6163)
- core: Variables passed between modules are now type checked (#6185)
- core: Smaller release binaries by stripping debug information (#6238)
- provider/aws: Add support for Step Scaling in
aws_autoscaling_policy
(#4277) - provider/aws: Add support for
cname_prefix
toaws_elastic_beanstalk_environment
resource (#5966) - provider/aws: Add support for trigger_configuration to
aws_codedeploy_deployment_group
(#5599) - provider/aws: Adding outputs for elastic_beanstalk_environment resource (#5915)
- provider/aws: Adds
wait_for_ready_timeout
option toaws_elastic_beanstalk_environment
(#5967) - provider/aws: Allow
aws_db_subnet_group
description to be updated (#5921) - provider/aws: Allow multiple EIPs to associate to single ENI (#6070)
- provider/aws: Change
aws_elb
access_logs to list type (#5065) - provider/aws: Check that InternetGateway exists before returning from creation (#6105)
- provider/aws: Don't Base64-encode EC2 userdata if it is already Base64 encoded (#6140)
- provider/aws: Making the Cloudwatch Event Rule Target
target_id
optional (#5787) - provider/aws: Timeouts for
elasticsearch_domain
are increased (#5910) - provider/aws:
aws_codecommit_repository
setdefault_branch
only if defined (#5904) - provider/aws:
aws_redshift_cluster
allows usernames with underscore in it (#5935) - provider/aws: normalise json for
aws_sns_topic
(#6089) - provider/aws: normalize json for
aws_cloudwatch_event_rule
(#6025) - provider/aws: increase timeout for aws_redshift_cluster (#6305)
- provider/aws: Opsworks layers now support
custom_json
argument (#4272) - provider/aws: Added migration for
tier
attribute inaws_elastic_beanstalk_environment
(#6167) - provider/aws: Use resource.Retry for route creation and deletion (#6225)
- provider/aws: Add support S3 Bucket Lifecycle Rule (#6220)
- provider/clc: Override default
account
alias in provider config (#5785) - provider/cloudstack: Deprecate
ipaddress
in favour ofip_address
in all resources (#6010) - provider/cloudstack: Deprecate allowing names (instead of IDs) for parameters that reference other resources (#6123)
- provider/datadog: Add heredoc support to message, escalation_message, and query (#5788)
- provider/docker: Add support for docker run --user option (#5300)
- provider/github: Add support for privacy to
github_team
(#6116) - provider/google: Accept GOOGLE_CLOUD_KEYFILE_JSON env var for credentials (#6007)
- provider/google: Add "project" argument and attribute to all GCP compute resources which inherit from the provider's value (#6112)
- provider/google: Make "project" attribute on provider configuration optional (#6112)
- provider/google: Read more common configuration values from the environment and clarify precedence ordering (#6114)
- provider/google:
addons_config
andsubnetwork
added as attributes togoogle_container_cluster
(#5871) - provider/fastly: Add support for Request Headers (#6197)
- provider/fastly: Add support for Gzip rules (#6247)
- provider/openstack: Add value_specs argument and attribute for routers (#4898)
- provider/openstack: Allow subnets with no gateway (#6060)
- provider/openstack: Enable Token Authentication (#6081)
- provider/postgresql: New
ssl_mode
argument allowing different SSL usage tradeoffs (#6008) - provider/vsphere: Support for linked clones and Windows-specific guest config options (#6087)
- provider/vsphere: Checking for Powered Off State before
vsphere_virtual_machine
deletion (#6283) - provider/vsphere: Support mounting ISO images to virtual cdrom drives (#4243)
- provider/vsphere: Fix missing ssh connection info (#4283)
- provider/google: Deprecate unused "region" attribute in
global_forwarding_rule
; this attribute was never used anywhere in the computation of the resource (#6112) - provider/cloudstack: Add group attribute to
cloudstack_instance
resource (#6023) - provider/azurerm: Provider meaningful error message when credentials not correct (#6290)
- provider/cloudstack: Improve support for using projects (#6282)
BUG FIXES:
- core: Providers are now correctly inherited down a nested module tree (#6186)
- provider/aws: Convert protocols to standard format for Security Groups (#5881)
- provider/aws: Fix Lambda VPC integration (missing
vpc_id
field in schema) (#6157) - provider/aws: Fix
aws_route panic
when destination CIDR block is nil (#5781) - provider/aws: Fix issue re-creating deleted VPC peering connections (#5959)
- provider/aws: Fix issue with changing iops when also changing storage type to io1 on RDS (#5676)
- provider/aws: Fix issue with retrying deletion of Network ACLs (#5954)
- provider/aws: Fix potential crash when receiving malformed
aws_route
API responses (#5867) - provider/aws: Guard against empty responses from Lambda Permissions (#5838)
- provider/aws: Normalize and compact SQS Redrive, Policy JSON (#5888)
- provider/aws: Fix issue updating ElasticBeanstalk Configuraiton Templates (#6307)
- provider/aws: Remove CloudTrail Trail from state if not found (#6024)
- provider/aws: Fix crash in AWS S3 Bucket when website index/error is empty (#6269)
- provider/aws: Report better error message in
aws_route53_record
whenset_identifier
is required (#5777) - provider/aws: Show human-readable error message when failing to read an EBS volume (#6038)
- provider/aws: set ASG
health_check_grace_period
default to 300 (#5830) - provider/aws: Fix issue with with Opsworks and empty Custom Cook Book sources (#6078)
- provider/aws: wait for IAM instance profile to propagate when creating Opsworks stacks (#6049)
- provider/aws: Don't read back
aws_opsworks_stack
cookbooks source password (#6203) - provider/aws: Resolves DefaultOS and ConfigurationManager conflict on
aws_opsworks_stack
(#6244) - provider/aws: Renaming
aws_elastic_beanstalk_configuration_template``option_settings
tosetting
(#6043) - provider/aws:
aws_customer_gateway
will properly populatebgp_asn
on refresh. [no issue] - provider/aws: provider/aws: Refresh state on
aws_directory_service_directory
not found (#6294) - provider/aws:
aws_elb
cross_zone_load_balancing
is not refreshed in the state file (#6295) - provider/aws:
aws_autoscaling_group
will properly populatetag
on refresh. [no issue] - provider/azurerm: Fix detection of
azurerm_storage_account
resources removed manually (#5878) - provider/docker: Docker Image will be deleted on destroy (#5801)
- provider/openstack: Fix Disabling DHCP on Subnets (#6052)
- provider/openstack: Fix resizing when Flavor Name changes (#6020)
- provider/openstack: Fix Access Address Detection (#6181)
- provider/openstack: Fix admin_state_up on openstack_lb_member_v1 (#6267)
- provider/triton: Firewall status on
triton_machine
resources is reflected correctly (#6119) - provider/triton: Fix time out when applying updates to Triton machine metadata (#6149)
- provider/vsphere: Add error handling to
vsphere_folder
(#6095) - provider/cloudstack: Fix mashalling errors when using CloudStack 4.7.x (or newer) [GH-#226]
FEATURES:
- New provider:
triton
- Manage Joyent Triton public cloud or on-premise installations (#5738) - New provider:
clc
- Manage CenturyLink Cloud resources (#4893) - New provider:
github
- Manage GitHub Organization permissions with Terraform config (#5194) - New provider:
influxdb
- Manage InfluxDB databases (#3478) - New provider:
ultradns
- Manage UltraDNS records (#5716) - New resource:
aws_cloudwatch_log_metric_filter
(#5444) - New resource:
azurerm_virtual_machine
(#5514) - New resource:
azurerm_template_deployment
(#5758) - New interpolation function:
uuid
(#5575)
IMPROVEMENTS:
- core: provisioners connecting via WinRM now respect HTTPS settings (#5761)
- provider/aws:
aws_db_instance
now makesidentifier
optional and generates a unique ID when it is omitted (#5723) - provider/aws:
aws_redshift_cluster
now allowspublicly_accessible
to be modified (#5721) - provider/aws:
aws_kms_alias
now allows name to be auto-generated with aname_prefix
(#5594)
BUG FIXES:
- core: Color output is now shown correctly when running Terraform on Windows (#5718)
- core: HEREDOCs can now be indented in line with configuration using
<<-
and hanging indent is removed (#5740) - core: Invalid HCL syntax of nested object blocks no longer causes a crash (#5740)
- core: Local directory-based modules now use junctions instead of symbolic links on Windows (#5739)
- core: Modules sourced from a Mercurial repository now work correctly on Windows (#5739)
- core: Address some issues with ignore_changes (#5635)
- core: Add a lock to fix an interpolation issue caught by the Go 1.6 concurrent map access detector (#5772)
- provider/aws: Fix crash when an
aws_rds_cluster_instance
is removed outside of Terraform (#5717) - provider/aws:
aws_cloudformation_stack
usetimeout_in_minutes
for retry timeout to prevent unecessary timeouts (#5712) - provider/aws:
aws_lambda_function
resources no longer error on refresh if deleted externally to Terraform (#5668) - provider/aws:
aws_vpn_connection
resources deleted via the console on longer cause a crash (#5747) - provider/aws: Fix crasher in Elastic Beanstalk Configuration when using options (#5756)
- provider/aws: Fix issue preventing
aws_opsworks_stck
from working with Windows set as the OS (#5724) - provider/digitalocean:
digitalocean_ssh_key
resources no longer cause a panic if there is no network connectivity (#5748) - provider/google: Default description
google_dns_managed_zone
resources to "Managed By Terraform" (#5428) - provider/google: Fix error message on invalid instance URL for
google_compute_instance_group
(#5715) - provider/vsphere: provide
host
to provisioner connections (#5558) - provisioner/remote-exec: Address race condition introduced with script cleanup step introduced in 0.6.13 (#5751)
BACKWARDS INCOMPATIBILITIES / NOTES:
- provider/aws:
aws_s3_bucket_object
fieldetag
is now trimming off quotes (returns raw MD5 hash) (#5305) - provider/aws:
aws_autoscaling_group
now supports metrics collection, so a diff installing the default value of1Minute
for themetrics_granularity
field is expected. This diff should resolve in the nextterraform apply
w/ no AWS API calls (#4688) - provider/consul:
consul_keys
key
blocks now respectdelete
flag for removing individual blocks. Previously keys would be deleted only when the entire resource was removed. - provider/google:
next_hop_network
ongoogle_compute_route
is now read-only, to mirror the behavior in the official docs (#5564) - state/remote/http: PUT requests for this backend will now have
Content-Type: application/json
instead ofapplication/octet-stream
(#5499)
FEATURES:
- New command:
terraform untaint
(#5527) - New resource:
aws_api_gateway_api_key
(#4295) - New resource:
aws_api_gateway_deployment
(#4295) - New resource:
aws_api_gateway_integration_response
(#4295) - New resource:
aws_api_gateway_integration
(#4295) - New resource:
aws_api_gateway_method_response
(#4295) - New resource:
aws_api_gateway_method
(#4295) - New resource:
aws_api_gateway_model
(#4295) - New resource:
aws_api_gateway_resource
(#4295) - New resource:
aws_api_gateway_rest_api
(#4295) - New resource:
aws_elastic_beanstalk_application
(#3157) - New resource:
aws_elastic_beanstalk_configuration_template
(#3157) - New resource:
aws_elastic_beanstalk_environment
(#3157) - New resource:
aws_iam_account_password_policy
(#5029) - New resource:
aws_kms_alias
(#3928) - New resource:
aws_kms_key
(#3928) - New resource:
google_compute_instance_group
(#4087)
IMPROVEMENTS:
- provider/aws: Add
repository_link
as a computed field foraws_ecr_repository
(#5524) - provider/aws: Add ability to update Route53 zone comments (#5318)
- provider/aws: Add support for Metrics Collection to
aws_autoscaling_group
(#4688) - provider/aws: Add support for
description
toaws_network_interface
(#5523) - provider/aws: Add support for
storage_encrypted
toaws_rds_cluster
(#5520) - provider/aws: Add support for routing rules on
aws_s3_bucket
resources (#5327) - provider/aws: Enable updates & versioning for
aws_s3_bucket_object
(#5305) - provider/aws: Guard against Nil Reference in Redshift Endpoints (#5593)
- provider/aws: Lambda S3 object version defaults to
$LATEST
if unspecified (#5370) - provider/aws: Retry DB Creation on IAM propigation error (#5515)
- provider/aws: Support KMS encryption of S3 objects (#5453)
- provider/aws:
aws_autoscaling_lifecycle_hook
now havenotification_target_arn
androle_arn
as optional (#5616) - provider/aws:
aws_ecs_service
validates number ofload_balancer
s before creation/updates (#5605) - provider/aws: send Terraform version in User-Agent (#5621)
- provider/cloudflare: Change
cloudflare_record
type to ForceNew (#5353) - provider/consul:
consul_keys
now detects drift and supports deletion of individualkey
blocks (#5210) - provider/digitalocean: Guard against Nil reference in
digitalocean_droplet
(#5588) - provider/docker: Add support for
unless-stopped
to docker containerrestart_policy
(#5337) - provider/google: Mark
next_hop_network
as read-only ongoogle_compute_route
(#5564) - provider/google: Validate VPN tunnel peer_ip at plan time (#5501)
- provider/openstack: Add Support for Domain ID and Domain Name environment variables (#5355)
- provider/openstack: Add support for instances to have multiple ephemeral disks. (#5131)
- provider/openstack: Re-Add server.AccessIPv4 and server.AccessIPv6 (#5366)
- provider/vsphere: Add support for disk init types (#4284)
- provisioner/remote-exec: Clear out scripts after uploading (#5577)
- state/remote/http: Change content type of PUT requests to the more appropriate
application/json
(#5499)
BUG FIXES:
- core: Disallow negative indices in the element() interpolation function, preventing crash (#5263)
- core: Fix issue that caused tainted resource destroys to be improperly filtered out when using -target and a plan file (#5516)
- core: Fix several issues with retry logic causing spurious "timeout while waiting for state to become ..." errors and unnecessary retry loops (#5460), (#5538), (#5543), (#5553)
- core: Includes upstream HCL fix to properly detect unbalanced braces and throw an error (#5400)
- provider/aws: Allow recovering from failed CloudWatch Event Target creation (#5395)
- provider/aws: Fix EC2 Classic SG Rule issue when referencing rules by name (#5533)
- provider/aws: Fix
aws_cloudformation_stack
update forparameters
&capabilities
if unmodified (#5603) - provider/aws: Fix a bug where AWS Kinesis Stream includes closed shards in the shard_count (#5401)
- provider/aws: Fix a bug where ElasticSearch Domain tags were not being set correctly (#5361)
- provider/aws: Fix a bug where
aws_route
would show continual changes in the plan when not computed (#5321) - provider/aws: Fix a bug where
publicly_assessible
wasn't being set to state inaws_db_instance
(#5535) - provider/aws: Fix a bug where listener protocol on
aws_elb
resources was case insensitive (#5376) - provider/aws: Fix a bug which caused panics creating rules on security groups in EC2 Classic (#5329)
- provider/aws: Fix crash when
aws_lambda_function
VpcId is nil (#5182) - provider/aws: Fix error with parsing JSON in
aws_s3_bucket
policy attribute (#5474) - provider/aws:
aws_lambda_function
can be properly updated, either vias3_object_version
or viafilename
&source_code_hash
as described in docs (#5239) - provider/google: Fix managed instance group preemptible instance creation (#4834)
- provider/openstack: Account for a 403 reply when os-tenant-networks is disabled (#5432)
- provider/openstack: Fix crashing during certain network updates in instances (#5365)
- provider/openstack: Fix create/delete statuses in load balancing resources (#5557)
- provider/openstack: Fix race condition between instance deletion and volume detachment (#5359)
- provider/template: Warn when
template
attribute specified as path (#5563)
INTERNAL IMPROVEMENTS:
- helper/schema:
MaxItems
attribute on schema lists and sets (#5218)
BACKWARDS INCOMPATIBILITIES / NOTES:
- The
publicly_accessible
attribute onaws_redshift_cluster
resources now defaults to true
FEATURES:
- New command:
validate
to perform syntax validation (#3783) - New provider:
datadog
(#5251) - New interpolation function:
md5
(#5267) - New interpolation function:
signum
(#4854) - New resource:
aws_cloudwatch_event_rule
(#4986) - New resource:
aws_cloudwatch_event_target
(#4986) - New resource:
aws_lambda_permission
(#4826) - New resource:
azurerm_dns_a_record
(#5013) - New resource:
azurerm_dns_aaaa_record
(#5013) - New resource:
azurerm_dns_cname_record
(#5013) - New resource:
azurerm_dns_mx_record
(#5041) - New resource:
azurerm_dns_ns_record
(#5041) - New resource:
azurerm_dns_srv_record
(#5041) - New resource:
azurerm_dns_txt_record
(#5041) - New resource:
azurerm_dns_zone
(#4979) - New resource:
azurerm_search_service
(#5203) - New resource:
azurerm_sql_database
(#5003) - New resource:
azurerm_sql_firewall_rule
(#5057) - New resource:
azurerm_sql_server
(#4991) - New resource:
google_compute_subnetwork
(#5130)
IMPROVEMENTS:
- core: Backend names are now down cased during
init
in the same manner asremote config
(#5012) - core: Upgrade resource name validation warning to an error as planned (#5272)
- core: output "diffs didn't match" error details (#5276)
- provider/aws: Add
is_multi_region_trail
option to CloudTrail (#4939) - provider/aws: Add support for HTTP(S) endpoints that auto confirm SNS subscription (#4711)
- provider/aws: Add support for Tags to CloudTrail (#5135)
- provider/aws: Add support for Tags to ElasticSearch (#4973)
- provider/aws: Add support for deployment configuration to
aws_ecs_service
(#5220) - provider/aws: Add support for log validation + KMS encryption to
aws_cloudtrail
(#5051) - provider/aws: Allow name-prefix and auto-generated names for IAM Server Cert (#5178)
- provider/aws: Expose additional VPN Connection attributes (#5032)
- provider/aws: Return an error if no matching route is found for an AWS Route (#5155)
- provider/aws: Support custom endpoints for AWS EC2 ELB and IAM (#5114)
- provider/aws: The
cluster_type
onaws_redshift_cluster
resources is now computed (#5238) - provider/aws:
aws_lambda_function
resources now support VPC configuration (#5149) - provider/aws: Add support for Enhanced Monitoring to RDS Instances (#4945)
- provider/aws: Improve vpc cidr_block err message (#5255)
- provider/aws: Implement Retention Period for
aws_kinesis_stream
(#5223) - provider/aws: Enable
stream_arm
output for DynamoDB Table when streams are enabled (#5271) - provider/digitalocean:
digitalocean_record
resources now export a computedfqdn
attribute (#5071) - provider/google: Add assigned IP Address to CloudSQL Instance
google_sql_database_instance
(#5245) - provider/openstack: Add support for Distributed Routers (#4878)
- provider/openstack: Add support for optional cacert_file parameter (#5106)
BUG FIXES:
- core: Fix bug detecting deeply nested module orphans (#5022)
- core: Fix bug where
ignore_changes
could produce "diffs didn't match during apply" errors (#4965) - core: Fix race condition when handling tainted resource destroys (#5026)
- core: Improve handling of Provisioners in the graph, fixing "Provisioner already initialized" errors (#4877)
- core: Skip
create_before_destroy
processing during aterraform destroy
, solving several issues preventingdestroy
from working properly with CBD resources (#5096) - core: Error instead of panic on self var in wrong scope (#5273)
- provider/aws: Fix Copy of Tags to DB Instance when created from Snapshot (#5197)
- provider/aws: Fix DynamoDB Table Refresh to ensure deleted tables are removed from state (#4943)
- provider/aws: Fix ElasticSearch
domain_name
validation (#4973) - provider/aws: Fix issue applying security group changes in EC2 Classic RDS for aws_db_instance (#4969)
- provider/aws: Fix reading auto scaling group availability zones (#5044)
- provider/aws: Fix reading auto scaling group load balancers (#5045)
- provider/aws: Fix
aws_redshift_cluster
to allowpublicly_accessible
to be false (#5262) - provider/aws: Wait longer for internet gateways to detach (#5120)
- provider/aws: Fix issue reading auto scaling group termination policies (#5101)
- provider/cloudflare:
ttl
no longer shows a change on each plan oncloudflare_record
resources (#5042) - provider/docker: Fix the default docker_host value (#5088)
- provider/google: Fix backend service max_utilization attribute (#5075)
- provider/google: Fix reading of
google_compute_vpn_gateway
without an explicit (#5125) - provider/google: Fix crash when setting
ack_deadline_seconds
ongoogle_pubsub_subscription
(#5110) - provider/openstack: Fix crash when
access_network
was not defined in instances (#4966) - provider/powerdns: Fix refresh of
powerdns_record
no longer fails if the record name contains a-
(#5228) - provider/vcd: Wait for DHCP assignment when creating
vcd_vapp
resources with no static IP assignment (#5195)
BACKWARDS INCOMPATIBILITIES / NOTES:
- The
max_size
,min_size
anddesired_capacity
attributes onaws_autoscaling_schedule
resources now default to 0
FEATURES:
- New provider:
powerdns
- PowerDNS REST API (#4885) - New builtin function:
trimspace
for trimming whitespaces (#4910) - New builtin function:
base64sha256
for base64 encoding raw sha256 sum of a given string (#4899) - New resource:
openstack_lb_member_v1
(#4359)
IMPROVEMENTS:
- provider/template: Remove unnecessary mime-type validation from
template_cloudinit_config
resources (#4873) - provider/template: Correct spelling of "Boundary" in the part separator of rendered
template_cloudinit_config
resources (#4873) - provider/aws: Provide a better message if no AWS creds are found (#4869)
- provider/openstack: Ability to specify per-network Floating IPs (#4812)
BUG FIXES:
- provider/aws:
aws_autoscale_schedule
0 values (#4693) - provider/aws: Fix regression with VPCs and ClassicLink for regions that do not support it (#4879)
- provider/aws: Change VPC ClassicLink to be computed (#4933)
- provider/aws: Fix SNS Topic Refresh to ensure deleted topics are removed from state (#4891)
- provider/aws: Refactor Route53 record to fix regression in deleting records created in previous versions of Terraform (#4892)
- provider/azurerm: Fix panic if no creds supplied (#4902)
- provider/openstack: Changing the port resource to mark the ip_address as optional (#4850)
- provider/docker: Catch potential custom network errors in docker (#4918)
BACKWARDS INCOMPATIBILITIES / NOTES:
- The
-module-depth
flag available onplan
,apply
,show
, andgraph
now defaults to-1
, causing resources within modules to be expanded in command output. This is only a cosmetic change; it does not affect any behavior. - This release includes a bugfix for
$${}
interpolation escaping. These strings are now properly converted to${}
during interpolation. This may cause diffs on existing configurations in certain cases. - Users of
consul_keys
should note that thevalue
sub-attribute ofkey
will no longer be updated with the remote value of the key. It should be only used to set a key in Consul K/V. To reference key values, use thevar
attribute. - The 0.6.9 release contained a regression in
aws_autoscaling_group
capacity waiting behavior for configs wheremin_elb_capacity != desired_capacity
ormin_size != desired_capacity
. This release remedies that regression by un-deprecatingmin_elb_capacity
and restoring the prior behavior. - Users of
aws_security_group
may notice new diffs in initial plans with 0.6.10 due to a bugfix that fixes drift detection on nested security group rules. These new diffs should reflect the actual state of the resources, which Terraform previously was unable to see.
FEATURES:
- New resource:
aws_lambda_alias
(#4664) - New resource:
aws_redshift_cluster
(#3862) - New resource:
aws_redshift_parameter_group
(#3862) - New resource:
aws_redshift_security_group
(#3862) - New resource:
aws_redshift_subnet_group
(#3862) - New resource:
azurerm_cdn_endpoint
(#4759) - New resource:
azurerm_cdn_profile
(#4740) - New resource:
azurerm_network_interface
(#4598) - New resource:
azurerm_network_security_rule
(#4586) - New resource:
azurerm_route_table
(#4602) - New resource:
azurerm_route
(#4604) - New resource:
azurerm_storage_account
(#4698) - New resource:
azurerm_storage_blob
(#4862) - New resource:
azurerm_storage_container
(#4862) - New resource:
azurerm_storage_queue
(#4862) - New resource:
azurerm_subnet
(#4595) - New resource:
docker_network
(#4483) - New resource:
docker_volume
(#4483) - New resource:
google_sql_user
(#4669)
IMPROVEMENTS:
- core: Add
sha256()
interpolation function (#4704) - core: Validate lifecycle keys to show helpful error messages whe they are mistypes (#4745)
- core: Default
module-depth
parameter to-1
, which expands resources within modules in command output (#4763) - core: Variable types may now be specified explicitly using the
type
argument (#4795) - provider/aws: Add new parameters
az_mode
andavailability_zone(s)
in ElastiCache (#4631) - provider/aws: Allow ap-northeast-2 (Seoul) as valid region (#4637)
- provider/aws: Limit SNS Topic Subscription protocols (#4639)
- provider/aws: Add support for configuring logging on
aws_s3_bucket
resources (#4482) - provider/aws: Add AWS Classiclink for AWS VPC resource (#3994)
- provider/aws: Supporting New AWS Route53 HealthCheck additions (#4564)
- provider/aws: Store instance state (#3261)
- provider/aws: Add support for updating ELB availability zones and subnets (#4597)
- provider/aws: Enable specifying aws s3 redirect protocol (#4098)
- provider/aws: Added support for
encrypted
onebs_block_devices
in Launch Configurations (#4481) - provider/aws: Retry Listener Creation for ELBs (#4825)
- provider/aws: Add support for creating Managed Microsoft Active Directory and Directory Connectors (#4388)
- provider/aws: Mark some
aws_db_instance
fields as optional (#3138) - provider/digitalocean: Add support for reassigning
digitalocean_floating_ip
resources (#4476) - provider/dme: Add support for Global Traffic Director locations on
dme_record
resources (#4305) - provider/docker: Add support for adding host entries on
docker_container
resources (#3463) - provider/docker: Add support for mounting named volumes on
docker_container
resources (#4480) - provider/google: Add content field to bucket object (#3893)
- provider/google: Add support for
named_port
blocks ongoogle_compute_instance_group_manager
resources (#4605) - provider/openstack: Add "personality" support to instance resource (#4623)
- provider/packet: Handle external state changes for Packet resources gracefully (#4676)
- provider/tls:
tls_private_key
now exports attributes with public key in both PEM and OpenSSH format (#4606) - provider/vdc: Add
allow_unverified_ssl
for connections to vCloud API (#4811) - state/remote: Allow KMS Key Encryption to be used with S3 backend (#2903)
BUG FIXES:
- core: Fix handling of literals with escaped interpolations
$${var}
(#4747) - core: Fix diff mismatch when RequiresNew field and list both change (#4749)
- core: Respect module target path argument on
terraform init
(#4753) - core: Write planfile even on empty plans (#4766)
- core: Add validation error when output is missing value field (#4762)
- core: Fix improper handling of orphan resources when targeting (#4574)
- core: Properly handle references to computed set attributes (#4840)
- config: Detect a specific JSON edge case and show a helpful workaround (#4746)
- provider/openstack: Ensure valid Security Group Rule attribute combination (#4466)
- provider/openstack: Don't put fixed_ip in port creation request if not defined (#4617)
- provider/google: Clarify SQL Database Instance recent name restriction (#4577)
- provider/google: Split Instance network interface into two fields (#4265)
- provider/aws: Error with empty list item on security group (#4140)
- provider/aws: Fix issue with detecting drift in AWS Security Groups rules (#4779)
- provider/aws: Trap Instance error from mismatched SG IDs and Names (#4240)
- provider/aws: EBS optimised to force new resource in AWS Instance (#4627)
- provider/aws: Wait for NACL rule to be visible (#4734)
- provider/aws:
default_result
onaws_autoscaling_lifecycle_hook
resources is now computed (#4695) - provider/aws: fix ASG capacity waiting regression by un-deprecating
min_elb_capacity
(#4864) - provider/consul: fix several bugs surrounding update behavior (#4787)
- provider/mailgun: Handle the fact that the domain destroy API is eventually consistent (#4777)
- provider/template: Fix race causing sporadic crashes in template_file with count > 1 (#4694)
- provider/template: Add support for updating
template_cloudinit_config
resources (#4757) - provisioner/chef: Add ENV['no_proxy'] to chef provisioner if no_proxy is detected (#4661)
FEATURES:
- New provider:
vcd
- VMware vCloud Director (#3785) - New provider:
postgresql
- Create PostgreSQL databases and roles (#3653) - New provider:
chef
- Create chef environments, roles, etc (#3084) - New provider:
azurerm
- Preliminary support for Azure Resource Manager (#4226) - New provider:
mysql
- Create MySQL databases (#3122) - New resource:
aws_autoscaling_schedule
(#4256) - New resource:
aws_nat_gateway
(#4381) - New resource:
aws_network_acl_rule
(#4286) - New resources:
aws_ecr_repository
andaws_ecr_repository_policy
(#4415) - New resource:
google_pubsub_topic
(#3671) - New resource:
google_pubsub_subscription
(#3671) - New resource:
template_cloudinit_config
(#4095) - New resource:
tls_locally_signed_cert
(#3930) - New remote state backend:
artifactory
(#3684)
IMPROVEMENTS:
- core: Change set internals for performance improvements (#3992)
- core: Support HTTP basic auth in consul remote state (#4166)
- core: Improve error message on resource arity mismatch (#4244)
- core: Add support for unary operators + and - to the interpolation syntax (#3621)
- core: Add SSH agent support for Windows (#4323)
- core: Add
sha1()
interpolation function (#4450) - provider/aws: Add
placement_group
as an option foraws_autoscaling_group
(#3704) - provider/aws: Add support for DynamoDB Table StreamSpecifications (#4208)
- provider/aws: Add
name_prefix
to Security Groups (#4167) - provider/aws: Add support for removing nodes to
aws_elasticache_cluster
(#3809) - provider/aws: Add support for
skip_final_snapshot
toaws_db_instance
(#3853) - provider/aws: Adding support for Tags to DB SecurityGroup (#4260)
- provider/aws: Adding Tag support for DB Param Groups (#4259)
- provider/aws: Fix issue with updated route ids for VPC Endpoints (#4264)
- provider/aws: Added measure_latency option to Route 53 Health Check resource (#3688)
- provider/aws: Validate IOPs for EBS Volumes (#4146)
- provider/aws: DB Subnet group arn output (#4261)
- provider/aws: Get full Kinesis streams view with pagination (#4368)
- provider/aws: Allow changing private IPs for ENIs (#4307)
- provider/aws: Retry MalformedPolicy errors due to newly created principals in S3 Buckets (#4315)
- provider/aws: Validate
name
ondb_subnet_group
against AWS requirements (#4340) - provider/aws: wait for ASG capacity on update (#3947)
- provider/aws: Add validation for ECR repository name (#4431)
- provider/cloudstack: performance improvements (#4150)
- provider/docker: Add support for setting the entry point on
docker_container
resources (#3761) - provider/docker: Add support for setting the restart policy on
docker_container
resources (#3761) - provider/docker: Add support for setting memory, swap and CPU shares on
docker_container
resources (#3761) - provider/docker: Add support for setting labels on
docker_container
resources (#3761) - provider/docker: Add support for setting log driver and options on
docker_container
resources (#3761) - provider/docker: Add support for settings network mode on
docker_container
resources (#4475) - provider/heroku: Improve handling of Applications within an Organization (#4495)
- provider/vsphere: Add support for custom vm params on
vsphere_virtual_machine
(#3867) - provider/vsphere: Rename vcenter_server config parameter to something clearer (#3718)
- provider/vsphere: Make allow_unverified_ssl a configuable on the provider (#3933)
- provider/vsphere: Add folder handling for folder-qualified vm names (#3939)
- provider/vsphere: Change ip_address parameter for ipv6 support (#4035)
- provider/openstack: Increase instance timeout from 10 to 30 minutes (#4223)
- provider/google: Add
restart_policy
attribute togoogle_managed_instance_group
(#3892)
BUG FIXES:
- core: skip provider input for deprecated fields (#4193)
- core: Fix issue which could cause fields that become empty to retain old values in the state (#3257)
- provider/docker: Fix an issue running with Docker Swarm by looking up containers by ID instead of name (#4148)
- provider/openstack: Better handling of load balancing resource state changes (#3926)
- provider/aws: Treat
INACTIVE
ECS cluster as deleted (#4364) - provider/aws: Skip
source_security_group_id
determination logic for Classic ELBs (#4075) - provider/aws: Fix issue destroy Route 53 zone/record if it no longer exists (#4198)
- provider/aws: Fix issue force destroying a versioned S3 bucket (#4168)
- provider/aws: Update DB Replica to honor storage type (#4155)
- provider/aws: Fix issue creating AWS RDS replicas across regions (#4215)
- provider/aws: Fix issue with Route53 and zero weighted records (#4427)
- provider/aws: Fix issue with iam_profile in aws_instance when a path is specified (#3663)
- provider/aws: Refactor AWS Authentication chain to fix issue with authentication and IAM (#4254)
- provider/aws: Fix issue with finding S3 Hosted Zone ID for eu-central-1 region (#4236)
- provider/aws: Fix missing AMI issue with Launch Configurations (#4242)
- provider/aws: Opsworks stack SSH key is write-only (#4241)
- provider/aws: Update VPC Endpoint to correctly set route table ids (#4392)
- provider/aws: Fix issue with ElasticSearch Domain
access_policies
always appear changed (#4245) - provider/aws: Fix issue with nil parameter group value causing panic in
aws_db_parameter_group
(#4318) - provider/aws: Fix issue with Elastic IPs not recognizing when they have been unassigned manually (#4387)
- provider/aws: Use body or URL for all CloudFormation stack updates (#4370)
- provider/aws: Fix template_url/template_body conflict (#4540)
- provider/aws: Fix bug w/ changing ECS svc/ELB association (#4366)
- provider/aws: Fix RDS unexpected state config (#4490)
- provider/digitalocean: Fix issue where a floating IP attached to a missing droplet causes a panic (#4214)
- provider/google: Fix project metadata sshKeys from showing up and causing unnecessary diffs (#4512)
- provider/heroku: Retry drain create until log channel is assigned (#4823)
- provider/openstack: Handle volumes in "deleting" state (#4204)
- provider/rundeck: Tolerate Rundeck server not returning project name when reading a job (#4301)
- provider/vsphere: Create and attach additional disks before bootup (#4196)
- provider/openstack: Convert block_device from a Set to a List (#4288)
- provider/google: Terraform identifies deleted resources and handles them appropriately on Read (#3913)
FEATURES:
- New provider:
statuscake
(#3340) - New resource:
digitalocean_floating_ip
(#3748) - New resource:
aws_lambda_event_source_mapping
(#4093)
IMPROVEMENTS:
- provider/cloudstack: Reduce the number of network calls required for common operations (#4051)
- provider/aws: Make
publically_accessible
on anaws_db_instance
update existing instances instead of forcing new ones (#3895) - provider/aws: Allow
block_duration_minutes
to be set for spot instance requests (#4071) - provider/aws: Make setting
acl
on S3 buckets update existing buckets instead of forcing new ones (#4080) - provider/aws: Make updates to
assume_role_policy
modify existing IAM roles instead of forcing new ones (#4107)
BUG FIXES:
- core: Fix a bug which prevented HEREDOC syntax being used in lists (#4078)
- core: Fix a bug which prevented HEREDOC syntax where the anchor ends in a number (#4128)
- core: Fix a bug which prevented HEREDOC syntax being used with Windows line endings (#4069)
- provider/aws: Fix a bug which could result in a panic when reading EC2 metadata (#4024)
- provider/aws: Fix issue recreating security group rule if it has been destroyed (#4050)
- provider/aws: Fix issue with some attributes in Spot Instance Requests returning as nil (#4132)
- provider/aws: Fix issue where SPF records in Route 53 could show differences with no modification to the configuration (#4108)
- provisioner/chef: Fix issue with path separators breaking the Chef provisioner on Windows (#4041)
FEATURES:
- New provider:
tls
- A utility provider for generating TLS keys/self-signed certificates for development and testing (#2778) - New provider:
dyn
- Manage DNS records on Dyn - New resource:
aws_cloudformation_stack
(#2636) - New resource:
aws_cloudtrail
(#3094), (#4010) - New resource:
aws_route
(#3548) - New resource:
aws_codecommit_repository
(#3274) - New resource:
aws_kinesis_firehose_delivery_stream
(#3833) - New resource:
google_sql_database
andgoogle_sql_database_instance
(#3617) - New resource:
google_compute_global_address
(#3701) - New resource:
google_compute_https_health_check
(#3883) - New resource:
google_compute_ssl_certificate
(#3723) - New resource:
google_compute_url_map
(#3722) - New resource:
google_compute_target_http_proxy
(#3727) - New resource:
google_compute_target_https_proxy
(#3728) - New resource:
google_compute_global_forwarding_rule
(#3702) - New resource:
openstack_networking_port_v2
(#3731) - New interpolation function:
coalesce
(#3814)
IMPROVEMENTS:
- core: Improve message to list only resources which will be destroyed when using
--target
(#3859) - connection/ssh: Accept
private_key
contents instead of paths (#3846) - provider/google:
preemptible
option for instance_template (#3667) - provider/google: Accurate Terraform Version (#3554)
- provider/google: Simplified auth (DefaultClient support) (#3553)
- provider/google:
automatic_restart
,preemptible
,on_host_maintenance
options (#3643) - provider/google: Read credentials as contents instead of path (#3901)
- null_resource: Enhance and document [GH-3244, GH-3659]
- provider/aws: Add CORS settings to S3 bucket (#3387)
- provider/aws: Add notification topic ARN for ElastiCache clusters (#3674)
- provider/aws: Add
kinesis_endpoint
for configuring Kinesis (#3255) - provider/aws: Add a computed ARN for S3 Buckets (#3685)
- provider/aws: Add S3 support for Lambda Function resource (#3794)
- provider/aws: Add
name_prefix
option to launch configurations (#3802) - provider/aws: Add support for group name and path changes with IAM group update function (#3237)
- provider/aws: Provide
source_security_group_id
for ELBs inside a VPC (#3780) - provider/aws: Add snapshot window and retention limits for ElastiCache (Redis) (#3707)
- provider/aws: Add username updates for
aws_iam_user
(#3227) - provider/aws: Add AutoMinorVersionUpgrade to RDS Instances (#3677)
- provider/aws: Add
access_logs
to ELB resource (#3756) - provider/aws: Add a retry function to rescue an error in creating Autoscaling Lifecycle Hooks (#3694)
- provider/aws:
engine_version
is now optional for DB Instance (#3744) - provider/aws: Add configuration to enable copying RDS tags to final snapshot (#3529)
- provider/aws: RDS Cluster additions (
backup_retention_period
,preferred_backup_window
,preferred_maintenance_window
) (#3757) - provider/aws: Document and validate ELB
ssl_certificate_id
and protocol requirements (#3887) - provider/azure: Read
publish_settings
as contents instead of path (#3899) - provider/openstack: Use IPv4 as the default IP version for subnets (#3091)
- provider/aws: Apply security group after restoring
db_instance
from snapshot (#3513) - provider/aws: Make the AutoScalingGroup
name
optional (#3710) - provider/openstack: Add "delete on termination" boot-from-volume option (#3232)
- provider/digitalocean: Make
user_data
force a new droplet (#3740) - provider/vsphere: Do not add network interfaces by default (#3652)
- provider/openstack: Configure Fixed IPs through ports (#3772)
- provider/openstack: Specify a port ID on a Router Interface (#3903)
- provider/openstack: Make LBaaS Virtual IP computed (#3927)
BUG FIXES:
terraform remote config
: update--help
output (#3632)- core: Modules on Git branches now update properly (#1568)
- core: Fix issue preventing input prompts for unset variables during plan (#3843)
- core: Fix issue preventing input prompts for unset variables during refresh (#4017)
- core: Orphan resources can now be targets (#3912)
- helper/schema: Skip StateFunc when value is nil (#4002)
- provider/google: Timeout when deleting large
instance_group_manager
(#3591) - provider/aws: Fix issue with order of Termination Policies in AutoScaling Groups. This will introduce plans on upgrade to this version, in order to correct the ordering (#2890)
- provider/aws: Allow cluster name, not only ARN for
aws_ecs_service
(#3668) - provider/aws: Fix a bug where a non-lower-cased
maintenance_window
can cause unnecessary planned changes (#4020) - provider/aws: Only set
weight
on anaws_route53_record
if it has been set in configuration (#3900) - provider/aws: Ignore association not existing on route table destroy (#3615)
- provider/aws: Fix policy encoding issue with SNS Topics (#3700)
- provider/aws: Correctly export ARN in
aws_iam_saml_provider
(#3827) - provider/aws: Fix issue deleting users who are attached to a group (#4005)
- provider/aws: Fix crash in Route53 Record if Zone not found (#3945)
- provider/aws: Retry deleting IAM Server Cert on dependency violation (#3898)
- provider/aws: Update Spot Instance request to provide connection information (#3940)
- provider/aws: Fix typo in error checking for IAM Policy Attachments (#3970)
- provider/aws: Fix issue with LB Cookie Stickiness and empty expiration period (#3908)
- provider/aws: Tolerate ElastiCache clusters being deleted outside Terraform (#3767)
- provider/aws: Downcase Route 53 record names in state file to match API output (#3574)
- provider/aws: Fix issue that could occur if no ECS Cluster was found for a given name (#3829)
- provider/aws: Fix issue with SNS topic policy if omitted (#3777)
- provider/aws: Support scratch volumes in
aws_ecs_task_definition
(#3810) - provider/aws: Treat
aws_ecs_service
w/ Status==INACTIVE as deleted (#3828) - provider/aws: Expand ~ to homedir in
aws_s3_bucket_object.source
(#3910) - provider/aws: Fix issue with updating the
aws_ecs_task_definition
whereaws_ecs_service
didn't wait for a new computed ARN (#3924) - provider/aws: Prevent crashing when deleting
aws_ecs_service
that is already gone (#3914) - provider/aws: Allow spaces in
aws_db_subnet_group.name
(undocumented in the API) (#3955) - provider/aws: Make VPC ID required on subnets (#4021)
- provider/azure: Various bug fixes (#3695)
- provider/digitalocean: Fix issue preventing SSH fingerprints from working (#3633)
- provider/digitalocean: Fix the DigitalOcean Droplet 404 potential on refresh of state (#3768)
- provider/openstack: Fix several issues causing unresolvable diffs (#3440)
- provider/openstack: Safely delete security groups (#3696)
- provider/openstack: Ignore order of
security_groups
in instance (#3651) - provider/vsphere: Fix d.SetConnInfo error in case of a missing IP address (#3636)
- provider/openstack: Fix boot from volume (#3206)
- provider/openstack: Fix crashing when image is no longer accessible (#2189)
- provider/openstack: Better handling of network resource state changes (#3712)
- provider/openstack: Fix crashing when no security group is specified (#3801)
- provider/packet: Fix issue that could cause errors when provisioning many devices at once (#3847)
- provider/packet: Fix connection information for devices, allowing provisioners to run (#3948)
- provider/openstack: Fix issue preventing security group rules from being removed (#3796)
- provider/template:
template_file
: source contents instead of path (#3909)
FEATURES:
- New interpolation functions:
cidrhost
,cidrnetmask
andcidrsubnet
(#3127)
IMPROVEMENTS:
- "forces new resource" now highlighted in plan output (#3136)
BUG FIXES:
- helper/schema: Better error message for assigning list/map to string (#3009)
- remote/state/atlas: Additional remote state conflict handling for semantically neutral state changes (#3603)
FEATURES:
- New resources:
aws_codeploy_app
andaws_codeploy_deployment_group
(#2783) - New remote state backend:
etcd
(#3487) - New interpolation functions:
upper
andlower
(#3558)
BUG FIXES:
- core: Fix remote state conflicts caused by ambiguity in ordering of deeply nested modules (#3573)
- core: Fix remote state conflicts caused by state metadata differences (#3569)
- core: Avoid using http.DefaultClient (#3532)
INTERNAL IMPROVEMENTS:
- provider/digitalocean: use official Go client (#3333)
- core: extract module fetching to external library (#3516)
FEATURES:
- New provider:
rundeck
(#2412) - New provider:
packet
(#2260), (#3472) - New provider:
vsphere
: Initial support for a VM resource (#3419) - New resource:
cloudstack_loadbalancer_rule
(#2934) - New resource:
google_compute_project_metadata
(#3065) - New resources:
aws_ami
,aws_ami_copy
,aws_ami_from_instance
(#2784) - New resources:
aws_cloudwatch_log_group
(#2415) - New resource:
google_storage_bucket_object
(#3192) - New resources:
google_compute_vpn_gateway
,google_compute_vpn_tunnel
(#3213) - New resources:
google_storage_bucket_acl
,google_storage_object_acl
(#3272) - New resource:
aws_iam_saml_provider
(#3156) - New resources:
aws_efs_file_system
andaws_efs_mount_target
(#2196) - New resources:
aws_opsworks_*
(#2162) - New resource:
aws_elasticsearch_domain
(#3443) - New resource:
aws_directory_service_directory
(#3228) - New resource:
aws_autoscaling_lifecycle_hook
(#3351) - New resource:
aws_placement_group
(#3457) - New resource:
aws_glacier_vault
(#3491) - New lifecycle flag:
ignore_changes
(#2525)
IMPROVEMENTS:
- core: Add a function to find the index of an element in a list. (#2704)
- core: Print all outputs when
terraform output
is called with no arguments (#2920) - core: In plan output summary, count resource replacement as Add/Remove instead of Change (#3173)
- core: Add interpolation functions for base64 encoding and decoding. (#3325)
- core: Expose parallelism as a CLI option instead of a hard-coding the default of 10 (#3365)
- core: Add interpolation function
compact
, to remove empty elements from a list. (#3239), (#3479) - core: Allow filtering of log output by level, using e.g.
TF_LOG=INFO
(#3380) - provider/aws: Add
instance_initiated_shutdown_behavior
to AWS Instance (#2887) - provider/aws: Support IAM role names (previously just ARNs) in
aws_ecs_service.iam_role
(#3061) - provider/aws: Add update method to RDS Subnet groups, can modify subnets without recreating (#3053)
- provider/aws: Paginate notifications returned for ASG Notifications (#3043)
- provider/aws: Adds additional S3 Bucket Object inputs (#3265)
- provider/aws: add
ses_smtp_password
toaws_iam_access_key
(#3165) - provider/aws: read
iam_instance_profile
foraws_instance
and save to state (#3167) - provider/aws: allow
instance
to be computed inaws_eip
(#3036) - provider/aws: Add
versioning
option toaws_s3_bucket
(#2942) - provider/aws: Add
configuration_endpoint
toaws_elasticache_cluster
(#3250) - provider/aws: Add validation for
app_cookie_stickiness_policy.name
(#3277) - provider/aws: Add validation for
db_parameter_group.name
(#3279) - provider/aws: Set DynamoDB Table ARN after creation (#3500)
- provider/aws:
aws_s3_bucket_object
allows interpolated content to be set with newcontent
attribute. (#3200) - provider/aws: Allow tags for
aws_kinesis_stream
resource. (#3397) - provider/aws: Configurable capacity waiting duration for ASGs (#3191)
- provider/aws: Allow non-persistent Spot Requests (#3311)
- provider/aws: Support tags for AWS DB subnet group (#3138)
- provider/cloudstack: Add
project
parameter tocloudstack_vpc
,cloudstack_network
,cloudstack_ipaddress
andcloudstack_disk
(#3035) - provider/openstack: add functionality to attach FloatingIP to Port (#1788)
- provider/google: Can now do multi-region deployments without using multiple providers (#3258)
- remote/s3: Allow canned ACLs to be set on state objects. (#3233)
- remote/s3: Remote state is stored in S3 with
Content-Type: application/json
(#3385)
BUG FIXES:
- core: Fix problems referencing list attributes in interpolations (#2157)
- core: don't error on computed value during input walk (#2988)
- core: Ignore missing variables during destroy phase (#3393)
- provider/google: Crashes with interface conversion in GCE Instance Template (#3027)
- provider/google: Convert int to int64 when building the GKE cluster.NodeConfig struct (#2978)
- provider/google: google_compute_instance_template.network_interface.network should be a URL (#3226)
- provider/aws: Retry creation of
aws_ecs_service
if IAM policy isn't ready yet (#3061) - provider/aws: Fix issue with mixed capitalization for RDS Instances (#3053)
- provider/aws: Fix issue with RDS to allow major version upgrades (#3053)
- provider/aws: Fix shard_count in
aws_kinesis_stream
(#2986) - provider/aws: Fix issue with
key_name
and using VPCs with spot instance requests (#2954) - provider/aws: Fix unresolvable diffs coming from
aws_elasticache_cluster
names being downcased by AWS (#3120) - provider/aws: Read instance source_dest_check and save to state (#3152)
- provider/aws: Allow
weight = 0
in Route53 records (#3196) - provider/aws: Normalize aws_elasticache_cluster id to lowercase, allowing convergence. (#3235)
- provider/aws: Fix ValidateAccountId for IAM Instance Profiles (#3313)
- provider/aws: Update Security Group Rules to Version 2 (#3019)
- provider/aws: Migrate KeyPair to version 1, fixing issue with using
file()
(#3470) - provider/aws: Fix force_delete on autoscaling groups (#3485)
- provider/aws: Fix crash with VPC Peering connections (#3490)
- provider/aws: fix bug with reading GSIs from dynamodb (#3300)
- provider/docker: Fix issue preventing private images from being referenced (#2619)
- provider/digitalocean: Fix issue causing unnecessary diffs based on droplet slugsize case (#3284)
- provider/openstack: add state 'downloading' to list of expected states in
blockstorage_volume_v1
creation (#2866) - provider/openstack: remove security groups (by name) before adding security groups (by id) (#2008)
INTERNAL IMPROVEMENTS:
- core: Makefile target "plugin-dev" for building just one plugin. (#3229)
- helper/schema: Don't allow
Update
func if no attributes can actually be updated, per schema. (#3288) - helper/schema: Default hashing function for sets (#3018)
- helper/multierror: Remove in favor of github.com/hashicorp/go-multierror. (#3336)
BUG FIXES:
- core: Skip all descendents after error, not just children; helps prevent confusing additional errors/crashes after initial failure (#2963)
- core: fix deadlock possibility when both a module and a dependent resource are removed in the same run (#2968)
- provider/aws: Fix issue with authenticating when using IAM profiles (#2959)
FEATURES:
- New resource:
google_compute_instance_group_manager
(#2868) - New resource:
google_compute_autoscaler
(#2868) - New resource:
aws_s3_bucket_object
(#2898)
IMPROVEMENTS:
- core: Add resource IDs to errors coming from
apply
/refresh
(#2815) - provider/aws: Validate credentials before walking the graph (#2730)
- provider/aws: Added website_domain for S3 buckets (#2210)
- provider/aws: ELB names are now optional, and generated by Terraform if omitted (#2571)
- provider/aws: Downcase RDS engine names to prevent continuous diffs (#2745)
- provider/aws: Added
source_dest_check
attribute to the aws_network_interface (#2741) - provider/aws: Clean up externally removed Launch Configurations (#2806)
- provider/aws: Allow configuration of the DynamoDB Endpoint (#2825)
- provider/aws: Compute private ip addresses of ENIs if they are not specified (#2743)
- provider/aws: Add
arn
attribute for DynamoDB tables (#2924) - provider/aws: Fail silently when account validation fails while from instance profile (#3001)
- provider/azure: Allow
settings_file
to accept XML string (#2922) - provider/azure: Provide a simpler error when using a Platform Image without a Storage Service (#2861)
- provider/google:
account_file
is now expected to be JSON. Paths are still supported for backwards compatibility. (#2839)
BUG FIXES:
- core: Prevent error duplication in
apply
(#2815) - core: Fix crash when a provider validation adds a warning (#2878)
- provider/aws: Fix issue with toggling monitoring in AWS Instances (#2794)
- provider/aws: Fix issue with Spot Instance Requests and cancellation (#2805)
- provider/aws: Fix issue with checking for ElastiCache cluster cache node status (#2842)
- provider/aws: Fix issue when unable to find a Root Block Device name of an Instance Backed AMI (#2646)
- provider/dnsimple: Domain and type should force new records (#2777)
- provider/aws: Fix issue with IAM Server Certificates and Chains (#2871)
- provider/aws: Fix issue with IAM Server Certificates when using
path
(#2871) - provider/aws: Fix issue in Security Group Rules when the Security Group is not found (#2897)
- provider/aws: allow external ENI attachments (#2943)
- provider/aws: Fix issue with S3 Buckets, and throwing an error when not found (#2925)
FEATURES:
IMPROVEMENTS:
- connection/ssh: Print SSH bastion host details to output (#2684)
- provider/aws: Create RDS databases from snapshots (#2062)
- provider/aws: Add support for restoring from Redis backup stored in S3 (#2634)
- provider/aws: Add
maintenance_window
to ElastiCache cluster (#2642) - provider/aws: Availability Zones are optional when specifying VPC Zone Identifiers in Auto Scaling Groups updates (#2724)
- provider/google: Add metadata_startup_script to google_compute_instance (#2375)
BUG FIXES:
- core: Don't prompt for variables with defaults (#2613)
- core: Return correct number of planned updates (#2620)
- core: Fix "provider not found" error that can occur while running a destroy plan with grandchildren modules (#2755)
- core: Fix UUID showing up in diff for computed splat (
foo.*.bar
) variables. (#2788) - core: Orphan modules that contain no resources (only other modules) are properly destroyed up to arbitrary depth (#2786)
- core: Fix "attribute not available" during destroy plans in cases where the parameter is passed between modules (#2775)
- core: Record schema version when destroy fails (#2923)
- connection/ssh: fix issue on machines with an SSH Agent available
preventing
key_file
from being read without explicitly settingagent = false
(#2615) - provider/aws: Allow uppercase characters in
aws_elb.name
(#2580) - provider/aws: Allow underscores in
aws_db_subnet_group.name
(undocumented by AWS) (#2604) - provider/aws: Allow dots in
aws_db_subnet_group.name
(undocumented by AWS) (#2665) - provider/aws: Fix issue with pending Spot Instance requests (#2640)
- provider/aws: Fix issue in AWS Classic environment with referencing external Security Groups (#2644)
- provider/aws: Bump internet gateway detach timeout (#2669)
- provider/aws: Fix issue with detecting differences in DB Parameters (#2728)
- provider/aws:
ecs_cluster
rename (recreation) and deletion is handled correctly (#2698) - provider/aws:
aws_route_table
ignores routes generated for VPC endpoints (#2695) - provider/aws: Fix issue with Launch Configurations and enable_monitoring (#2735)
- provider/openstack: allow empty api_key and endpoint_type (#2626)
- provisioner/chef: Fix permission denied error with ohai hints (#2781)
BACKWARDS INCOMPATIBILITIES:
- command/push: If a variable is already set within Atlas, it won't be
updated unless the
-overwrite
flag is present (#2373) - connection/ssh: The
agent
field now defaults totrue
if theSSH_AGENT_SOCK
environment variable is present. In other words,ssh-agent
support is now opt-out instead of opt-in functionality. (#2408) - provider/aws: If you were setting access and secret key to blank ("") to force Terraform to load credentials from another source such as the EC2 role, this will now error. Remove the blank lines and Terraform will load from other sources.
concat()
has been repurposed to combine lists instead of strings (old behavior of joining strings is maintained in this version but is deprecated, strings should be combined using interpolation syntax, like "${var.foo}{var.bar}") (#1790)
FEATURES:
- New provider:
azure
[GH-2052, GH-2053, GH-2372, GH-2380, GH-2394, GH-2515, GH-2530, GH-2562] - New resource:
aws_autoscaling_notification
(#2197) - New resource:
aws_autoscaling_policy
(#2201) - New resource:
aws_cloudwatch_metric_alarm
(#2201) - New resource:
aws_dynamodb_table
(#2121) - New resource:
aws_ecs_cluster
(#1803) - New resource:
aws_ecs_service
(#1803) - New resource:
aws_ecs_task_definition
[GH-1803, GH-2402] - New resource:
aws_elasticache_parameter_group
(#2276) - New resource:
aws_flow_log
(#2384) - New resource:
aws_iam_group_association
(#2273) - New resource:
aws_iam_policy_attachment
(#2395) - New resource:
aws_lambda_function
(#2170) - New resource:
aws_route53_delegation_set
(#1999) - New resource:
aws_route53_health_check
(#2226) - New resource:
aws_spot_instance_request
(#2263) - New resource:
cloudstack_ssh_keypair
(#2004) - New remote state backend:
swift
: You can now store remote state in a OpenStack Swift. (#2254) - command/output: support display of module outputs (#2102)
- core:
keys()
andvalues()
funcs for map variables (#2198) - connection/ssh: SSH bastion host support and ssh-agent forwarding (#2425)
IMPROVEMENTS:
- core: HTTP remote state now accepts
skip_cert_verification
option to ignore TLS cert verification. (#2214) - core: S3 remote state now accepts the 'encrypt' option for SSE (#2405)
- core:
plan
now reports sum of resources to be changed/created/destroyed (#2458) - core: Change string list representation so we can distinguish empty, single element lists (#2504)
- core: Properly close provider and provisioner plugin connections [GH-2406, GH-2527]
- provider/aws: AutoScaling groups now support updating Load Balancers without recreation (#2472)
- provider/aws: Allow more in-place updates for ElastiCache cluster without recreating (#2469)
- provider/aws: ElastiCache Subnet Groups can be updated without destroying first (#2191)
- provider/aws: Normalize
certificate_chain
inaws_iam_server_certificate
to prevent unnecessary replacement. (#2411) - provider/aws:
aws_instance
supports `monitoring' (#2489) - provider/aws:
aws_launch_configuration
now supportsenable_monitoring
(#2410) - provider/aws: Show outputs after
terraform refresh
(#2347) - provider/aws: Add backoff/throttling during DynamoDB creation (#2462)
- provider/aws: Add validation for aws_vpc.cidr_block (#2514)
- provider/aws: Add validation for aws_db_subnet_group.name (#2513)
- provider/aws: Add validation for aws_db_instance.identifier (#2516)
- provider/aws: Add validation for aws_elb.name (#2517)
- provider/aws: Add validation for aws_security_group (name+description) (#2518)
- provider/aws: Add validation for aws_launch_configuration (#2519)
- provider/aws: Add validation for aws_autoscaling_group.name (#2520)
- provider/aws: Add validation for aws_iam_role.name (#2521)
- provider/aws: Add validation for aws_iam_role_policy.name (#2552)
- provider/aws: Add validation for aws_iam_instance_profile.name (#2553)
- provider/aws: aws_auto_scaling_group.default_cooldown no longer requires resource replacement (#2510)
- provider/aws: add AH and ESP protocol integers (#2321)
- provider/docker:
docker_container
has theprivileged
option. (#2227) - provider/openstack: allow
OS_AUTH_TOKEN
environment variable to set the openstackapi_key
field (#2234) - provider/openstack: Can now configure endpoint type (public, admin, internal) (#2262)
- provider/cloudstack:
cloudstack_instance
now supports projects (#2115) - provisioner/chef: Added a
os_type
to specifically specify the target OS (#2483) - provisioner/chef: Added a
ohai_hints
option to upload hint files (#2487)
BUG FIXES:
- core: lifecycle
prevent_destroy
can be any value that can be coerced into a bool (#2268) - core: matching provider types in sibling modules won't override each other's config. (#2464)
- core: computed provider configurations now properly validate (#2457)
- core: orphan (commented out) resource dependencies are destroyed in the correct order (#2453)
- core: validate object types in plugins are actually objects (#2450)
- core: fix
-no-color
flag in subcommands (#2414) - core: Fix error of 'attribute not found for variable' when a computed resource attribute is used as a parameter to a module (#2477)
- core: moduled orphans will properly inherit provider configs (#2476)
- core: modules with provider aliases work properly if the parent doesn't implement those aliases (#2475)
- core: unknown resource attributes passed in as parameters to modules now error (#2478)
- core: better error messages for missing variables (#2479)
- core: removed set items now properly appear in diffs and applies (#2507)
- core: '*' will not be added as part of the variable name when you attempt multiplication without a space (#2505)
- core: fix target dependency calculation across module boundaries (#2555)
- command/*: fixed bug where variable input was not asked for unset vars if terraform.tfvars existed (#2502)
- command/apply: prevent output duplication when reporting errors (#2267)
- command/apply: destroyed orphan resources are properly counted (#2506)
- provider/aws: loading credentials from the environment (vars, EC2 role, etc.) is more robust and will not ask for credentials from stdin (#1841)
- provider/aws: fix panic when route has no
cidr_block
(#2215) - provider/aws: fix issue preventing destruction of IAM Roles (#2177)
- provider/aws: fix issue where Security Group Rules could collide and fail to save to the state file correctly (#2376)
- provider/aws: fix issue preventing destruction self referencing Securtity Group Rules (#2305)
- provider/aws: fix issue causing perpetual diff on ELB listeners when non-lowercase protocol strings were used (#2246)
- provider/aws: corrected frankfurt S3 website region (#2259)
- provider/aws:
aws_elasticache_cluster
port is required (#2160) - provider/aws: Handle AMIs where RootBlockDevice does not appear in the BlockDeviceMapping, preventing root_block_device from working (#2271)
- provider/aws: fix
terraform show
with remote state (#2371) - provider/aws: detect
instance_type
drift onaws_instance
(#2374) - provider/aws: fix crash when
security_group_rule
referenced non-existent security group (#2434) - provider/aws:
aws_launch_configuration
retries if IAM instance profile is not ready yet. (#2452) - provider/aws:
fqdn
is populated during creation foraws_route53_record
(#2528) - provider/aws: retry VPC delete on DependencyViolation due to eventual consistency (#2532)
- provider/aws: VPC peering connections in "failed" state are deleted (#2544)
- provider/aws: EIP deletion works if it was manually disassociated (#2543)
- provider/aws:
elasticache_subnet_group.subnet_ids
is now a required argument (#2534) - provider/aws: handle nil response from VPN connection describes (#2533)
- provider/cloudflare: manual record deletion doesn't cause error (#2545)
- provider/digitalocean: handle case where droplet is deleted outside of terraform (#2497)
- provider/dme: No longer an error if record deleted manually (#2546)
- provider/docker: Fix issues when using containers with links (#2327)
- provider/openstack: fix panic case if API returns nil network (#2448)
- provider/template: fix issue causing "unknown variable" rendering errors when an existing set of template variables is changed (#2386)
- provisioner/chef: improve the decoding logic to prevent parameter not found errors (#2206)
IMPROVEMENTS:
- New resource:
aws_kinesis_stream
(#2110) - New resource:
aws_iam_server_certificate
(#2086) - New resource:
aws_sqs_queue
(#1939) - New resource:
aws_sns_topic
(#1974) - New resource:
aws_sns_topic_subscription
(#1974) - New resource:
aws_volume_attachment
(#2050) - New resource:
google_storage_bucket
(#2060) - provider/aws: support ec2 termination protection (#1988)
- provider/aws: support for RDS Read Replicas (#1946)
- provider/aws:
aws_s3_bucket
add support forpolicy
(#1992) - provider/aws:
aws_ebs_volume
add support fortags
(#2135) - provider/aws:
aws_elasticache_cluster
Confirm node status before reporting available - provider/aws:
aws_network_acl
Add support for ICMP Protocol (#2148) - provider/aws: New
force_destroy
parameter for S3 buckets, to destroy Buckets that contain objects (#2007) - provider/aws: switching
health_check_type
on ASGs no longer requires resource refresh (#2147) - provider/aws: ignore empty
vpc_security_group_ids
onaws_instance
(#2311)
BUG FIXES:
- provider/aws: Correctly handle AWS keypairs which no longer exist (#2032)
- provider/aws: Fix issue with restoring an Instance from snapshot ID (#2120)
- provider/template: store relative path in the state (#2038)
- provisioner/chef: fix interpolation in the Chef provisioner (#2168)
- provisioner/remote-exec: Don't prepend shebang on scripts that already have one (#2041)
FEATURES:
- Chef provisioning: You can now provision new hosts (both Linux and Windows) with Chef using a native provisioner (#1868)
IMPROVEMENTS:
- New config function:
formatlist
- Format lists in a similar way toformat
. Useful for creating URLs from a list of IPs. (#1829) - New resource:
aws_route53_zone_association
- provider/aws:
aws_autoscaling_group
can wait for capacity in ELB viamin_elb_capacity
(#1970) - provider/aws:
aws_db_instances
supportslicense_model
(#1966) - provider/aws:
aws_elasticache_cluster
add support for Tags (#1965) - provider/aws:
aws_network_acl
Network ACLs can be applied to multiple subnets (#1931) - provider/aws:
aws_s3_bucket
exportshosted_zone_id
andregion
(#1865) - provider/aws:
aws_s3_bucket
add support for websiteredirect_all_requests_to
(#1909) - provider/aws:
aws_route53_record
exportsfqdn
(#1847) - provider/aws:
aws_route53_zone
can create private hosted zones (#1526) - provider/google:
google_compute_instance
scratch
attribute added (#1920)
BUG FIXES:
- core: fix "resource not found" for interpolation issues with modules
- core: fix unflattenable error for orphans (#1922)
- core: fix deadlock with create-before-destroy + modules (#1949)
- core: fix "no roots found" error with create-before-destroy (#1953)
- core: variables set with environment variables won't validate as not set without a default (#1930)
- core: resources with a blank ID in the state are now assumed to not exist (#1905)
- command/push: local vars override remote ones (#1881)
- provider/aws: Mark
aws_security_group
description asForceNew
(#1871) - provider/aws:
aws_db_instance
ARN value is correct (#1910) - provider/aws:
aws_db_instance
only submit modify request if there is a change. (#1906) - provider/aws:
aws_elasticache_cluster
export missing information on cluster nodes (#1965) - provider/aws: bad AMI on a launch configuration won't block refresh (#1901)
- provider/aws:
aws_security_group
+aws_subnet
- destroy timeout increased to prevent DependencyViolation errors. (#1886) - provider/google:
google_compute_instance
Local SSDs no-longer cause crash (#1088) - provider/google:
google_http_health_check
Defaults now driven from Terraform, avoids errors on update (#1894) - provider/google:
google_compute_template
Update Instance Template network definition to match changes to Instance (#980) - provider/template: Fix infinite diff (#1898)
This version was never released since we accidentally skipped it!
BACKWARDS INCOMPATIBILITIES:
- provider/aws: Terraform now remove the default egress rule created by AWS in a new security group.
FEATURES:
- Multi-provider (a.k.a multi-region): Multiple instances of a single provider can be configured so resources can apply to different settings. As an example, this allows Terraform to manage multiple regions with AWS.
- Environmental variables to set variables: Environment variables can be
used to set variables. The environment variables must be in the format
TF_VAR_name
and this will be checked last for a value. - New remote state backend:
s3
: You can now store remote state in an S3 bucket. (#1723) - Automatic AWS retries: This release includes a lot of improvement around automatic retries of transient errors in AWS. The number of retry attempts is also configurable.
- Templates: A new
template_file
resource allows long strings needing variable interpolation to be moved into files. (#1778) - Provision with WinRM: Provisioners can now run remote commands on Windows hosts. (#1483)
IMPROVEMENTS:
- New config function:
length
- Get the length of a string or a list. Useful in conjunction withsplit
. (#1495) - New resource:
aws_app_cookie_stickiness_policy
- New resource:
aws_customer_gateway
- New resource:
aws_ebs_volume
- New resource:
aws_elasticache_cluster
- New resource:
aws_elasticache_security_group
- New resource:
aws_elasticache_subnet_group
- New resource:
aws_iam_access_key
- New resource:
aws_iam_group_policy
- New resource:
aws_iam_group
- New resource:
aws_iam_instance_profile
- New resource:
aws_iam_policy
- New resource:
aws_iam_role_policy
- New resource:
aws_iam_role
- New resource:
aws_iam_user_policy
- New resource:
aws_iam_user
- New resource:
aws_lb_cookie_stickiness_policy
- New resource:
aws_proxy_protocol_policy
- New resource:
aws_security_group_rule
- New resource:
aws_vpc_dhcp_options_association
- New resource:
aws_vpc_dhcp_options
- New resource:
aws_vpn_connection_route
- New resource:
google_dns_managed_zone
- New resource:
google_dns_record_set
- Migrate to upstream AWS SDK: Migrate the AWS provider to
awslabs/aws-sdk-go,
the official
awslabs
library. Previously we had forked the library for stability whileawslabs
refactored. Now that work has completed, and we've migrated back to the upstream version. - core: Improve error message on diff mismatch (#1501)
- provisioner/file: expand
~
in source path (#1569) - provider/aws: Better retry logic, now retries up to 11 times by default with exponentional backoff. This number is configurable. (#1787)
- provider/aws: Improved credential detection (#1470)
- provider/aws: Can specify a
token
via the config file (#1601) - provider/aws: Added new
vpc_security_group_ids
attribute for AWS Instances. If using a VPC, you can now modify the security groups for that Instance without destroying it (#1539) - provider/aws: White or blacklist account IDs that can be used to protect against accidents. (#1595)
- provider/aws: Add a subset of IAM resources (#939)
- provider/aws:
aws_autoscaling_group
retries deletes through "in progress" errors (#1840) - provider/aws:
aws_autoscaling_group
waits for healthy capacity during ASG creation (#1839) - provider/aws:
aws_instance
supports placement groups (#1358) - provider/aws:
aws_eip
supports network interface attachment (#1681) - provider/aws:
aws_elb
supports in-place changing of listeners (#1619) - provider/aws:
aws_elb
supports connection draining settings (#1502) - provider/aws:
aws_elb
increase default idle timeout to 60s (#1646) - provider/aws:
aws_key_pair
name can be omitted and generated (#1751) - provider/aws:
aws_network_acl
improved validation for network ACL ports and protocols (#1798) (#1808) - provider/aws:
aws_route_table
can target network interfaces (#968) - provider/aws:
aws_route_table
can specify propagating VGWs (#1516) - provider/aws:
aws_route53_record
supports weighted sets (#1578) - provider/aws:
aws_route53_zone
exports nameservers (#1525) - provider/aws:
aws_s3_bucket
website support (#1738) - provider/aws:
aws_security_group
name becomes optional and can be automatically set to a unique identifier; this helps withcreate_before_destroy
scenarios (#1632) - provider/aws:
aws_security_group
description becomes optional with a static default value (#1632) - provider/aws: automatically set the private IP as the SSH address if not specified and no public IP is available (#1623)
- provider/aws:
aws_elb
exportssource_security_group
field (#1708) - provider/aws:
aws_route53_record
supports alias targeting (#1775) - provider/aws: Remove default AWS egress rule for newly created Security Groups (#1765)
- provider/consul: add
scheme
configuration argument (#1838) - provider/docker:
docker_container
can specify links (#1564) - provider/google:
resource_compute_disk
supports snapshots (#1426) - provider/google:
resource_compute_instance
supports specifying the device name (#1426) - provider/openstack: Floating IP support for LBaaS (#1550)
- provider/openstack: Add AZ to
openstack_blockstorage_volume_v1
(#1726)
BUG FIXES:
- core: Fix graph cycle issues surrounding modules (#1582) (#1637)
- core: math on arbitrary variables works if first operand isn't a numeric primitive. (#1381)
- core: avoid unnecessary cycles by pruning tainted destroys from graph if there are no tainted resources (#1475)
- core: fix issue where destroy nodes weren't pruned in specific edge cases around matching prefixes, which could cause cycles (#1527)
- core: fix issue causing diff mismatch errors in certain scenarios during resource replacement (#1515)
- core: dependencies on resources with a different index work when count > 1 (#1540)
- core: don't panic if variable default type is invalid (#1344)
- core: fix perpetual diff issue for computed maps that are empty (#1607)
- core: validation added to check for
self
variables in modules (#1609) - core: fix edge case where validation didn't pick up unknown fields if the value was computed (#1507)
- core: Fix issue where values in sets on resources couldn't contain hyphens. (#1641)
- core: Outputs removed from the config are removed from the state (#1714)
- core: Validate against the worst-case graph during plan phase to catch cycles that would previously only show up during apply (#1655)
- core: Referencing invalid module output in module validates (#1448)
- command: remote states with uppercase types work (#1356)
- provider/aws: Support
AWS_SECURITY_TOKEN
env var again (#1785) - provider/aws: Don't save "instance" for EIP if association fails (#1776)
- provider/aws: launch configuration ID set after create success (#1518)
- provider/aws: Fixed an issue with creating ELBs without any tags (#1580)
- provider/aws: Fix issue in Security Groups with empty IPRanges (#1612)
- provider/aws: manually deleted S3 buckets are refreshed properly (#1574)
- provider/aws: only check for EIP allocation ID in VPC (#1555)
- provider/aws: raw protocol numbers work in
aws_network_acl
(#1435) - provider/aws: Block devices can be encrypted (#1718)
- provider/aws: ASG health check grace period can be updated in-place (#1682)
- provider/aws: ELB security groups can be updated in-place (#1662)
- provider/aws:
aws_main_route_table_association
can be deleted manually (#1806) - provider/docker: image can reference more complex image addresses, such as with private repos with ports (#1818)
- provider/openstack: region config is not required (#1441)
- provider/openstack:
enable_dhcp
for networking subnet should be bool (#1741) - provisioner/remote-exec: add random number to uploaded script path so that parallel provisions work (#1588)
- provisioner/remote-exec: chmod the script to 0755 properly (#1796)
BUG FIXES:
- core: refresh won't remove outputs from state file (#1369)
- core: clarify "unknown variable" error (#1480)
- core: properly merge parent provider configs when asking for input
- provider/aws: fix panic possibility if RDS DB name is empty (#1460)
- provider/aws: fix issue detecting credentials for some resources (#1470)
- provider/google: fix issue causing unresolvable diffs when using legacy
network
field ongoogle_compute_instance
(#1458)
IMPROVEMENTS:
- provider/aws: Route 53 records can now update
ttl
andrecords
attributes without destroying/creating the record (#1396) - provider/aws: Support changing additional attributes of RDS databases without forcing a new resource (#1382)
BUG FIXES:
- core: module paths in ".terraform" are consistent across different systems so copying your ".terraform" folder works. (#1418)
- core: don't validate providers too early when nested in a module (#1380)
- core: fix race condition in
count.index
interpolation (#1454) - core: properly initialize provisioners, fixing resource targeting during destroy (#1544)
- command/push: don't ask for input if terraform.tfvars is present
- command/remote-config: remove spurrious error "nil" when initializing remote state on a new configuration. (#1392)
- provider/aws: Fix issue with Route 53 and pre-existing Hosted Zones (#1415)
- provider/aws: Fix refresh issue in Route 53 hosted zone (#1384)
- provider/aws: Fix issue when changing map-public-ip in Subnets #1234
- provider/aws: Fix issue finding db subnets (#1377)
- provider/aws: Fix issues with
*_block_device
attributes on instances and launch configs creating unresolvable diffs when certain optional parameters were omitted from the config (#1445) - provider/aws: Fix issue with
aws_launch_configuration
causing an unnecessary diff for pre-0.4 environments (#1371) - provider/aws: Fix several related issues with
aws_launch_configuration
causing unresolvable diffs (#1444) - provider/aws: Fix issue preventing launch configurations from being valid in EC2 Classic (#1412)
- provider/aws: Fix issue in updating Route 53 records on refresh/read. (#1430)
- provider/docker: Don't ask for
cert_path
input on every run (#1432) - provider/google: Fix issue causing unresolvable diff on instances with
network_interface
(#1427)
BACKWARDS INCOMPATIBILITIES:
- Commands
terraform push
andterraform pull
are now nested under theremote
command:terraform remote push
andterraform remote pull
. The oldremote
functionality is now atterraform remote config
. This consolidates all remote state management under one command. - Period-prefixed configuration files are now ignored. This might break existing Terraform configurations if you had period-prefixed files.
- The
block_device
attribute ofaws_instance
has been removed in favor of three more specific attributes to specify block device mappings:root_block_device
,ebs_block_device
, andephemeral_block_device
. Configurations using the old attribute will generate a validation error indicating that they must be updated to use the new fields (#1045).
FEATURES:
- New provider:
dme
(DNSMadeEasy) (#855) - New provider:
docker
(Docker) - Manage container lifecycle using the standard Docker API. (#855) - New provider:
openstack
(OpenStack) - Interact with the many resources provided by OpenStack. (#924) - New feature:
terraform_remote_state
resource - Reference remote states from other Terraform runs to use Terraform outputs as inputs into another Terraform run. - New command:
taint
- Manually mark a resource as tainted, causing a destroy and recreate on the next plan/apply. - New resource:
aws_vpn_gateway
(#1137) - New resource:
aws_elastic_network_interfaces
(#1149) - Self-variables can be used to reference the current resource's
attributes within a provisioner. Ex.
${self.private_ip_address}
(#1033) - Continuous state saving during
terraform apply
. The state file is continuously updated as apply is running, meaning that the state is less likely to become corrupt in a catastrophic case: terraform panic or system killing Terraform. - Math operations in interpolations. You can now do things like
${count.index + 1}
. (#1068) - New AWS SDK: Move to
aws-sdk-go
(hashicorp/aws-sdk-go), a fork of the officialawslabs
repo. We forked for stability whileawslabs
refactored the library, and will move back to the officially supported version in the next release.
IMPROVEMENTS:
- New config function:
format
- Format a string usingsprintf
format. (#1096) - New config function:
replace
- Search and replace string values. Search can be a regular expression. See documentation for more info. (#1029) - New config function:
split
- Split a value based on a delimiter. This is useful for faking lists as parameters to modules. - New resource:
digitalocean_ssh_key
(#1074) - config: Expand
~
with homedir infile()
paths (#1338) - core: The serial of the state is only updated if there is an actual change. This will lower the amount of state changing on things like refresh.
- core: Autoload
terraform.tfvars.json
as well asterraform.tfvars
(#1030) - core:
.tf
files that start with a period are now ignored. (#1227) - command/remote-config: After enabling remote state, a
pull
is automatically done initially. - providers/google: Add
size
option to disk blocks for instances. (#1284) - providers/aws: Improve support for tagging resources.
- providers/aws: Add a short syntax for Route 53 Record names, e.g.
www
instead ofwww.example.com
. - providers/aws: Improve dependency violation error handling, when deleting Internet Gateways or Auto Scaling groups (#1325).
- provider/aws: Add non-destructive updates to AWS RDS. You can now upgrade
engine_version
,parameter_group_name
, andmulti_az
without forcing a new database to be created.(#1341) - providers/aws: Full support for block device mappings on instances and launch configurations [GH-1045, GH-1364]
- provisioners/remote-exec: SSH agent support. (#1208)
BUG FIXES:
- core: module outputs can be used as inputs to other modules (#822)
- core: Self-referencing splat variables are no longer allowed in provisioners. (#795)(#868)
- core: Validate that
depends_on
doesn't contain interpolations. (#1015) - core: Module inputs can be non-strings. (#819)
- core: Fix invalid plan that resulted in "diffs don't match" error when a computed attribute was used as part of a set parameter. (#1073)
- core: Fix edge case where state containing both "resource" and "resource.0" would ignore the latter completely. (#1086)
- core: Modules with a source of a relative file path moving up directories work properly, i.e. "../a" (#1232)
- providers/aws: manually deleted VPC removes it from the state
- providers/aws:
source_dest_check
regression fixed (now works). (#1020) - providers/aws: Longer wait times for DB instances.
- providers/aws: Longer wait times for route53 records (30 mins). (#1164)
- providers/aws: Fix support for TXT records in Route 53. (#1213)
- providers/aws: Fix support for wildcard records in Route 53. (#1222)
- providers/aws: Fix issue with ignoring the 'self' attribute of a Security Group rule. (#1223)
- providers/aws: Fix issue with
sql_mode
in RDS parameter group always causing an update. (#1225) - providers/aws: Fix dependency violation with subnets and security groups (#1252)
- providers/aws: Fix issue with refreshing
db_subnet_groups
causing an error instead of updating state (#1254) - providers/aws: Prevent empty string to be used as default
health_check_type
(#1052) - providers/aws: Add tags on AWS IG creation, not just on update (#1176)
- providers/digitalocean: Waits until droplet is ready to be destroyed (#1057)
- providers/digitalocean: More lenient about 404's while waiting (#1062)
- providers/digitalocean: FQDN for domain records in CNAME, MX, NS, etc. Also fixes invalid updates in plans. (#863)
- providers/google: Network data in state was not being stored. (#1095)
- providers/heroku: Fix panic when config vars block was empty. (#1211)
PLUGIN CHANGES:
- New
helper/schema
fields for resources:Deprecated
andRemoved
allow plugins to generate warning or error messages when a given attribute is used.
IMPROVEMENTS:
- New resources:
google_compute_forwarding_rule
,google_compute_http_health_check
, andgoogle_compute_target_pool
- Together these provide network-level load balancing. (#588) - New resource:
aws_main_route_table_association
- Manage the main routing table of a VPC. (#918) - New resource:
aws_vpc_peering_connection
(#963) - core: Formalized the syntax of interpolations and documented it very heavily.
- core: Strings in interpolations can now contain further interpolations,
e.g.:
foo ${bar("${baz}")}
. - provider/aws: Internet gateway supports tags (#720)
- provider/aws: Support the more standard environmental variable names for access key and secret keys. (#851)
- provider/aws: The
aws_db_instance
resource no longer requires bothfinal_snapshot_identifier
andskip_final_snapshot
; the presence or absence of the former now implies the latter. (#874) - provider/aws: Avoid unnecessary update of
aws_subnet
whenmap_public_ip_on_launch
is not specified in config. (#898) - provider/aws: Add
apply_method
toaws_db_parameter_group
(#897) - provider/aws: Add
storage_type
toaws_db_instance
(#896) - provider/aws: ELB can update listeners without requiring new. (#721)
- provider/aws: Security group support egress rules. (#856)
- provider/aws: Route table supports VPC peering connection on route. (#963)
- provider/aws: Add
root_block_device
toaws_db_instance
(#998) - provider/google: Remove "client secrets file", as it's no longer necessary for API authentication (#884).
- provider/google: Expose
self_link
ongoogle_compute_instance
(#906)
BUG FIXES:
- core: Fixing use of remote state with plan files. (#741)
- core: Fix a panic case when certain invalid types were used in the configuration. (#691)
- core: Escape characters
\"
,\n
, and\\
now work in interpolations. - core: Fix crash that could occur when there are exactly zero providers installed on a system. (#786)
- core: JSON TF configurations can configure provisioners. (#807)
- core: Sort
depends_on
in state to prevent unnecessary file changes. (#928) - core: State containing the zero value won't cause a diff with the lack of a value. (#952)
- core: If a set type becomes empty, the state will be properly updated to remove it. (#952)
- core: Bare "splat" variables are not allowed in provisioners. (#636)
- core: Invalid configuration keys to sub-resources are now errors. (#740)
- command/apply: Won't try to initialize modules in some cases when no arguments are given. (#780)
- command/apply: Fix regression where user variables weren't asked (#736)
- helper/hashcode: Update
hash.String()
to always return a positive index. Fixes issue where specific strings would convert to a negative index and be omitted when creating Route53 records. (#967) - provider/aws: Automatically suffix the Route53 zone name on record names. (#312)
- provider/aws: Instance should ignore root EBS devices. (#877)
- provider/aws: Fix
aws_db_instance
to not recreate each time. (#874) - provider/aws: ASG termination policies are synced with remote state. (#923)
- provider/aws: ASG launch configuration setting can now be updated in-place. (#904)
- provider/aws: No read error when subnet is manually deleted. (#889)
- provider/aws: Tags with empty values (empty string) are properly managed. (#968)
- provider/aws: Fix case where route table would delete its routes on an unrelated change. (#990)
- provider/google: Fix bug preventing instances with metadata from being created (#884).
PLUGIN CHANGES:
- New
helper/schema
type:TypeFloat
(#594) - New
helper/schema
field for resources:Exists
must point to a function to check for the existence of a resource. This is used to properly handle the case where the resource was manually deleted. (#766) - There is a semantic change in
GetOk
where it will returntrue
if there is any value in the diff that is non-zero. Before, it would return true only if there was a value in the diff.
FEATURES:
- New provider:
cloudstack
IMPROVEMENTS:
- New resource:
aws_key_pair
- Import a public key into AWS. (#695) - New resource:
heroku_cert
- Manage Heroku app certs. - provider/aws: Support
eu-central-1
,cn-north-1
, and GovCloud. (#525) - provider/aws:
route_table
can have tags. (#648) - provider/google: Support Ubuntu images. (#724)
- provider/google: Support for service accounts. (#725)
BUG FIXES:
- core: temporary/hidden files that look like Terraform configurations are no longer loaded. (#548)
- core: Set types in resources now result in deterministic states, resulting in cleaner plans. (#663)
- core: fix issue where "diff was not the same" would come up with diffing lists. (#661)
- core: fix crash where module inputs weren't strings, and add more validation around invalid types here. (#624)
- core: fix error when using a computed module output as an input to another module. (#659)
- core: map overrides in "terraform.tfvars" no longer result in a syntax error. (#647)
- core: Colon character works in interpolation (#700)
- provider/aws: Fix crash case when internet gateway is not attached to any VPC. (#664)
- provider/aws:
vpc_id
is no longer required. (#667) - provider/aws:
availability_zones
on ELB will contain more than one AZ if it is set as such. (#682) - provider/aws: More fields are marked as "computed" properly, resulting in more accurate diffs for AWS instances. (#712)
- provider/aws: Fix panic case by using the wrong type when setting volume size for AWS instances. (#712)
- provider/aws: route table ignores routes with 'EnableVgwRoutePropagation' origin since those come from gateways. (#722)
- provider/aws: Default network ACL ID and default security group ID
support for
aws_vpc
. (#704) - provider/aws: Tags are not marked as computed. This introduces another issue with not detecting external tags, but this will be fixed in the future. (#730)
FEATURES:
- Remote State: State files can now be stored remotely via HTTP, Consul, or HashiCorp's Atlas.
- New Provider:
atlas
: Retrieve artifacts for deployment from HashiCorp's Atlas service. - New
element()
function to index into arrays
IMPROVEMENTS:
- provider/aws: Support tenancy for aws_instance
- provider/aws: Support block devices for aws_instance
- provider/aws: Support virtual_name on block device
- provider/aws: Improve RDS reliability (more grace time)
- provider/aws: Added aws_db_parameter_group resource
- provider/aws: Added tag support to aws_subnet
- provider/aws: Routes in RouteTable are optional
- provider/aws: associate_public_ip_address on aws_launch_configuration
- provider/aws: Added aws_network_acl
- provider/aws: Ingress rules in security groups are optional
- provider/aws: Support termination policy for ASG
- provider/digitalocean: Improved droplet size compatibility
BUG FIXES:
- core: Fixed issue causing double delete. (#555)
- core: Fixed issue with create-before-destroy not being respected in some circumstances.
- core: Fixing issue with count expansion with non-homogenous instance plans.
- core: Fix issue with referencing resource variables from resources that don't exist yet within resources that do exist, or modules.
- core: Fixing depedency handling for modules
- core: Fixing output handling (#474)
- core: Fixing count interpolation in modules
- core: Fixing multi-var without module state
- core: Fixing HCL variable declaration
- core: Fixing resource interpolation for without state
- core: Fixing handling of computed maps
- command/init: Fixing recursion issue (#518)
- command: Validate config before requesting input (#602)
- build: Fixing GOPATHs with spaces
MISC:
- provider/aws: Upgraded to helper.Schema
- provider/heroku: Upgraded to helper.Schema
- provider/mailgun: Upgraded to helper.Schema
- provider/dnsimple: Upgraded to helper.Schema
- provider/cloudflare: Upgraded to helper.Schema
- provider/digitalocean: Upgraded to helper.Schema
- provider/google: Upgraded to helper.Schema
IMPROVEMENTS:
- providers/aws: Support tags for security groups.
- providers/google: Add "external_address" to network attributes (#454)
- providers/google: External address is used as default connection host. (#454)
- providers/heroku: Support
locked
andpersonal
booleans on organization settings. (#406)
BUG FIXES:
- core: Remove panic case when applying with a plan that generates no new state. (#403)
- core: Fix a hang that can occur with enough resources. (#410)
- core: Config validation will not error if the field is being computed so the value is still unknown.
- core: If a resource fails to create and has provisioners, it is marked as tainted. (#434)
- core: Set types are validated to be sets. (#413)
- core: String types are validated properly. (#460)
- core: Fix crash case when destroying with tainted resources. (#412)
- core: Don't execute provisioners in some cases on destroy.
- core: Inherited provider configurations will be properly interpolated. (#418)
- core: Refresh works properly if there are outputs that depend on resources that aren't yet created. (#483)
- providers/aws: Refresh of launch configs and autoscale groups load the correct data and don't incorrectly recreate themselves. (#425)
- providers/aws: Fix case where ELB would incorrectly plan to modify listeners (with the same data) in some cases.
- providers/aws: Retry destroying internet gateway for some amount of time if there is a dependency violation since it is probably just eventual consistency (public facing resources being destroyed). (#447)
- providers/aws: Retry deleting security groups for some amount of time if there is a dependency violation since it is probably just eventual consistency. (#436)
- providers/aws: Retry deleting subnet for some amount of time if there is a dependency violation since probably asynchronous destroy events take place still. (#449)
- providers/aws: Drain autoscale groups before deleting. (#435)
- providers/aws: Fix crash case if launch config is manually deleted. (#421)
- providers/aws: Disassociate EIP before destroying.
- providers/aws: ELB treats subnets as a set.
- providers/aws: Fix case where in a destroy/create tags weren't reapplied. (#464)
- providers/aws: Fix incorrect/erroneous apply cases around security group rules. (#457)
- providers/consul: Fix regression where
key
param changed to `keys. (#475)
FEATURES:
- Modules: Configuration can now be modularized. Modules can live on GitHub, BitBucket, Git/Hg repos, HTTP URLs, and file paths. Terraform automatically downloads/updates modules for you on request.
- New Command:
init
. This command initializes a Terraform configuration from an existing Terraform module (also new in 0.3). - New Command:
destroy
. This command destroys infrastructure created withapply
. - Terraform will ask for user input to fill in required variables and provider configurations if they aren't set.
terraform apply MODULE
can be used as a shorthand to quickly build infrastructure from a module.- The state file format is now JSON rather than binary. This allows for easier machine and human read/write. Old binary state files will be automatically upgraded.
- You can now specify
create_before_destroy
as an option for replacement so that new resources are created before the old ones are destroyed. - The
count
metaparameter can now contain interpolations (such as variables). - The current index for a resource with a
count
set can be interpolated using${count.index}
. - Various paths can be interpolated with the
path.X
variables. For example, the path to the current module can be interpolated using${path.module}
.
IMPROVEMENTS:
- config: Trailing commas are now allowed for the final elements of lists.
- core: Plugins are loaded from
~/.terraform.d/plugins
(Unix) or%USERDATA%/terraform.d/plugins
(Windows). - command/show: With no arguments, it will show the default state. (#349)
- helper/schema: Can now have default values. (#245)
- providers/aws: Tag support for most resources.
- providers/aws: New resource
db_subnet_group
. (#295) - providers/aws: Add
map_public_ip_on_launch
for subnets. (#285) - providers/aws: Add
iam_instance_profile
for instances. (#319) - providers/aws: Add
internal
option for ELBs. (#303) - providers/aws: Add
ssl_certificate_id
for ELB listeners. (#350) - providers/aws: Add
self
option for security groups for ingress rules with self as source. (#303) - providers/aws: Add
iam_instance_profile
option toaws_launch_configuration
. (#371) - providers/aws: Non-destructive update of
desired_capacity
for autoscale groups. - providers/aws: Add
main_route_table_id
attribute to VPCs. (#193) - providers/consul: Support tokens. (#396)
- providers/google: Support
target_tags
for firewalls. (#324) - providers/google:
google_compute_instance
supportscan_ip_forward
(#375) - providers/google:
google_compute_disk
supportstype
to support disks such as SSDs. (#351) - provisioners/local-exec: Output from command is shown in CLI output. (#311)
- provisioners/remote-exec: Output from command is shown in CLI output. (#311)
BUG FIXES:
- core: Providers are validated even without a
provider
block. (#284) - core: In the case of error, walk all non-dependent trees.
- core: Plugin loading from CWD works properly.
- core: Fix many edge cases surrounding the
count
meta-parameter. - core: Strings in the configuration can escape double-quotes with the
standard
\"
syntax. - core: Error parsing CLI config will show properly. (#288)
- core: More than one Ctrl-C will exit immediately.
- providers/aws: autoscaling_group can be launched into a vpc (#259)
- providers/aws: not an error when RDS instance is deleted manually. (#307)
- providers/aws: Retry deleting subnet for some time while AWS eventually destroys dependencies. (#357)
- providers/aws: More robust destroy for route53 records. (#342)
- providers/aws: ELB generates much more correct plans without extraneous data.
- providers/aws: ELB works properly with dynamically changing count of instances.
- providers/aws: Terraform can handle ELBs deleted manually. (#304)
- providers/aws: Report errors properly if RDS fails to delete. (#310)
- providers/aws: Wait for launch configuration to exist after creation (AWS eventual consistency) (#302)
IMPROVEMENTS:
- providers/amazon: Add
ebs_optimized
flag. (#260) - providers/digitalocean: Handle 404 on delete
- providers/digitalocean: Add
user_data
argument for creating droplets - providers/google: Disks can be marked
auto_delete
. (#254)
BUG FIXES:
- core: Fix certain syntax of configuration that could cause hang. (#261)
- core:
-no-color
flag properly disables color. (#250) - core: "~" is expanded in
-var-file
flags. (#273) - core: Errors with tfvars are shown in console. (#269)
- core: Interpolation function calls with more than two args parse. (#282)
- providers/aws: Refreshing EIP from pre-0.2 state file won't error. (#258)
- providers/aws: Creating EIP without an instance/network won't fail.
- providers/aws: Refreshing EIP manually deleted works.
- providers/aws: Retry EIP delete to allow AWS eventual consistency to detect it isn't attached. (#276)
- providers/digitalocean: Handle situations when resource was destroyed manually. (#279)
- providers/digitalocean: Fix a couple scenarios where the diff was incorrect (and therefore the execution as well).
- providers/google: Attaching a disk source (not an image) works properly. (#254)
IMPROVEMENTS:
- core: Plugins are automatically discovered in the executable directory or pwd if named properly. (#190)
- providers/mailgun: domain records are now saved to state
BUG FIXES:
- core: Configuration parses when identifier and '=' have no space. (#243)
- core:
depends_on
withcount
generates the proper graph. (#244) - core: Depending on a computed variable of a list type generates a
plan without failure. i.e.
${type.name.foos.0.bar}
wherefoos
is computed. (#247) - providers/aws: Route53 destroys in parallel work properly. (#183)
BACKWARDS INCOMPATIBILITIES:
- We've replaced the configuration language in use from a C library to
a pure-Go reimplementation. In the process, we removed some features
of the language since it was too flexible:
- Semicolons are no longer valid at the end of lines
- Keys cannot be double-quoted strings:
"foo" = "bar"
is no longer valid. - JSON style maps
{ "foo": "bar" }
are no longer valid outside of JSON. Maps must be in the format of{ foo = "bar" }
(like other objects in the config)
- Heroku apps now require (will not validate without)
region
andname
due to an upstream API change. (#239)
FEATURES:
- New Provider:
google
: Manage Google Compute instances, disks, firewalls, and more. - New Provider:
mailgun
: Manage mailgun domains. - New Function:
concat
: Concatenate multiple strings together. Example:concat(var.region, "-", var.channel)
.
IMPROVEMENTS:
- core: "~/.terraformrc" (Unix) or "%APPDATA%/terraform.rc" (Windows) can be used to configure custom providers and provisioners. (#192)
- providers/aws: EIPs now expose
allocation_id
andpublic_ip
attributes. - providers/aws: Security group rules can be updated without a destroy/create.
- providers/aws: You can enable and disable dns settings for VPCs. (#172)
- providers/aws: Can specify a private IP address for
aws_instance
(#217)
BUG FIXES:
- core: Variables are validated to not contain interpolations. (#180)
- core: Key files for provisioning can now contain
~
and will be expanded to the user's home directory. (#179) - core: The
file()
function can load files in sub-directories. (#213) - core: Fix issue where some JSON structures didn't map properly into Terraform structures. (#177)
- core: Resources with only
file()
calls will interpolate. (#159) - core: Variables work in block names. (#234)
- core: Plugins are searched for in the same directory as the executable before the PATH. (#157)
- command/apply: "tfvars" file no longer interferes with plan apply. (#153)
- providers/aws: Fix issues around failing to read EIPs. (#122)
- providers/aws: Autoscaling groups now register and export load balancers. (#207)
- providers/aws: Ingress results are treated as a set, so order doesn't matter anymore. (#87)
- providers/aws: Instance security groups treated as a set (#194)
- providers/aws: Retry Route53 requests if operation failed because another operation is in progress (#183)
- providers/aws: Route53 records with multiple record values work. (#221)
- providers/aws: Changing AMI doesn't result in errors anymore. (#196)
- providers/heroku: If you delete the
config_vars
block, config vars are properly nuked. - providers/heroku: Domains and drains are deleted before the app.
- providers/heroku: Moved from the client library bgentry/heroku-go to cyberdelia/heroku-go (#239).
- providers/heroku: Plans without a specific plan name for heroku_addon work. (#198)
PLUGIN CHANGES:
- New Package:
helper/schema
. This introduces a high-level framework for easily writing new providers and resources. The Heroku provider has been converted to this as an example.
FEATURES:
- providers/heroku: Now supports creating Heroku Drains (#97)
IMPROVEMENTS:
- providers/aws: Launch configurations accept user data (#94)
- providers/aws: Regions are now validated (#96)
- providers/aws: ELB now supports health check configurations (#109)
BUG FIXES:
- core: Default variable file "terraform.tfvars" is auto-loaded. (#59)
- core: Multi-variables (
foo.*.bar
) work even whencount = 1
. (#115) - core:
file()
function can have string literal arg (#145) - providers/cloudflare: Include the proper bins so the cloudflare provider is compiled
- providers/aws: Engine version for RDS now properly set (#118)
- providers/aws: Security groups now depend on each other and
- providers/aws: DB instances now wait for destroys, have proper dependencies and allow passing skip_final_snapshot
- providers/aws: Add associate_public_ip_address as an attribute on the aws_instance resource (#85)
- providers/aws: Fix cidr blocks being updated [GH-65, GH-85]
- providers/aws: Description is now required for security groups
- providers/digitalocean: Private IP addresses are now a separate attribute
- provisioner/all: If an SSH key is given with a password, a better error message is shown. (#73)
- Initial release