terraform/website/source/docs/providers/aws/r
Paul Stack e524603d3f provider/aws: AWS SpotFleet Requests now works with Subnets and AZs (#8320)
* provider/aws: Change Spot Fleet Request to allow a combination of
subnet_id and availability_zone

Also added a complete set of tests that reflect all of the use cases
that Amazon document
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-examples.html

It is important to note there that Terraform will be suggesting that
users create multiple launch configurations rather than AWS's version of
combing values into CSV based parameters. This will ensure that we are
able to enforce the correct state

Also note that `associate_public_ip_address` now defaults to `false` - a migration has been
included in this PR to migration users of this functionality. This needs
to be noted in the changelog. The last part of changing functionality
here is waiting for the state of the request to become `active`. Before
we get to this state, we cannot guarantee that Amazon have accepted the
request or it could have failed validation.

```
% make testacc TEST=./builtin/providers/aws
% TESTARGS='-run=TestAccAWSSpotFleetRequest_'
% 2 ↵
==> Checking that code complies with gofmt requirements...
/Users/stacko/Code/go/bin/stringer
go generate $(go list ./... | grep -v /terraform/vendor/)
2016/08/22 15:44:21 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/aws -v
-run=TestAccAWSSpotFleetRequest_ -timeout 120m
=== RUN   TestAccAWSSpotFleetRequest_changePriceForcesNewRequest
--- PASS: TestAccAWSSpotFleetRequest_changePriceForcesNewRequest (133.90s)
=== RUN   TestAccAWSSpotFleetRequest_lowestPriceAzOrSubnetInRegion
--- PASS: TestAccAWSSpotFleetRequest_lowestPriceAzOrSubnetInRegion (76.67s)
=== RUN   TestAccAWSSpotFleetRequest_lowestPriceAzInGivenList
--- PASS: TestAccAWSSpotFleetRequest_lowestPriceAzInGivenList (75.22s)
=== RUN   TestAccAWSSpotFleetRequest_lowestPriceSubnetInGivenList
--- PASS: TestAccAWSSpotFleetRequest_lowestPriceSubnetInGivenList (96.95s)
=== RUN   TestAccAWSSpotFleetRequest_multipleInstanceTypesInSameAz
--- PASS: TestAccAWSSpotFleetRequest_multipleInstanceTypesInSameAz (74.44s)
=== RUN   TestAccAWSSpotFleetRequest_multipleInstanceTypesInSameSubnet
--- PASS: TestAccAWSSpotFleetRequest_multipleInstanceTypesInSameSubnet (97.82s)
=== RUN   TestAccAWSSpotFleetRequest_overriddingSpotPrice
--- PASS: TestAccAWSSpotFleetRequest_overriddingSpotPrice (76.22s)
=== RUN   TestAccAWSSpotFleetRequest_diversifiedAllocation
--- PASS: TestAccAWSSpotFleetRequest_diversifiedAllocation (79.81s)
=== RUN   TestAccAWSSpotFleetRequest_withWeightedCapacity
--- PASS: TestAccAWSSpotFleetRequest_withWeightedCapacity (77.15s)
=== RUN   TestAccAWSSpotFleetRequest_CannotUseEmptyKeyName
--- PASS: TestAccAWSSpotFleetRequest_CannotUseEmptyKeyName (0.00s)
PASS
ok      github.com/hashicorp/terraform/builtin/providers/aws    788.184s
```

* Update resource_aws_spot_fleet_request.go
2016-08-24 11:08:46 +01:00
..
alb.html.markdown provider/aws: Add `arn` fields to ALB resources 2016-08-18 18:54:39 +01:00
alb_listener.html.markdown provider/aws: Add `arn` fields to ALB resources 2016-08-18 18:54:39 +01:00
alb_listener_rule.html.markdown provider/aws: Add aws_alb_listener_rule resource 2016-08-19 13:07:20 +01:00
alb_target_group.html.markdown provider/aws: Support Tags for `aws_alb` and `aws_alb_target_group` (#8422) 2016-08-24 10:54:43 +01:00
alb_target_group_attachment.html.markdown provider/aws: Add aws_alb_target_group_attachment 2016-08-19 16:12:19 +01:00
ami.html.markdown Implementing aws_ami_launch_permission. (#7365) 2016-07-21 23:08:32 +01:00
ami_copy.html.markdown docs/aws: Add and as docs to the AWS resource (#7988) 2016-08-05 10:38:00 +10:00
ami_from_instance.html.markdown
ami_launch_permission.html.markdown Implementing aws_ami_launch_permission. (#7365) 2016-07-21 23:08:32 +01:00
api_gateway_account.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
api_gateway_api_key.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
api_gateway_authorizer.html.markdown
api_gateway_base_path_mapping.html.markdown website: Docs for AWS API Gateway domain name and base path mapping 2016-08-22 15:36:20 -07:00
api_gateway_deployment.html.markdown Update aws api gateway docs to add some examples (#7586) 2016-07-18 10:37:39 +02:00
api_gateway_domain_name.html.markdown website: Docs for AWS API Gateway domain name and base path mapping 2016-08-22 15:36:20 -07:00
api_gateway_integration.html.markdown aws/docs: Fix a few nitpicks after merging #7794 2016-08-11 12:11:15 +01:00
api_gateway_integration_response.html.markdown aws/docs: Fix a few nitpicks after merging #7794 2016-08-11 12:11:15 +01:00
api_gateway_method.html.markdown aws/docs: Fix a few nitpicks after merging #7794 2016-08-11 12:11:15 +01:00
api_gateway_method_response.html.markdown aws/docs: Fix a few nitpicks after merging #7794 2016-08-11 12:11:15 +01:00
api_gateway_model.html.markdown
api_gateway_resource.html.markdown
api_gateway_rest_api.html.markdown
app_cookie_stickiness_policy.html.markdown
appautoscaling_policy.html.markdown Clean up whitespace in `aws_appautoscaling_policy` docs (#8228) 2016-08-16 16:46:56 +01:00
appautoscaling_target.html.markdown AWS Application AutoScaling 2016-07-26 10:43:06 +01:00
autoscaling_group.html.markdown provider/aws: Add support for TargetGroups to AutoScaling Groups (#8327) 2016-08-19 14:07:53 -05:00
autoscaling_lifecycle_hooks.html.markdown
autoscaling_notification.html.markdown
autoscaling_policy.html.markdown
autoscaling_schedule.html.markdown
cloudformation_stack.html.markdown Correcting arn output to id (#6586) 2016-05-10 22:32:07 +01:00
cloudfront_distribution.html.markdown
cloudfront_origin_access_identity.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
cloudtrail.html.markdown docs/aws: Update documentation example to remove \ from bucket prefix (#8289) 2016-08-18 18:44:19 +01:00
cloudwatch_event_rule.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
cloudwatch_event_target.html.markdown
cloudwatch_log_group.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
cloudwatch_log_metric_filter.html.markdown
cloudwatch_log_subscription_filter.html.markdown
cloudwatch_metric_alarm.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
code_commit_repository.html.markdown
codedeploy_app.html.markdown
codedeploy_deployment_group.html.markdown
customer_gateway.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
db_event_subscription.html.markdown
db_instance.html.markdown apostrophe police 2016-08-11 09:32:54 -07:00
db_option_group.html.markdown docs/aws: Documentation Update for `aws_db_option_group` (#8424) 2016-08-23 20:02:22 +01:00
db_parameter_group.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
db_security_group.html.markdown provider/aws: Support Import of `aws_db_security_group` 2016-08-02 01:42:54 +10:00
db_subnet_group.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
default_network_acl.html.markdown
directory_service_directory.html.markdown provider/aws: `directory_service_directory` documentation 2016-07-07 13:39:20 +01:00
dynamodb_table.html.markdown provider/aws: Change to `aws_dynamodb_table` hash_key forces a new 2016-05-24 11:39:55 +01:00
ebs_volume.html.md docs/aws: Fixing the size documentation to be GiBs not GBs (#8240) 2016-08-16 21:07:59 +01:00
ecr_repository.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
ecr_repository_policy.html.markdown
ecs_cluster.html.markdown
ecs_service.html.markdown provider/aws: Add support for ECS svc - LB target group (#8190) 2016-08-23 11:19:43 -05:00
ecs_task_definition.html.markdown provider/aws: Add support for `network_mode` to `aws_ecs_task_definition` (#8391) 2016-08-23 11:27:45 +01:00
efs_file_system.html.markdown Add ability to set Performance Mode in aws_efs_file_system. (#7791) 2016-07-28 11:19:39 +01:00
efs_mount_target.html.markdown Add ability to set Performance Mode in aws_efs_file_system. (#7791) 2016-07-28 11:19:39 +01:00
eip.html.markdown
eip_association.html.markdown Updated eip_association example (#6957) 2016-06-02 01:30:10 +01:00
elastic_beanstalk_application.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
elastic_beanstalk_configuration_template.html.markdown provider/aws: Elastic Beanstalk scheduledaction (#7376) 2016-06-28 01:56:12 +01:00
elastic_beanstalk_environment.html.markdown Added example of how the Option settings works (#8413) 2016-08-23 14:47:10 +01:00
elastic_transcoder_pipeline.html.markdown provider/aws: Update ElasticTranscoder to allow empty notifications, removing notifications, etc (#8207) 2016-08-16 13:41:12 -05:00
elastic_transcoder_preset.html.markdown aws/docs: Fix Elastic Transcoder docs 2016-07-09 10:53:54 +01:00
elasticache_cluster.html.markdown provider/aws: Support `snapshot_name` for ElastiCache Cluster and (#8419) 2016-08-24 10:55:20 +01:00
elasticache_parameter_group.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
elasticache_replication_group.html.markdown provider/aws: Support `snapshot_name` for ElastiCache Cluster and (#8419) 2016-08-24 10:55:20 +01:00
elasticache_security_group.html.markdown Add default description 2016-05-23 06:46:45 +10:00
elasticache_subnet_group.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
elasticsearch_domain.html.markdown provider/aws: Support `aws_elasticsearch_domain` upgrades to (#7860) 2016-08-05 08:59:15 +01:00
elb.html.markdown health_check's target explained 2016-08-19 11:12:56 -04:00
elb_attachment.html.markdown Add top-level ELB Attachment resource 2016-06-07 09:46:39 -04:00
flow_log.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
glacier_vault.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
iam_access_key.html.markdown
iam_account_password_policy.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
iam_group.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
iam_group_membership.html.markdown
iam_group_policy.html.markdown
iam_group_policy_attachment.markdown provider/aws: Add per user, role and group policy attachment (supersedes #5816) (#6858) 2016-05-25 11:03:43 -05:00
iam_instance_profile.html.markdown Add `name_prefix` to `aws_iam_instance_profile` and `aws_iam_role` (#6939) 2016-06-05 00:46:27 +01:00
iam_policy.html.markdown
iam_policy_attachment.html.markdown
iam_role.html.markdown Add `name_prefix` to `aws_iam_instance_profile` and `aws_iam_role` (#6939) 2016-06-05 00:46:27 +01:00
iam_role_policy.html.markdown
iam_role_policy_attachment.markdown provider/aws: Add per user, role and group policy attachment (supersedes #5816) (#6858) 2016-05-25 11:03:43 -05:00
iam_saml_provider.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
iam_server_certificate.html.markdown Fix broken docs link (#7175) 2016-06-15 09:36:23 -05:00
iam_user.html.markdown provider/aws: Delete access keys before deleting IAM user (#7766) 2016-07-25 08:15:03 +01:00
iam_user_policy.html.markdown
iam_user_policy_attachment.markdown provider/aws: Add per user, role and group policy attachment (supersedes #5816) (#6858) 2016-05-25 11:03:43 -05:00
iam_user_ssh_key.html.markdown
instance.html.markdown providers/aws: expose network interface id (#6751) 2016-07-25 19:52:40 +01:00
internet_gateway.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
key_pair.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
kinesis_firehose_delivery_stream.html.markdown provider/aws: Update docs for s3 compression_formation for Kinesis (#8063) 2016-08-09 17:07:22 +12:00
kinesis_stream.html.markdown Add support for Kinesis streams shard-level metrics (#7684) 2016-07-21 23:37:58 +01:00
kms_alias.html.markdown
kms_key.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
lambda_alias.html.markdown
lambda_event_source_mapping.html.markdown
lambda_function.html.markdown Not Error out on AWS Lambda VPC config if both subnet_ids and security_group_ids are empty. (#6191) 2016-08-15 17:52:42 +01:00
lambda_permission.html.markdown
launch_configuration.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
lb_cookie_stickiness_policy.html.markdown
lb_ssl_negotiation_policy.html.markdown Add note to use Server-Defined-Cipher-Order 2016-08-21 14:21:02 +01:00
load_balancer_backend_server_policy.html.markdown provider/aws: Add the documentation for the new * resources to the ERB layout 2016-08-09 15:43:02 +12:00
load_balancer_listener_policy.html.markdown rename aws load balancer policy resources 2016-08-07 23:08:49 -04:00
load_balancer_policy.html.markdown rename aws load balancer policy resources 2016-08-07 23:08:49 -04:00
main_route_table_assoc.html.markdown
nat_gateway.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
network_acl.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
network_acl_rule.html.markdown Add note about setting wildcard icmp_type. 2016-07-17 03:34:32 +09:00
network_interface.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
opsworks_application.html.markdown
opsworks_custom_layer.html.markdown
opsworks_ganglia_layer.html.markdown
opsworks_haproxy_layer.html.markdown
opsworks_instance.html.markdown Fix errata Opsworks Documentation (#6977) 2016-06-02 10:14:37 +01:00
opsworks_java_app_layer.html.markdown
opsworks_memcached_layer.html.markdown
opsworks_mysql_layer.html.markdown
opsworks_nodejs_app_layer.html.markdown
opsworks_permission.html.markdown Fix broken documents 2016-08-10 00:23:08 +09:00
opsworks_php_app_layer.html.markdown
opsworks_rails_app_layer.html.markdown
opsworks_stack.html.markdown
opsworks_static_web_layer.html.markdown
opsworks_user_profile.html.markdown Fix broken documents 2016-08-10 00:23:08 +09:00
placement_group.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
proxy_protocol_policy.html.markdown
rds_cluster.html.markdown apostrophe police 2016-08-11 09:34:00 -07:00
rds_cluster_instance.html.markdown add Aurora instance failover priority feature (#8087) 2016-08-12 07:51:25 +10:00
rds_cluster_parameter_group.markdown provider/aws: Support Import of `aws_db_security_group` 2016-08-02 01:42:54 +10:00
redshift_cluster.html.markdown provider/aws: Add support to `aws_redshift_cluster` for restoring from (#8414) 2016-08-24 10:58:05 +01:00
redshift_parameter_group.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
redshift_security_group.html.markdown provider/aws: Support Import of `aws_redshift_security_group` 2016-08-02 02:03:43 +10:00
redshift_subnet_group.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
route.html.markdown
route53_delegation_set.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
route53_health_check.html.markdown provider/aws: Implement support for CloudWatch Metric in 2016-08-19 13:00:45 +01:00
route53_record.html.markdown add support for geolocation and latency records to aws route53 provider 2016-05-31 15:11:02 -05:00
route53_zone.html.markdown provider/aws: Allow force_destroying records in R53 hosted zone 2016-08-16 19:34:58 +01:00
route53_zone_association.html.markdown
route_table.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
route_table_association.html.markdown
s3_bucket.html.markdown provider/aws: Support import of `aws_s3_bucket` (#8262) 2016-08-18 16:01:20 +01:00
s3_bucket_notification.html.markdown Update S3 notification documentation 2016-07-06 16:00:16 -04:00
s3_bucket_object.html.markdown Add ability to set Storage Class in aws_s3_bucket_object. (#8174) 2016-08-15 07:30:47 +01:00
security_group.html.markdown Documentation: explain the role of to_port in a security group rule when protocol is "icmp" (#8093) 2016-08-10 14:32:18 -05:00
security_group_rule.html.markdown Documentation: explain the role of to_port in a security group rule when protocol is "icmp" (#8093) 2016-08-10 14:32:18 -05:00
ses_active_receipt_rule_set.html.markdown Add SES resource (#5387) 2016-06-26 22:07:14 +01:00
ses_receipt_filter.html.markdown Add SES resource (#5387) 2016-06-26 22:07:14 +01:00
ses_receipt_rule.html.markdown remove duplicate 'recipients' argument (#7968) 2016-08-04 07:47:12 +01:00
ses_receipt_rule_set.html.markdown Add SES resource (#5387) 2016-06-26 22:07:14 +01:00
simpledb_domain.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
sns_topic.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
sns_topic_subscription.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
spot_fleet_request.html.markdown provider/aws: AWS SpotFleet Requests now works with Subnets and AZs (#8320) 2016-08-24 11:08:46 +01:00
spot_instance_request.html.markdown
sqs_queue.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
subnet.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
volume_attachment.html.markdown
vpc.html.markdown Fix typo in aws_vpc resource docs (VPN -> VPC) (#7805) 2016-07-26 07:35:52 +01:00
vpc_dhcp_options.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
vpc_dhcp_options_association.html.markdown
vpc_endpoint.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
vpc_peering.html.markdown Add ability to set peering options in aws_vpc_peering_connection. (#8310) 2016-08-19 11:19:49 +01:00
vpn_connection.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
vpn_connection_route.html.markdown BGP AS 60000 is assigned to EQUINIX-CLOUD-EXCHANGE-AMSTERDAM-ASN. 2016-06-08 13:46:56 +00:00
vpn_gateway.html.markdown documentation/aws: More additions of Import documention to the AWS (#7729) 2016-07-20 23:28:59 +01:00
vpn_gateway_attachment.html.markdown Add aws_vpn_gateway_attachment resource. (#7870) 2016-08-07 09:29:51 +10:00