terraform/builtin/providers/aws
Paul Hinze 020dc03234 provider/aws: fix root_block_device for odd AMIs
Some AMIs have a RootDeviceName like "/dev/sda1" that does not appear as a
DeviceName in the BlockDeviceMapping list (which will instead have
    something like "/dev/sda")

While this seems like it breaks an invariant of AMIs, it ends up working
on the AWS side, and AMIs like this are common enough that we need to
special case it so Terraform does the right thing.

Our heuristic is: if the RootDeviceName does not appear in the
BlockDeviceMapping, assume that the DeviceName of the first
BlockDeviceMapping entry serves as the root device.

fixes #2224
2015-06-23 09:01:41 -05:00
..
test-fixtures AWS Lambda functionality 2015-06-01 09:33:45 -07:00
autoscaling_tags.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
autoscaling_tags_test.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
config.go provider/aws: Add cloudwatch_metric_alarm 2015-06-17 23:10:23 +01:00
hosted_zones.go providers/aws: Extract normalizeRegion 2015-05-08 10:49:21 -04:00
hosted_zones_test.go providers/aws: Extract normalizeRegion 2015-05-08 10:49:21 -04:00
network_acl_entry.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
network_acl_entry_test.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
provider.go provider/aws: Add autoscaling_policy 2015-06-17 23:10:23 +01:00
provider_test.go Read the "standard" AWS environment variables 2015-01-22 16:09:25 -05:00
resource_aws_app_cookie_stickiness_policy.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_app_cookie_stickiness_policy_test.go acc tests: ensure each resource has a _basic test 2015-06-07 18:18:14 -05:00
resource_aws_autoscaling_group.go typo 2015-06-18 15:47:54 -05:00
resource_aws_autoscaling_group_test.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_autoscaling_notification.go refactor the internals of this 2015-06-05 10:00:39 -05:00
resource_aws_autoscaling_notification_test.go refactor the internals of this 2015-06-05 10:00:39 -05:00
resource_aws_autoscaling_policy.go provider/aws: Add autoscaling_policy 2015-06-17 23:10:23 +01:00
resource_aws_autoscaling_policy_test.go provider/aws: Add docs for autoscaling_policy + cloudwatch_metric_alarm 2015-06-17 23:10:23 +01:00
resource_aws_cloudwatch_metric_alarm.go provider/aws: Add docs for autoscaling_policy + cloudwatch_metric_alarm 2015-06-17 23:10:23 +01:00
resource_aws_cloudwatch_metric_alarm_test.go provider/aws: Add cloudwatch_metric_alarm 2015-06-17 23:10:23 +01:00
resource_aws_customer_gateway.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_customer_gateway_test.go acc tests: ensure each resource has a _basic test 2015-06-07 18:18:14 -05:00
resource_aws_db_instance.go provider/aws: validate RDS final_snapshot_identifier 2015-06-08 08:50:56 -05:00
resource_aws_db_instance_test.go acc tests: ensure each resource has a _basic test 2015-06-07 18:18:14 -05:00
resource_aws_db_parameter_group.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_db_parameter_group_test.go acc tests: ensure each resource has a _basic test 2015-06-07 18:18:14 -05:00
resource_aws_db_security_group.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_db_security_group_test.go acc tests: ensure each resource has a _basic test 2015-06-07 18:18:14 -05:00
resource_aws_db_subnet_group.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_db_subnet_group_test.go acc tests: ensure each resource has a _basic test 2015-06-07 18:18:14 -05:00
resource_aws_dynamodb_table.go Fixes support for changing just the read / write capacity of a GSI 2015-06-15 17:05:50 -07:00
resource_aws_dynamodb_table_test.go Fix AWS SDK imports 2015-06-03 17:12:41 -07:00
resource_aws_ebs_volume.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_ebs_volume_test.go acc tests: ensure each resource has a _basic test 2015-06-07 18:18:14 -05:00
resource_aws_ecs_cluster.go provider/aws: Add new resource - aws_ecs_cluster 2015-06-03 22:47:05 +01:00
resource_aws_ecs_cluster_test.go acc tests: ensure each resource has a _basic test 2015-06-07 18:18:14 -05:00
resource_aws_ecs_service.go provider/aws: Add new resource - aws_ecs_service 2015-06-03 22:48:17 +01:00
resource_aws_ecs_service_test.go provider/aws: Add new resource - aws_ecs_service 2015-06-03 22:48:17 +01:00
resource_aws_ecs_task_definition.go provider/aws: Add new resource - aws_ecs_task_definition 2015-06-03 22:47:32 +01:00
resource_aws_ecs_task_definition_test.go acc tests: ensure each resource has a _basic test 2015-06-07 18:18:14 -05:00
resource_aws_eip.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_eip_test.go aws/provider convert _normal tests to _basic 2015-06-07 18:04:38 -05:00
resource_aws_elasticache_cluster.go Merge pull request #2160 from grubernaut/elasticache_port_required 2015-06-07 22:27:59 -07:00
resource_aws_elasticache_cluster_test.go Merge pull request #2160 from grubernaut/elasticache_port_required 2015-06-07 22:27:59 -07:00
resource_aws_elasticache_security_group.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_elasticache_security_group_test.go acc tests: ensure each resource has a _basic test 2015-06-07 18:18:14 -05:00
resource_aws_elasticache_subnet_group.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_elasticache_subnet_group_test.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_elb.go provider/aws: fix case in ELB listener protocols 2015-06-05 10:20:07 -05:00
resource_aws_elb_test.go provider/aws: fix case in ELB listener protocols 2015-06-05 10:20:07 -05:00
resource_aws_iam_access_key.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_iam_access_key_test.go aws/provider convert _normal tests to _basic 2015-06-07 18:04:38 -05:00
resource_aws_iam_group.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_iam_group_membership.go code cleanups 2015-06-09 09:11:05 -05:00
resource_aws_iam_group_membership_test.go Correct syntax error in group membership test. 2015-06-10 15:29:22 +10:00
resource_aws_iam_group_policy.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_iam_group_policy_test.go acc tests: ensure each resource has a _basic test 2015-06-07 18:18:14 -05:00
resource_aws_iam_group_test.go aws/provider convert _normal tests to _basic 2015-06-07 18:04:38 -05:00
resource_aws_iam_instance_profile.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_iam_instance_profile_test.go acc tests: ensure each resource has a _basic test 2015-06-07 18:18:14 -05:00
resource_aws_iam_policy.go provider/aws: improve iam_policy err msgs 2015-06-07 20:58:22 -05:00
resource_aws_iam_role.go Merge branch 'master' into b-aws-iam-role-profile-update 2015-06-08 08:52:38 -05:00
resource_aws_iam_role_policy.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_iam_role_policy_test.go acc tests: ensure each resource has a _basic test 2015-06-07 18:18:14 -05:00
resource_aws_iam_role_test.go Merge branch 'master' into b-aws-iam-role-profile-update 2015-06-08 08:52:38 -05:00
resource_aws_iam_server_certificate.go Normalize certificate chains as well as certificate bodies when creating AWS IAM SSL certificates 2015-06-21 01:40:09 -04:00
resource_aws_iam_server_certificate_test.go Replace AWS IAM test SSL certificate with self-signed cert, including CA chain 2015-06-21 01:40:29 -04:00
resource_aws_iam_user.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_iam_user_policy.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_iam_user_policy_test.go acc tests: ensure each resource has a _basic test 2015-06-07 18:18:14 -05:00
resource_aws_iam_user_test.go aws/provider convert _normal tests to _basic 2015-06-07 18:04:38 -05:00
resource_aws_instance.go provider/aws: fix root_block_device for odd AMIs 2015-06-23 09:01:41 -05:00
resource_aws_instance_migrate.go providers/aws: handle empty instancestate in state migration 2015-03-26 13:07:04 -05:00
resource_aws_instance_migrate_test.go providers/aws: handle empty instancestate in state migration 2015-03-26 13:07:04 -05:00
resource_aws_instance_test.go provider/aws: fix root_block_device for odd AMIs 2015-06-23 09:01:41 -05:00
resource_aws_internet_gateway.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_internet_gateway_test.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_key_pair.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_key_pair_test.go aws/provider convert _normal tests to _basic 2015-06-07 18:04:38 -05:00
resource_aws_kinesis_stream.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_kinesis_stream_test.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_lambda_function.go Expand filename if it starts with ~ 2015-06-09 12:27:40 -07:00
resource_aws_lambda_function_test.go Remove sleep from test 2015-06-09 12:13:32 -07:00
resource_aws_launch_configuration.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_launch_configuration_test.go acc tests: ensure each resource has a _basic test 2015-06-07 18:18:14 -05:00
resource_aws_lb_cookie_stickiness_policy.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_lb_cookie_stickiness_policy_test.go acc tests: ensure each resource has a _basic test 2015-06-07 18:18:14 -05:00
resource_aws_main_route_table_association.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_main_route_table_association_test.go acc tests: ensure each resource has a _basic test 2015-06-07 18:18:14 -05:00
resource_aws_network_acl.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_network_acl_test.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_network_interface.go Fixing bugs with `aws_network_interface` and added docs. 2015-06-04 11:44:33 -04:00
resource_aws_network_interface_test.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_proxy_protocol_policy.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_proxy_protocol_policy_test.go acc tests: ensure each resource has a _basic test 2015-06-07 18:18:14 -05:00
resource_aws_route53_health_check.go provider/aws: add aws_route53_health_check 2015-06-04 05:58:45 -05:00
resource_aws_route53_health_check_test.go provider/aws: add aws_route53_health_check 2015-06-04 05:58:45 -05:00
resource_aws_route53_record.go provider/aws: add aws_route53_health_check 2015-06-04 05:58:45 -05:00
resource_aws_route53_record_test.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_route53_zone.go provider/aws: add aws_route53_health_check 2015-06-04 05:58:45 -05:00
resource_aws_route53_zone_association.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_route53_zone_association_test.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_route53_zone_test.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_route_table.go provider/aws: fix panic when route has no cidr_block 2015-06-03 13:43:05 -05:00
resource_aws_route_table_association.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_route_table_association_test.go acc tests: ensure each resource has a _basic test 2015-06-07 18:18:14 -05:00
resource_aws_route_table_test.go aws/provider convert _normal tests to _basic 2015-06-07 18:04:38 -05:00
resource_aws_s3_bucket.go Corrected Frankfurt S3 Website Endpoint fixes #2258 2015-06-07 11:39:18 +02:00
resource_aws_s3_bucket_test.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_security_group.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_security_group_rule.go update link to actually work 2015-06-19 11:50:10 -05:00
resource_aws_security_group_rule_migrate.go remove meta usage, stub test 2015-06-16 15:54:27 -05:00
resource_aws_security_group_rule_migrate_test.go remove debugging 2015-06-18 08:39:08 -05:00
resource_aws_security_group_rule_test.go clean up old, incompatible test 2015-06-16 16:30:33 -05:00
resource_aws_security_group_test.go aws/provider convert _normal tests to _basic 2015-06-07 18:04:38 -05:00
resource_aws_sns_topic.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_sns_topic_subscription.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_sns_topic_subscription_test.go acc tests: ensure each resource has a _basic test 2015-06-07 18:18:14 -05:00
resource_aws_sns_topic_test.go acc tests: ensure each resource has a _basic test 2015-06-07 18:18:14 -05:00
resource_aws_spot_instance_request.go provider/aws: spot_instance_request 2015-06-07 17:33:32 -05:00
resource_aws_spot_instance_request_test.go provider/aws: spot_instance_request 2015-06-07 17:33:32 -05:00
resource_aws_sqs_queue.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_sqs_queue_test.go acc tests: ensure each resource has a _basic test 2015-06-07 18:18:14 -05:00
resource_aws_subnet.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_subnet_test.go acc tests: ensure each resource has a _basic test 2015-06-07 18:18:14 -05:00
resource_aws_volume_attachment.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_volume_attachment_test.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_vpc.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_vpc_dhcp_options.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_vpc_dhcp_options_association.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_vpc_dhcp_options_association_test.go acc tests: ensure each resource has a _basic test 2015-06-07 18:18:14 -05:00
resource_aws_vpc_dhcp_options_test.go acc tests: ensure each resource has a _basic test 2015-06-07 18:18:14 -05:00
resource_aws_vpc_peering_connection.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_vpc_peering_connection_test.go aws/provider convert _normal tests to _basic 2015-06-07 18:04:38 -05:00
resource_aws_vpc_test.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_vpn_connection.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_vpn_connection_test.go acc tests: ensure each resource has a _basic test 2015-06-07 18:18:14 -05:00
resource_aws_vpn_gateway.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_vpn_gateway_test.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_vpn_connection_route.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_vpn_connection_route_test.go acc tests: ensure each resource has a _basic test 2015-06-07 18:18:14 -05:00
s3_tags.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
s3_tags_test.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
structure.go provider/aws: Add new resource - aws_ecs_service 2015-06-03 22:48:17 +01:00
structure_test.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
tags.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
tagsEC.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
tagsEC_test.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
tagsELB.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
tagsELB_test.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
tagsRDS.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
tagsRDS_test.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
tags_route53.go provider/aws: add aws_route53_health_check 2015-06-04 05:58:45 -05:00
tags_route53_test.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
tags_test.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
website_endpoint_url_test.go Corrected Frankfurt S3 Website Endpoint fixes #2258 2015-06-07 11:39:18 +02:00