2014-09-16 15:54:53 +02:00
|
|
|
<% wrap_layout :inner do %>
|
2014-07-23 20:50:41 +02:00
|
|
|
<% content_for :sidebar do %>
|
|
|
|
<div class="docs-sidebar hidden-print affix-top" role="complementary">
|
|
|
|
<ul class="nav docs-sidenav">
|
|
|
|
<li<%= sidebar_current("docs-home") %>>
|
2015-04-29 05:49:21 +02:00
|
|
|
<a href="/docs/providers/index.html">« Documentation Home</a>
|
|
|
|
</li>
|
2014-07-23 20:50:41 +02:00
|
|
|
|
|
|
|
<li<%= sidebar_current("docs-aws-index") %>>
|
2015-04-29 05:49:21 +02:00
|
|
|
<a href="/docs/providers/aws/index.html">AWS Provider</a>
|
|
|
|
</li>
|
2014-07-23 20:50:41 +02:00
|
|
|
|
2015-05-08 11:28:26 +02:00
|
|
|
<li<%= sidebar_current(/^docs-aws-resource/) %>>
|
2015-04-29 05:49:21 +02:00
|
|
|
<a href="#">Resources</a>
|
|
|
|
<ul class="nav nav-visible">
|
2015-06-25 16:09:08 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-app-cookie-stickiness-policy") %>>
|
|
|
|
<a href="/docs/providers/aws/r/app_cookie_stickiness_policy.html">aws_app_cookie_stickiness_policy</a>
|
|
|
|
</li>
|
2015-05-30 16:42:24 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-autoscaling-group") %>>
|
|
|
|
<a href="/docs/providers/aws/r/autoscaling_group.html">aws_autoscaling_group</a>
|
2015-04-29 05:49:21 +02:00
|
|
|
</li>
|
|
|
|
|
2015-06-05 17:14:24 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-autoscaling-notification") %>>
|
|
|
|
<a href="/docs/providers/aws/r/autoscaling_notification.html">aws_autoscaling_notification</a>
|
|
|
|
</li>
|
|
|
|
|
2015-06-07 11:19:57 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-autoscaling-policy") %>>
|
|
|
|
<a href="/docs/providers/aws/r/autoscaling_policy.html">aws_autoscaling_policy</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li<%= sidebar_current("docs-aws-resource-cloudwatch-metric-alarm") %>>
|
|
|
|
<a href="/docs/providers/aws/r/cloudwatch_metric_alarm.html">aws_cloudwatch_metric_alarm</a>
|
|
|
|
</li>
|
|
|
|
|
2015-04-30 01:06:16 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-customer-gateway") %>>
|
|
|
|
<a href="/docs/providers/aws/r/customer_gateway.html">aws_customer_gateway</a>
|
|
|
|
</li>
|
|
|
|
|
2015-04-29 05:49:21 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-db-instance") %>>
|
|
|
|
<a href="/docs/providers/aws/r/db_instance.html">aws_db_instance</a>
|
|
|
|
</li>
|
|
|
|
|
2015-05-30 16:36:04 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-db-parameter-group") %>>
|
|
|
|
<a href="/docs/providers/aws/r/db_parameter_group.html">aws_db_parameter_group</a>
|
|
|
|
</li>
|
|
|
|
|
2015-04-29 05:49:21 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-db-security-group") %>>
|
|
|
|
<a href="/docs/providers/aws/r/db_security_group.html">aws_db_security_group</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li<%= sidebar_current("docs-aws-resource-db-subnet-group") %>>
|
|
|
|
<a href="/docs/providers/aws/r/db_subnet_group.html">aws_db_subnet_group</a>
|
|
|
|
</li>
|
|
|
|
|
2015-06-04 02:07:03 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-dynamodb-table") %>>
|
|
|
|
<a href="/docs/providers/aws/r/dynamodb_table.html">aws_dynamodb_table</a>
|
|
|
|
</li>
|
|
|
|
|
2015-04-29 05:49:21 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-ebs-volume") %>>
|
|
|
|
<a href="/docs/providers/aws/r/ebs_volume.html">aws_ebs_volume</a>
|
|
|
|
</li>
|
|
|
|
|
2015-05-04 23:46:27 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-ecs-cluster") %>>
|
|
|
|
<a href="/docs/providers/aws/r/ecs_cluster.html">aws_ecs_cluster</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li<%= sidebar_current("docs-aws-resource-ecs-service") %>>
|
|
|
|
<a href="/docs/providers/aws/r/ecs_service.html">aws_ecs_service</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li<%= sidebar_current("docs-aws-resource-ecs-task-definition") %>>
|
|
|
|
<a href="/docs/providers/aws/r/ecs_task_definition.html">aws_ecs_task_definition</a>
|
|
|
|
</li>
|
|
|
|
|
2015-04-29 05:49:21 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-eip") %>>
|
|
|
|
<a href="/docs/providers/aws/r/eip.html">aws_eip</a>
|
|
|
|
</li>
|
|
|
|
|
2015-05-08 18:27:43 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-elasticache-cluster") %>>
|
|
|
|
<a href="/docs/providers/aws/r/elasticache_cluster.html">aws_elasticache_cluster</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li<%= sidebar_current("docs-aws-resource-elasticache-security-group") %>>
|
|
|
|
<a href="/docs/providers/aws/r/elasticache_security_group.html">aws_elasticache_security_group</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li<%= sidebar_current("docs-aws-resource-elasticache-subnet-group") %>>
|
|
|
|
<a href="/docs/providers/aws/r/elasticache_subnet_group.html">aws_elasticache_subnet_group</a>
|
|
|
|
</li>
|
|
|
|
|
2015-04-29 05:49:21 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-elb") %>>
|
|
|
|
<a href="/docs/providers/aws/r/elb.html">aws_elb</a>
|
|
|
|
</li>
|
|
|
|
|
2015-06-17 19:58:08 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-flow-log") %>>
|
|
|
|
<a href="/docs/providers/aws/r/flow_log.html">aws_flow_log</a>
|
|
|
|
</li>
|
|
|
|
|
2015-04-23 16:24:45 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-iam-access-key") %>>
|
2015-02-06 16:34:24 +01:00
|
|
|
<a href="/docs/providers/aws/r/iam_access_key.html">aws_iam_access_key</a>
|
|
|
|
</li>
|
|
|
|
|
2015-04-23 16:24:45 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-iam-group") %>>
|
|
|
|
<a href="/docs/providers/aws/r/iam_group.html">aws_iam_group</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li<%= sidebar_current("docs-aws-resource-iam-group-policy") %>>
|
|
|
|
<a href="/docs/providers/aws/r/iam_group_policy.html">aws_iam_group_policy</a>
|
|
|
|
</li>
|
|
|
|
|
2015-06-08 22:11:17 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-iam-group-membership") %>>
|
|
|
|
<a href="/docs/providers/aws/r/iam_group_membership.html">aws_iam_group_membership</a>
|
|
|
|
</li>
|
|
|
|
|
2015-04-23 16:24:45 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-iam-instance-profile") %>>
|
|
|
|
<a href="/docs/providers/aws/r/iam_instance_profile.html">aws_iam_instance_profile</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li<%= sidebar_current("docs-aws-resource-iam-policy") %>>
|
|
|
|
<a href="/docs/providers/aws/r/iam_policy.html">aws_iam_policy</a>
|
|
|
|
</li>
|
|
|
|
|
2015-05-12 23:09:46 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-iam-role") %>>
|
|
|
|
<a href="/docs/providers/aws/r/iam_role.html">aws_iam_role</a>
|
|
|
|
</li>
|
|
|
|
|
2015-04-23 16:24:45 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-iam-role-policy") %>>
|
|
|
|
<a href="/docs/providers/aws/r/iam_role_policy.html">aws_iam_role_policy</a>
|
|
|
|
</li>
|
|
|
|
|
2015-05-26 16:52:58 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-iam-server-certificate") %>>
|
|
|
|
<a href="/docs/providers/aws/r/iam_server_certificate.html">aws_iam_server_certificate</a>
|
|
|
|
</li>
|
|
|
|
|
2015-02-06 16:34:24 +01:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-iam-user") %>>
|
|
|
|
<a href="/docs/providers/aws/r/iam_user.html">aws_iam_user</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li<%= sidebar_current("docs-aws-resource-iam-user-policy") %>>
|
|
|
|
<a href="/docs/providers/aws/r/iam_user_policy.html">aws_iam_user_policy</a>
|
|
|
|
</li>
|
|
|
|
|
2015-04-29 05:49:21 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-instance") %>>
|
|
|
|
<a href="/docs/providers/aws/r/instance.html">aws_instance</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li<%= sidebar_current("docs-aws-resource-internet-gateway") %>>
|
|
|
|
<a href="/docs/providers/aws/r/internet_gateway.html">aws_internet_gateway</a>
|
|
|
|
</li>
|
|
|
|
|
2015-05-30 16:36:04 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-key-pair") %>>
|
|
|
|
<a href="/docs/providers/aws/r/key_pair.html">aws_key_pair</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li<%= sidebar_current("docs-aws-resource-kinesis-stream") %>>
|
|
|
|
<a href="/docs/providers/aws/r/kinesis_stream.html">aws_kinesis_stream</a>
|
|
|
|
</li>
|
|
|
|
|
2015-06-13 22:12:24 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-lambda-function") %>>
|
|
|
|
<a href="/docs/providers/aws/r/lambda_function.html">aws_lambda_function</a>
|
|
|
|
</li>
|
|
|
|
|
2015-05-30 16:46:42 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-launch-configuration") %>>
|
|
|
|
<a href="/docs/providers/aws/r/launch_configuration.html">aws_launch_configuration</a>
|
2015-04-29 05:49:21 +02:00
|
|
|
</li>
|
|
|
|
|
2015-04-30 03:49:25 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-lb-cookie-stickiness-policy") %>>
|
2015-04-29 05:49:21 +02:00
|
|
|
<a href="/docs/providers/aws/r/lb_cookie_stickiness_policy.html">aws_lb_cookie_stickiness_policy</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li<%= sidebar_current("docs-aws-resource-main-route-table-assoc") %>>
|
|
|
|
<a href="/docs/providers/aws/r/main_route_table_assoc.html">aws_main_route_table_association</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li<%= sidebar_current("docs-aws-resource-network-acl") %>>
|
|
|
|
<a href="/docs/providers/aws/r/network_acl.html">aws_network_acl</a>
|
|
|
|
</li>
|
|
|
|
|
2015-06-05 18:31:19 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-network-interface") %>>
|
2015-06-13 22:02:59 +02:00
|
|
|
<a href="/docs/providers/aws/r/network_interface.html">aws_network_interface</a>
|
2015-06-05 18:31:19 +02:00
|
|
|
</li>
|
|
|
|
|
2015-05-08 11:31:22 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-proxy-protocol-policy") %>>
|
2015-04-30 15:19:57 +02:00
|
|
|
<a href="/docs/providers/aws/r/proxy_protocol_policy.html">aws_proxy_protocol_policy</a>
|
|
|
|
</li>
|
|
|
|
|
2015-05-17 18:54:51 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-route53-delegation-set") %>>
|
|
|
|
<a href="/docs/providers/aws/r/route53_delegation_set.html">aws_route53_delegation_set</a>
|
|
|
|
</li>
|
|
|
|
|
2015-06-15 18:08:37 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-route53-health-check") %>>
|
|
|
|
<a href="/docs/providers/aws/r/route53_health_check.html">aws_route53_health_check</a>
|
|
|
|
</li>
|
|
|
|
|
2015-04-29 05:49:21 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-route53-record") %>>
|
|
|
|
<a href="/docs/providers/aws/r/route53_record.html">aws_route53_record</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li<%= sidebar_current("docs-aws-resource-route53-zone") %>>
|
|
|
|
<a href="/docs/providers/aws/r/route53_zone.html">aws_route53_zone</a>
|
|
|
|
</li>
|
|
|
|
|
2015-05-13 01:47:08 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-route53-zone-association") %>>
|
|
|
|
<a href="/docs/providers/aws/r/route53_zone_association.html">aws_route53_zone_association</a>
|
|
|
|
</li>
|
|
|
|
|
2015-05-30 16:36:04 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-route-table|") %>>
|
|
|
|
<a href="/docs/providers/aws/r/route_table.html">aws_route_table</a>
|
2015-04-29 05:49:21 +02:00
|
|
|
</li>
|
|
|
|
|
2015-05-30 16:49:18 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-route-table-association") %>>
|
|
|
|
<a href="/docs/providers/aws/r/route_table_association.html">aws_route_table_association</a>
|
2015-05-15 01:17:18 +02:00
|
|
|
</li>
|
|
|
|
|
2015-05-30 16:36:04 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-s3-bucket") %>>
|
|
|
|
<a href="/docs/providers/aws/r/s3_bucket.html">aws_s3_bucket</a>
|
2015-05-15 01:17:18 +02:00
|
|
|
</li>
|
|
|
|
|
2015-04-29 05:49:21 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-security-group") %>>
|
|
|
|
<a href="/docs/providers/aws/r/security_group.html">aws_security_group</a>
|
|
|
|
</li>
|
|
|
|
|
2015-05-15 22:09:20 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-security-group-rule") %>>
|
|
|
|
<a href="/docs/providers/aws/r/security_group_rule.html">aws_security_group_rule</a>
|
|
|
|
</li>
|
|
|
|
|
2015-05-30 16:36:04 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-sns-topic") %>>
|
|
|
|
<a href="/docs/providers/aws/r/sns_topic.html">aws_sns_topic</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li<%= sidebar_current("docs-aws-resource-sns-topic-subscription") %>>
|
|
|
|
<a href="/docs/providers/aws/r/sns_topic_subscription.html">aws_sns_topic_subscription</a>
|
|
|
|
</li>
|
|
|
|
|
provider/aws: spot_instance_request
This is an iteration on the great work done by @dalehamel in PRs #2095
and #2109.
The core team went back and forth on how to best model Spot Instance
Requests, requesting and then rejecting a separate-resource
implementation in #2109.
After more internal discussion, we landed once again on a separate
resource to model Spot Instance Requests. Out of respect for
@dalehamel's already-significant donated time, with this I'm attempting
to pick up the work to take this across the finish line.
Important architectural decisions represented here:
* Spot Instance Requests are always of type "persistent", to properly
match Terraform's declarative model.
* The spot_instance_request resource exports several attributes that
are expected to be constantly changing as the spot market changes:
spot_bid_status, spot_request_state, and instance_id. Creating
additional resource dependencies based on these attributes is not
recommended, as Terraform diffs will be continually generated to keep
up with the live changes.
* When a Spot Instance Request is deleted/canceled, an attempt is made
to terminate the last-known attached spot instance. Race conditions
dictate that this attempt cannot guarantee that the associated spot
instance is terminated immediately.
Implementation notes:
* This version of aws_spot_instance_request borrows a lot of common
code from aws_instance.
* In order to facilitate borrowing, we introduce `awsInstanceOpts`, an
internal representation of instance details that's meant to be shared
between resources. The goal here would be to refactor ASG Launch
Configurations to use the same struct.
* The new aws_spot_instance_request acc. test is passing.
* All aws_instance acc. tests remain passing.
2015-06-05 17:12:09 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-spot-instance-request") %>>
|
|
|
|
<a href="/docs/providers/aws/r/spot_instance_request.html">aws_spot_instance_request</a>
|
|
|
|
</li>
|
|
|
|
|
2015-05-15 22:09:20 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-sqs-queue") %>>
|
|
|
|
<a href="/docs/providers/aws/r/sqs_queue.html">aws_sqs_queue</a>
|
|
|
|
</li>
|
2015-04-20 20:38:21 +02:00
|
|
|
|
2015-04-29 05:49:21 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-subnet") %>>
|
|
|
|
<a href="/docs/providers/aws/r/subnet.html">aws_subnet</a>
|
|
|
|
</li>
|
|
|
|
|
2015-05-28 17:33:20 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-volume-attachment") %>>
|
|
|
|
<a href="/docs/providers/aws/r/volume_attachment.html">aws_volume_attachment</a>
|
|
|
|
</li>
|
|
|
|
|
2015-04-29 05:49:21 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-vpc") %>>
|
|
|
|
<a href="/docs/providers/aws/r/vpc.html">aws_vpc</a>
|
|
|
|
</li>
|
|
|
|
|
2015-04-28 21:57:05 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-vpc-dhcp-options") %>>
|
|
|
|
<a href="/docs/providers/aws/r/vpc_dhcp_options.html">aws_vpc_dhcp_options</a>
|
|
|
|
</li>
|
2015-04-29 05:49:21 +02:00
|
|
|
|
2015-04-28 21:57:05 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-vpc-dhcp-options-association") %>>
|
|
|
|
<a href="/docs/providers/aws/r/vpc_dhcp_options_association.html">aws_vpc_dhcp_options_association</a>
|
2015-05-01 18:23:39 +02:00
|
|
|
|
2015-05-30 16:36:04 +02:00
|
|
|
|
|
|
|
<li<%= sidebar_current("docs-aws-resource-vpc-peering") %>>
|
|
|
|
<a href="/docs/providers/aws/r/vpc_peering.html">aws_vpc_peering</a>
|
|
|
|
</li>
|
|
|
|
|
2015-05-01 18:23:39 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-vpn-connection") %>>
|
|
|
|
<a href="/docs/providers/aws/r/vpn_connection.html">aws_vpn_connection</a>
|
2015-04-29 05:49:21 +02:00
|
|
|
</li>
|
2015-04-28 21:57:05 +02:00
|
|
|
|
2015-05-04 18:21:22 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-vpn-connection-route") %>>
|
|
|
|
<a href="/docs/providers/aws/r/vpn_connection_route.html">aws_vpn_connection_route</a>
|
|
|
|
</li>
|
|
|
|
|
2015-04-28 21:57:05 +02:00
|
|
|
<li<%= sidebar_current("docs-aws-resource-vpn-gateway") %>>
|
|
|
|
<a href="/docs/providers/aws/r/vpn_gateway.html">aws_vpn_gateway</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2014-07-23 20:50:41 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= yield %>
|
2015-04-29 05:49:21 +02:00
|
|
|
<% end %>
|