terraform/website/source/docs/providers/aws/r
Clint b7ad602993 provider/aws: Fix importing of EIP by IP address (#8970)
* provider/aws: Fix importing of EIP by IP address

EIPs are meant to be imported by their allocation id, however, importing
by their EIP *appears* to work because this API actually accepts IP
lookup, despite the documentation asking for the allocation id.

This PR does:

- update docs on how to import EIPs
- fix case if user imported by IP, to switch to using the alloc id for
the resource id

I chose not to document that looking up by IP is a method of import,
because the AWS  API docs do not explicitly say that looking up by IP is
OK, so I'd rather people not do it if it's not documented to stay that
way.

Alternatively, we could parse the resource ID and reject it (remove from
state with error/warning) if it doesn't match the `eipalloc-*` format,
but I thought this was a bit better UX.

* fix issue with swapping IDs on EC2 Classic

* update docs

* update comment
2016-09-22 21:53:21 -05:00
..
alb.html.markdown provider/aws: Expose ARN suffix on ALB (#8833) 2016-09-14 15:50:10 +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 Update alb_listener_rule.html.markdown 2016-08-26 09:40:36 -05:00
alb_target_group.html.markdown provider/aws: VPC ID, Port, Protocol and Name change on 2016-09-22 17:12:39 +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 provider/aws: Add support for api_gateway_authorizer (#6320) 2016-04-25 12:22:37 +01:00
api_gateway_base_path_mapping.html.markdown Corrected stage_name argument 2016-09-06 16:40:08 +01:00
api_gateway_client_certificate.html.markdown provider/aws: Add API Gateway Client Certificate 2016-09-12 10:09:47 +01: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 provider/aws: API Gateway Custom Authorizer (#8535) 2016-08-29 20:51:59 +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: Get and export ASG ARN value (#8503) 2016-08-27 15:20:11 +01:00
autoscaling_lifecycle_hooks.html.markdown docs: Fix misspelled words 2016-09-12 07:08:00 +01:00
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 Merge pull request #6505 from hashicorp/b-cloudfront-cookies 2016-05-08 19:45:37 -04:00
cloudfront_origin_access_identity.html.markdown Add missing json attribute to documentation 2016-09-02 12:55:14 +10: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_stream.html.markdown provider/aws: `aws_cloudwatch_log_stream` resource 2016-09-04 00:26:02 +03:00
cloudwatch_log_subscription_filter.html.markdown Add cloudwatch_logs_subscription_filter provider (#5996) 2016-04-20 20:05:21 +01:00
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 Remove Region Condition From CodeCommit Repo Resource (#8778) 2016-09-12 07:30:46 +01:00
code_commit_trigger.html.markdown Added Codecommit Trigger 2016-09-12 10:17:04 +05:30
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 Added RDS event subscriptions (#6367) 2016-05-05 11:14:25 +01:00
db_instance.html.markdown provider/aws: Allow `aws_rds_instance` to upgrade the major version (#8471) 2016-08-25 13:54:40 +01: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
default_route_table.html.markdown docs: Fix misspelled words 2016-09-12 07:08:00 +01:00
default_security_group.html.markdown provider/aws: Fix other example of vpc_id => id 2016-09-22 09:09:13 +01:00
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 Fix example. Do not use deprecated attribute. (#8531) 2016-08-29 15:39:29 +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 provider/aws: Fix importing of EIP by IP address (#8970) 2016-09-22 21:53:21 -05:00
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 docs/aws: Adding as an exported parameter for the resource 2016-09-20 17:35:04 +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 docs/aws: Add `primary_endpoint_address` to the docs for (#8528) 2016-08-29 14:39:15 +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 Merge pull request #8637 from jrm16020/jeremy_tls_provider_docs_update 2016-09-03 23:11:57 +03:00
elb_attachment.html.markdown Fixed typo in aws_elb_attachment website docs 2016-09-14 23:17:19 +01: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 provider/aws: New resource `aws_spot_datafeed_subscription` 2016-09-03 20:06:40 +03: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 aws_iam_instance_profile: Restrict example perms 2016-08-25 15:28:39 -07:00
iam_policy.html.markdown
iam_policy_attachment.html.markdown provider/aws: Validate `aws_iam_policy_attachment` Name parameter to stop being empty (#8441) 2016-08-24 21:28:41 +01:00
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 aws_instance doc: fix attachment resource name 2016-09-13 08:41:39 +02: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: Add support for `cloudwatch_logging_options` to AWS 2016-09-07 23:29:08 +01: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 docs: Fix misspelled words 2016-09-12 07:08:00 +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 docs: Fix misspelled words 2016-09-12 07:08:00 +01: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 docs: Fix misspelled words 2016-09-12 07:08:00 +01:00
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 provider/aws: Add agent_version argument to AWS_OPSWORKS_STACK 2016-05-05 22:56:44 +01:00
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 provider/aws: Add reader_endpoint RDS Clusters (supersedes #8878) (#8884) 2016-09-16 16:45:04 +01: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 Correct a typo in the description of the master_password argument. (#9004) 2016-09-22 15:58:02 -05: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 Update redshift_security_group.html.markdown 2016-09-19 10:47:18 -07:00
redshift_subnet_group.html.markdown Update redshift_subnet_group.html.markdown 2016-09-18 21:41:29 -07: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 Clarify how to notify multiple lambdas (#8854) 2016-09-15 15:28:07 -05: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
s3_bucket_policy.html.markdown provider/aws: Add aws_s3_bucket_policy resource 2016-09-02 09:07:54 -07:00
security_group.html.markdown Allow use of protocol numbers for ah and esp 2016-09-21 11:52:23 -07:00
security_group_rule.html.markdown Allow use of protocol numbers for ah and esp 2016-09-21 11:52:23 -07: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 Update ses_receipt_rule_set.html.markdown 2016-09-13 17:19:04 +02: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_policy.html.markdown provider/aws: Add aws_sns_topic_policy 2016-09-04 18:34:24 +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_datafeed_subscription.html.markdown provider/aws: New resource `aws_spot_datafeed_subscription` 2016-09-03 20:06:40 +03:00
spot_fleet_request.html.markdown docs: Fix misspelled words 2016-09-12 07:08:00 +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
sqs_queue_policy.html.markdown provider/aws: Add aws_sqs_queue_policy 2016-09-05 08:17:48 +01:00
ssm_association.html.markdown provider/aws: add aws_ssm_association resource 2016-09-02 16:46:05 +03:00
ssm_document.html.markdown docs: Fix misspelled words 2016-09-12 07:08:00 +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 provider/aws: Add aws_default_route_table resource (#8323) 2016-08-25 16:02:44 -05: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 provider/aws: VPC Peering: allow default peer VPC ID 2016-09-03 23:03:31 +03: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