diff --git a/website/source/docs/providers/aws/r/api_gateway_account.html.markdown b/website/source/docs/providers/aws/r/api_gateway_account.html.markdown index 23afc8dfb..1ea2fe392 100644 --- a/website/source/docs/providers/aws/r/api_gateway_account.html.markdown +++ b/website/source/docs/providers/aws/r/api_gateway_account.html.markdown @@ -82,3 +82,12 @@ The following attribute is exported: * `burst_limit` - The absolute maximum number of times API Gateway allows the API to be called per second (RPS). * `rate_limit` - The number of times API Gateway allows the API to be called per second on average (RPS). + + +## Import + +API Gateway Accounts can be imported using the word `api-gateway-account`, e.g. + +``` +$ terraform import aws_api_gateway_account.demo api-gateway-account +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/api_gateway_api_key.html.markdown b/website/source/docs/providers/aws/r/api_gateway_api_key.html.markdown index becdb07f8..eeb8f14c7 100644 --- a/website/source/docs/providers/aws/r/api_gateway_api_key.html.markdown +++ b/website/source/docs/providers/aws/r/api_gateway_api_key.html.markdown @@ -51,3 +51,12 @@ The following arguments are supported: The following attributes are exported: * `id` - The ID of the API key + + +## Import + +API Gateway Keys can be imported using the `id`, e.g. + +``` +$ terraform import aws_api_gateway_api_key.my_demo_key 8bklk8bl1k3sB38D9B3l0enyWT8c09B30lkq0blk +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/autoscaling_group.html.markdown b/website/source/docs/providers/aws/r/autoscaling_group.html.markdown index e8599f44c..f3caab2d9 100644 --- a/website/source/docs/providers/aws/r/autoscaling_group.html.markdown +++ b/website/source/docs/providers/aws/r/autoscaling_group.html.markdown @@ -178,3 +178,12 @@ If ASG creation takes more than a few minutes, this could indicate one of a number of configuration problems. See the [AWS Docs on Load Balancer Troubleshooting](https://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elb-troubleshooting.html) for more information. + + +## Import + +AutoScaling Groups can be imported using the `name`, e.g. + +``` +$ terraform import aws_autoscaling_group.web web-asg +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/cloudfront_origin_access_identity.html.markdown b/website/source/docs/providers/aws/r/cloudfront_origin_access_identity.html.markdown index ebc54775a..6e023a931 100644 --- a/website/source/docs/providers/aws/r/cloudfront_origin_access_identity.html.markdown +++ b/website/source/docs/providers/aws/r/cloudfront_origin_access_identity.html.markdown @@ -101,3 +101,12 @@ aws_s3_bucket "bucket" { [2]: http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html [3]: /docs/providers/aws/r/cloudfront_distribution.html [4]: /docs/providers/aws/r/s3_bucket.html + + +## Import + +Cloudfront Origin Access Identities can be imported using the `id`, e.g. + +``` +$ terraform import aws_cloudfront_origin_access_identity.origin_access E74FTE3AEXAMPLE +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/cloudtrail.html.markdown b/website/source/docs/providers/aws/r/cloudtrail.html.markdown index 2afe727bf..3d8d3d290 100644 --- a/website/source/docs/providers/aws/r/cloudtrail.html.markdown +++ b/website/source/docs/providers/aws/r/cloudtrail.html.markdown @@ -87,3 +87,12 @@ The following attributes are exported: * `id` - The name of the trail. * `home_region` - The region in which the trail was created. * `arn` - The Amazon Resource Name of the trail. + + +## Import + +Cloudtrails can be imported using the `name`, e.g. + +``` +$ terraform import aws_cloudtrail.sample my-sample-trail +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/cloudwatch_event_rule.html.markdown b/website/source/docs/providers/aws/r/cloudwatch_event_rule.html.markdown index f3ed87cb7..a1bd581c9 100644 --- a/website/source/docs/providers/aws/r/cloudwatch_event_rule.html.markdown +++ b/website/source/docs/providers/aws/r/cloudwatch_event_rule.html.markdown @@ -55,3 +55,12 @@ The following arguments are supported: The following attributes are exported: * `arn` - The Amazon Resource Name (ARN) of the rule. + + +## Import + +Cloudwatch Event Rules can be imported using the `name`, e.g. + +``` +$ terraform import aws_cloudwatch_event_rule.console capture-console-sign-in +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/cloudwatch_log_group.html.markdown b/website/source/docs/providers/aws/r/cloudwatch_log_group.html.markdown index e784c6389..7293a0c17 100644 --- a/website/source/docs/providers/aws/r/cloudwatch_log_group.html.markdown +++ b/website/source/docs/providers/aws/r/cloudwatch_log_group.html.markdown @@ -31,3 +31,12 @@ The following arguments are supported: The following attributes are exported: * `arn` - The Amazon Resource Name (ARN) specifying the log group. + + +## Import + +Cloudwatch Log Groups can be imported using the `name`, e.g. + +``` +$ terraform import aws_cloudwatch_log_group.test_group yada +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/cloudwatch_metric_alarm.html.markdown b/website/source/docs/providers/aws/r/cloudwatch_metric_alarm.html.markdown index 75ae6ceb1..d91b8863e 100644 --- a/website/source/docs/providers/aws/r/cloudwatch_metric_alarm.html.markdown +++ b/website/source/docs/providers/aws/r/cloudwatch_metric_alarm.html.markdown @@ -84,3 +84,12 @@ The following attributes are exported: * `id` - The ID of the health check + + +## Import + +Cloud Metric Alarms can be imported using the `alarm_name`, e.g. + +``` +$ terraform import aws_cloudwatch_metric_alarm.test alarm-12345 +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/customer_gateway.html.markdown b/website/source/docs/providers/aws/r/customer_gateway.html.markdown index 5a83e6c43..0c40b4450 100644 --- a/website/source/docs/providers/aws/r/customer_gateway.html.markdown +++ b/website/source/docs/providers/aws/r/customer_gateway.html.markdown @@ -44,3 +44,12 @@ The following attributes are exported: * `ip_address` - The IP address of the gateway's Internet-routable external interface. * `type` - The type of customer gateway. * `tags` - Tags applied to the gateway. + + +## Import + +Customer Gateways can be imported using the `id`, e.g. + +``` +$ terraform import aws_customer_gateway.main cgw-b4dc3961 +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/db_instance.html.markdown b/website/source/docs/providers/aws/r/db_instance.html.markdown index 652d2158f..234a97985 100644 --- a/website/source/docs/providers/aws/r/db_instance.html.markdown +++ b/website/source/docs/providers/aws/r/db_instance.html.markdown @@ -141,3 +141,11 @@ On Oracle instances the following is exported additionally: [1]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.Replication.html [2]: https://docs.aws.amazon.com/fr_fr/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Maintenance.html + +## Import + +DB Instances can be imported using the `identifier`, e.g. + +``` +$ terraform import aws_db_instance.default mydb-rds-instance +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/db_option_group.html.markdown b/website/source/docs/providers/aws/r/db_option_group.html.markdown index 209663cec..2c6feaab5 100644 --- a/website/source/docs/providers/aws/r/db_option_group.html.markdown +++ b/website/source/docs/providers/aws/r/db_option_group.html.markdown @@ -62,3 +62,11 @@ Option Settings blocks support the following: The following attributes are exported: * `arn` - The ARN of the db option group. + +## Import + +DB Option groups can be imported using the `name`, e.g. + +``` +$ terraform import aws_db_option_group.bar mysql-option-group +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/db_parameter_group.html.markdown b/website/source/docs/providers/aws/r/db_parameter_group.html.markdown index 4a60e79a3..88addff48 100644 --- a/website/source/docs/providers/aws/r/db_parameter_group.html.markdown +++ b/website/source/docs/providers/aws/r/db_parameter_group.html.markdown @@ -51,3 +51,11 @@ The following attributes are exported: * `id` - The db parameter group name. * `arn` - The ARN of the db parameter group. + +## Import + +DB Parameter groups can be imported using the `name`, e.g. + +``` +$ terraform import aws_db_parameter_group.rds_pg rds-pg +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/db_subnet_group.html.markdown b/website/source/docs/providers/aws/r/db_subnet_group.html.markdown index 608336d9c..087186845 100644 --- a/website/source/docs/providers/aws/r/db_subnet_group.html.markdown +++ b/website/source/docs/providers/aws/r/db_subnet_group.html.markdown @@ -38,3 +38,11 @@ The following attributes are exported: * `id` - The db subnet group name. * `arn` - The ARN of the db subnet group. + +## Import + +DB Subnet groups can be imported using the `name`, e.g. + +``` +$ terraform import aws_db_subnet_group.default production-subnet-group +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/ebs_volume.html.md b/website/source/docs/providers/aws/r/ebs_volume.html.md index baf18c6ec..395d56666 100644 --- a/website/source/docs/providers/aws/r/ebs_volume.html.md +++ b/website/source/docs/providers/aws/r/ebs_volume.html.md @@ -44,3 +44,10 @@ The following attributes are exported: * `id` - The volume ID (e.g. vol-59fcb34e). +## Import + +EBS Volumes can be imported using the `id`, e.g. + +``` +$ terraform import aws_ebs_volume.data vol-049df61146c4d7901 +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/ecr_repository.html.markdown b/website/source/docs/providers/aws/r/ecr_repository.html.markdown index 2ab3bfac3..f10bfc0f6 100644 --- a/website/source/docs/providers/aws/r/ecr_repository.html.markdown +++ b/website/source/docs/providers/aws/r/ecr_repository.html.markdown @@ -36,3 +36,12 @@ The following attributes are exported: * `name` - The name of the repository. * `registry_id` - The registry ID where the repository was created. * `repository_url` - The URL of the repository (in the form `https://aws_account_id.dkr.ecr.region.amazonaws.com/repositoryName` + + +## Import + +ECR Repositories can be imported using the `name`, e.g. + +``` +$ terraform import aws_ecr_repository.service test-service +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/efs_file_system.html.markdown b/website/source/docs/providers/aws/r/efs_file_system.html.markdown index ac4cbb0b3..ac017144f 100644 --- a/website/source/docs/providers/aws/r/efs_file_system.html.markdown +++ b/website/source/docs/providers/aws/r/efs_file_system.html.markdown @@ -33,3 +33,12 @@ The following arguments are supported: The following attributes are exported: * `id` - The ID that identifies the file system + + +## Import + +EFS Filesystems can be imported using the `id`, e.g. + +``` +$ terraform import aws_efs_file_system.foo fs-6fa144c6 +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/efs_mount_target.html.markdown b/website/source/docs/providers/aws/r/efs_mount_target.html.markdown index b54ff9730..3764926df 100644 --- a/website/source/docs/providers/aws/r/efs_mount_target.html.markdown +++ b/website/source/docs/providers/aws/r/efs_mount_target.html.markdown @@ -48,3 +48,12 @@ The following attributes are exported: * `id` - The ID of the mount target * `dns_name` - The DNS name for the given subnet/AZ per [documented convention](http://docs.aws.amazon.com/efs/latest/ug/mounting-fs-mount-cmd-dns-name.html) * `network_interface_id` - The ID of the network interface that Amazon EFS created when it created the mount target. + + +## Import + +EFS Mount Targets can be imported using the `id`, e.g. + +``` +$ terraform import aws_efs_mount_target.alpha fsmt-52a643fb +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/elastic_beanstalk_application.html.markdown b/website/source/docs/providers/aws/r/elastic_beanstalk_application.html.markdown index 25bbe7f66..ab029d374 100644 --- a/website/source/docs/providers/aws/r/elastic_beanstalk_application.html.markdown +++ b/website/source/docs/providers/aws/r/elastic_beanstalk_application.html.markdown @@ -37,3 +37,12 @@ The following attributes are exported: * `name` * `description` + + +## Import + +Elastic Beanstalk Applications can be imported using the `name`, e.g. + +``` +$ terraform import aws_elastic_beanstalk_application.tf_test tf-test-name +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/elastic_beanstalk_environment.html.markdown b/website/source/docs/providers/aws/r/elastic_beanstalk_environment.html.markdown index bdd008477..d5492517f 100644 --- a/website/source/docs/providers/aws/r/elastic_beanstalk_environment.html.markdown +++ b/website/source/docs/providers/aws/r/elastic_beanstalk_environment.html.markdown @@ -95,3 +95,12 @@ The following attributes are exported: [1]: http://docs.aws.amazon.com/fr_fr/elasticbeanstalk/latest/dg/concepts.platforms.html + + +## Import + +Elastic Beanstalk Environments can be imported using the `id`, e.g. + +``` +$ terraform import aws_elastic_beanstalk_environment.prodenv e-rpqsewtp2j +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/elasticache_parameter_group.html.markdown b/website/source/docs/providers/aws/r/elasticache_parameter_group.html.markdown index 726dff4bb..e2c58427a 100644 --- a/website/source/docs/providers/aws/r/elasticache_parameter_group.html.markdown +++ b/website/source/docs/providers/aws/r/elasticache_parameter_group.html.markdown @@ -46,3 +46,12 @@ Parameter blocks support the following: The following attributes are exported: * `id` - The ElastiCache parameter group name. + + +## Import + +ElastiCache Parameter Groups can be imported using the `name`, e.g. + +``` +$ terraform import aws_elasticache_parameter_group.default redis-params +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/elasticache_subnet_group.html.markdown b/website/source/docs/providers/aws/r/elasticache_subnet_group.html.markdown index 6676fe83b..b3a15eac6 100644 --- a/website/source/docs/providers/aws/r/elasticache_subnet_group.html.markdown +++ b/website/source/docs/providers/aws/r/elasticache_subnet_group.html.markdown @@ -55,3 +55,11 @@ The following attributes are exported: * `name` * `subnet_ids` + +## Import + +ElastiCache Subnet Groups can be imported using the `name`, e.g. + +``` +$ terraform import aws_elasticache_subnet_group.bar tf-test-cache-subnet +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/elb.html.markdown b/website/source/docs/providers/aws/r/elb.html.markdown index c8e1eabdc..18486b528 100644 --- a/website/source/docs/providers/aws/r/elb.html.markdown +++ b/website/source/docs/providers/aws/r/elb.html.markdown @@ -128,3 +128,11 @@ The following attributes are exported: part of your inbound rules for your load balancer's back-end application instances. Only available on ELBs launched in a VPC. * `zone_id` - The canonical hosted zone ID of the ELB (to be used in a Route 53 Alias record) + +## Import + +ELBs can be imported using the `name`, e.g. + +``` +$ terraform import aws_elb.bar elb-production-12345 +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/flow_log.html.markdown b/website/source/docs/providers/aws/r/flow_log.html.markdown index 3f73634e7..d0ea141ef 100644 --- a/website/source/docs/providers/aws/r/flow_log.html.markdown +++ b/website/source/docs/providers/aws/r/flow_log.html.markdown @@ -82,3 +82,11 @@ The following arguments are supported: The following attributes are exported: * `id` - The Flow Log ID + +## Import + +Flow Logs can be imported using the `id`, e.g. + +``` +$ terraform import aws_flow_log.test_flow_log fl-1a2b3c4d +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/glacier_vault.html.markdown b/website/source/docs/providers/aws/r/glacier_vault.html.markdown index c0b6d8685..734c93b1d 100644 --- a/website/source/docs/providers/aws/r/glacier_vault.html.markdown +++ b/website/source/docs/providers/aws/r/glacier_vault.html.markdown @@ -72,3 +72,11 @@ The following attributes are exported: * `location` - The URI of the vault that was created. * `arn` - The ARN of the vault. + +## Import + +Glacier Vaults can be imported using the `name`, e.g. + +``` +$ terraform import aws_glacier_vault.archive my_archive +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/iam_account_password_policy.html.markdown b/website/source/docs/providers/aws/r/iam_account_password_policy.html.markdown index 072f2c48c..208e1e450 100644 --- a/website/source/docs/providers/aws/r/iam_account_password_policy.html.markdown +++ b/website/source/docs/providers/aws/r/iam_account_password_policy.html.markdown @@ -49,3 +49,12 @@ The following attributes are exported: * `expire_passwords` - Indicates whether passwords in the account expire. Returns `true` if `max_password_age` contains a value greater than `0`. Returns `false` if it is `0` or _not present_. + + +## Import + +IAM Account Password Policy can be imported using the work `iam-account-password-policy`, e.g. + +``` +$ terraform import aws_iam_account_password_policy.strict iam-account-password-policy +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/iam_group.html.markdown b/website/source/docs/providers/aws/r/iam_group.html.markdown index 692dc3d49..3440a25dd 100644 --- a/website/source/docs/providers/aws/r/iam_group.html.markdown +++ b/website/source/docs/providers/aws/r/iam_group.html.markdown @@ -37,3 +37,11 @@ The following attributes are exported: * `unique_id` - The [unique ID][1] assigned by AWS. [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html#GUIDs + +## Import + +IAM Groups can be imported using the `name`, e.g. + +``` +$ terraform import aws_iam_group.developers developers +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/iam_saml_provider.html.markdown b/website/source/docs/providers/aws/r/iam_saml_provider.html.markdown index 49fe6ec73..f656cd86a 100644 --- a/website/source/docs/providers/aws/r/iam_saml_provider.html.markdown +++ b/website/source/docs/providers/aws/r/iam_saml_provider.html.markdown @@ -32,3 +32,11 @@ The following attributes are exported: * `arn` - The ARN assigned by AWS for this provider. * `valid_until` - The expiration date and time for the SAML provider in RFC1123 format, e.g. `Mon, 02 Jan 2006 15:04:05 MST`. + +## Import + +IAM SAML Providers can be imported using the `arn`, e.g. + +``` +$ terraform import aws_iam_saml_provider.default arn:aws:iam::123456789012:saml-provider/SAMLADFS +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/iam_user.html.markdown b/website/source/docs/providers/aws/r/iam_user.html.markdown index ef53316e8..acc79b749 100644 --- a/website/source/docs/providers/aws/r/iam_user.html.markdown +++ b/website/source/docs/providers/aws/r/iam_user.html.markdown @@ -57,3 +57,12 @@ The following attributes are exported: * `arn` - The ARN assigned by AWS for this user. [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html#GUIDs + + +## Import + +IAM Users can be imported using the `name`, e.g. + +``` +$ terraform import aws_iam_user.lb loadbalancer +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/instance.html.markdown b/website/source/docs/providers/aws/r/instance.html.markdown index 227a5f3d5..5681109b5 100644 --- a/website/source/docs/providers/aws/r/instance.html.markdown +++ b/website/source/docs/providers/aws/r/instance.html.markdown @@ -159,3 +159,12 @@ The following attributes are exported: * `security_groups` - The associated security groups. * `vpc_security_group_ids` - The associated security groups in non-default VPC * `subnet_id` - The VPC subnet ID. + + +## Import + +Instances can be imported using the `id`, e.g. + +``` +$ terraform import aws_instance.web i-12345678 +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/internet_gateway.html.markdown b/website/source/docs/providers/aws/r/internet_gateway.html.markdown index cefedc6ad..7b3cf86d1 100644 --- a/website/source/docs/providers/aws/r/internet_gateway.html.markdown +++ b/website/source/docs/providers/aws/r/internet_gateway.html.markdown @@ -47,3 +47,11 @@ The following attributes are exported: * `id` - The ID of the Internet Gateway. + +## Import + +Internet Gateways can be imported using the `id`, e.g. + +``` +$ terraform import aws_internet_gateway.gw igw-c0a643a9 +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/key_pair.html.markdown b/website/source/docs/providers/aws/r/key_pair.html.markdown index df2e3200f..3bb37c948 100644 --- a/website/source/docs/providers/aws/r/key_pair.html.markdown +++ b/website/source/docs/providers/aws/r/key_pair.html.markdown @@ -40,3 +40,11 @@ The following attributes are exported: * `key_name` - The key pair name. * `fingerprint` - The MD5 public key fingerprint as specified in section 4 of RFC 4716. + +## Import + +Key Pairs can be imported using the `key_name`, e.g. + +``` +$ terraform import aws_key_pair.deployer deployer-key +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/kms_key.html.markdown b/website/source/docs/providers/aws/r/kms_key.html.markdown index 751babb71..9864a8a53 100644 --- a/website/source/docs/providers/aws/r/kms_key.html.markdown +++ b/website/source/docs/providers/aws/r/kms_key.html.markdown @@ -39,3 +39,11 @@ The following attributes are exported: * `arn` - The Amazon Resource Name (ARN) of the key. * `key_id` - The globally unique identifier for the key. + +## Import + +KMS Keys can be imported using the `id`, e.g. + +``` +$ terraform import aws_kms_key.a arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/lambda_function.html.markdown b/website/source/docs/providers/aws/r/lambda_function.html.markdown index ef95b7831..9466565da 100644 --- a/website/source/docs/providers/aws/r/lambda_function.html.markdown +++ b/website/source/docs/providers/aws/r/lambda_function.html.markdown @@ -79,3 +79,11 @@ resource "aws_lambda_function" "test_lambda" { [5]: https://docs.aws.amazon.com/lambda/latest/dg/limits.html [6]: https://docs.aws.amazon.com/lambda/latest/dg/API_CreateFunction.html#SSS-CreateFunction-request-Runtime [7]: http://docs.aws.amazon.com/lambda/latest/dg/vpc.html + +## Import + +Lambda Functions can be imported using the `function_name`, e.g. + +``` +$ terraform import aws_lambda_function.tesr_lambda my_test_lambda_function +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/launch_configuration.html.markdown b/website/source/docs/providers/aws/r/launch_configuration.html.markdown index e35fc51f6..940538b0b 100644 --- a/website/source/docs/providers/aws/r/launch_configuration.html.markdown +++ b/website/source/docs/providers/aws/r/launch_configuration.html.markdown @@ -214,3 +214,11 @@ The following attributes are exported: [1]: /docs/providers/aws/r/autoscaling_group.html [2]: /docs/configuration/resources.html#lifecycle [3]: /docs/providers/aws/r/spot_instance_request.html + +## Import + +Launch configurations can be imported using the `name`, e.g. + +``` +$ terraform import aws_launch_configuration.as_conf terraform-lg-123456 +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/nat_gateway.html.markdown b/website/source/docs/providers/aws/r/nat_gateway.html.markdown index 5f831c043..d87913a3e 100644 --- a/website/source/docs/providers/aws/r/nat_gateway.html.markdown +++ b/website/source/docs/providers/aws/r/nat_gateway.html.markdown @@ -49,3 +49,11 @@ The following attributes are exported: * `network_interface_id` - The ENI ID of the network interface created by the NAT gateway. * `private_ip` - The private IP address of the NAT Gateway. * `public_ip` - The public IP address of the NAT Gateway. + +## Import + +NAT Gateways can be imported using the `id`, e.g. + +``` +$ terraform import aws_nat_gateway.private_gw nat-05dba92075d71c408 +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/network_acl.html.markdown b/website/source/docs/providers/aws/r/network_acl.html.markdown index 1dc11e902..e78fa6783 100644 --- a/website/source/docs/providers/aws/r/network_acl.html.markdown +++ b/website/source/docs/providers/aws/r/network_acl.html.markdown @@ -73,3 +73,11 @@ The following attributes are exported: * `id` - The ID of the network ACL + +## Import + +Network ACLs can be imported using the `id`, e.g. + +``` +$ terraform import aws_network_acl.main acl-7aaabd18 +``` diff --git a/website/source/docs/providers/aws/r/network_interface.markdown b/website/source/docs/providers/aws/r/network_interface.markdown index a04b3b191..e52033ed3 100644 --- a/website/source/docs/providers/aws/r/network_interface.markdown +++ b/website/source/docs/providers/aws/r/network_interface.markdown @@ -53,3 +53,12 @@ The following attributes are exported: * `source_dest_check` - Whether source destination checking is enabled * `tags` - Tags assigned to the ENI. + + +## Import + +Network Interfaces can be imported using the `id`, e.g. + +``` +$ terraform import aws_network_interface.test eni-e5aa89a3 +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/placement_group.html.markdown b/website/source/docs/providers/aws/r/placement_group.html.markdown index 1e7c024fa..56cafeb7c 100644 --- a/website/source/docs/providers/aws/r/placement_group.html.markdown +++ b/website/source/docs/providers/aws/r/placement_group.html.markdown @@ -32,3 +32,11 @@ The following arguments are supported: The following attributes are exported: * `id` - The name of the placement group. + +## Import + +Placement groups can be imported using the `name`, e.g. + +``` +$ terraform import aws_placement_group.prod_pg production-placement-group +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/rds_cluster.html.markdown b/website/source/docs/providers/aws/r/rds_cluster.html.markdown index f6b8f9b40..4d628bdb5 100644 --- a/website/source/docs/providers/aws/r/rds_cluster.html.markdown +++ b/website/source/docs/providers/aws/r/rds_cluster.html.markdown @@ -109,3 +109,11 @@ The following attributes are exported: [2]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html [3]: /docs/providers/aws/r/rds_cluster_instance.html [4]: http://docs.aws.amazon.com/fr_fr/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Maintenance.html + +## Import + +RDS Clusters can be imported using the `cluster_identifier`, e.g. + +``` +$ terraform import aws_rds_cluster.aurora_cluster aurora-prod-cluster +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/rds_cluster_instance.html.markdown b/website/source/docs/providers/aws/r/rds_cluster_instance.html.markdown index dfca6cdbc..7408f90d5 100644 --- a/website/source/docs/providers/aws/r/rds_cluster_instance.html.markdown +++ b/website/source/docs/providers/aws/r/rds_cluster_instance.html.markdown @@ -90,3 +90,11 @@ this instance is a read replica [4]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Aurora.Managing.html [5]: /docs/configuration/resources.html#count [6]: https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBInstance.html + +## Import + +Redshift Cluster Instances can be imported using the `identifier`, e.g. + +``` +$ terraform import aws_rds_cluster_instance.prod_instance_1 aurora-cluster-instance-1 +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/rds_cluster_parameter_group.markdown b/website/source/docs/providers/aws/r/rds_cluster_parameter_group.markdown index 617ec6f35..085dd38a6 100644 --- a/website/source/docs/providers/aws/r/rds_cluster_parameter_group.markdown +++ b/website/source/docs/providers/aws/r/rds_cluster_parameter_group.markdown @@ -53,3 +53,11 @@ The following attributes are exported: * `id` - The db cluster parameter group name. * `arn` - The ARN of the db cluster parameter group. + +## Import + +Redshift Clusters can be imported using the `name`, e.g. + +``` +$ terraform import aws_rds_cluster_parameter_group.cluster_pg production-pg-1 +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/redshift_cluster.html.markdown b/website/source/docs/providers/aws/r/redshift_cluster.html.markdown index fd57c192d..daa00fdfd 100644 --- a/website/source/docs/providers/aws/r/redshift_cluster.html.markdown +++ b/website/source/docs/providers/aws/r/redshift_cluster.html.markdown @@ -82,3 +82,11 @@ The following attributes are exported: * `cluster_subnet_group_name` - The name of a cluster subnet group to be associated with this cluster * `cluster_public_key` - The public key for the cluster * `cluster_revision_number` - The specific revision number of the database in the cluster + +## Import + +Redshift Clusters can be imported using the `cluster_identifier`, e.g. + +``` +$ terraform import aws_redshift_cluster.myprodcluster tf-redshift-cluster-12345 +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/redshift_parameter_group.html.markdown b/website/source/docs/providers/aws/r/redshift_parameter_group.html.markdown index 896ae9f96..3b60b7a29 100644 --- a/website/source/docs/providers/aws/r/redshift_parameter_group.html.markdown +++ b/website/source/docs/providers/aws/r/redshift_parameter_group.html.markdown @@ -50,3 +50,11 @@ You can read more about the parameters that Redshift supports in the [documentat The following attributes are exported: * `id` - The Redshift parameter group name. + +## Import + +Redshift Parameter Groups can be imported using the `name`, e.g. + +``` +$ terraform import aws_redshift_parameter_group.paramgroup1 parameter-group-test-terraform +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/redshift_subnet_group.html.markdown b/website/source/docs/providers/aws/r/redshift_subnet_group.html.markdown index 5c73b5f0b..a25a9c387 100644 --- a/website/source/docs/providers/aws/r/redshift_subnet_group.html.markdown +++ b/website/source/docs/providers/aws/r/redshift_subnet_group.html.markdown @@ -56,3 +56,10 @@ The following attributes are exported: * `id` - The Redshift Subnet group ID. +## Import + +Redshift subnet groups can be imported using the `name`, e.g. + +``` +$ terraform import aws_redshift_subnet_group.testgroup1 test-cluster-subnet-group +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/route53_delegation_set.html.markdown b/website/source/docs/providers/aws/r/route53_delegation_set.html.markdown index cf6ddb59e..f74adb438 100644 --- a/website/source/docs/providers/aws/r/route53_delegation_set.html.markdown +++ b/website/source/docs/providers/aws/r/route53_delegation_set.html.markdown @@ -42,3 +42,13 @@ The following attributes are exported: * `id` - The delegation set ID * `name_servers` - A list of authoritative name servers for the hosted zone (effectively a list of NS records). + + + +## Import + +Route53 Delegation Sets can be imported using the `delegation set id`, e.g. + +``` +$ terraform import aws_route53_delegation_set.set1 N1PA6795SAMPLE +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/route53_health_check.html.markdown b/website/source/docs/providers/aws/r/route53_health_check.html.markdown index 357972eea..6d2c66a5c 100644 --- a/website/source/docs/providers/aws/r/route53_health_check.html.markdown +++ b/website/source/docs/providers/aws/r/route53_health_check.html.markdown @@ -56,3 +56,11 @@ The following arguments are supported: At least one of either `fqdn` or `ip_address` must be specified. + +## Import + +Route53 Health Checks can be imported using the `health check id`, e.g. + +``` +$ terraform import aws_route53_health_check.http_check abcdef11-2222-3333-4444-555555fedcba +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/route53_zone.html.markdown b/website/source/docs/providers/aws/r/route53_zone.html.markdown index 79543a46f..061946a9c 100644 --- a/website/source/docs/providers/aws/r/route53_zone.html.markdown +++ b/website/source/docs/providers/aws/r/route53_zone.html.markdown @@ -69,3 +69,12 @@ The following attributes are exported: * `zone_id` - The Hosted Zone ID. This can be referenced by zone records. * `name_servers` - A list of name servers in associated (or default) delegation set. Find more about delegation sets in [AWS docs](https://docs.aws.amazon.com/Route53/latest/APIReference/actions-on-reusable-delegation-sets.html). + + +## Import + +Route53 Zones can be imported using the `zone id`, e.g. + +``` +$ terraform import aws_route53_zone.myzone Z1D633PJN98FT9 +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/route_table.html.markdown b/website/source/docs/providers/aws/r/route_table.html.markdown index 0b9c036c1..dae3c2c19 100644 --- a/website/source/docs/providers/aws/r/route_table.html.markdown +++ b/website/source/docs/providers/aws/r/route_table.html.markdown @@ -61,3 +61,11 @@ The following attributes are exported: attribute once the route resource is created. * `id` - The ID of the routing table + +## Import + +Route Tables can be imported using the `route table id`, e.g. + +``` +$ terraform import aws_route_table.public_rt rtb-22574640 +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/security_group.html.markdown b/website/source/docs/providers/aws/r/security_group.html.markdown index 470e6e68c..15e5a9ed8 100644 --- a/website/source/docs/providers/aws/r/security_group.html.markdown +++ b/website/source/docs/providers/aws/r/security_group.html.markdown @@ -152,3 +152,12 @@ The following attributes are exported: * `description` - The description of the security group * `ingress` - The ingress rules. See above for more. * `egress` - The egress rules. See above for more. + + +## Import + +Security Groups can be imported using the `security group id`, e.g. + +``` +$ terraform import aws_security_group.elb_sg sg-903004f8 +``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/simpledb_domain.html.markdown b/website/source/docs/providers/aws/r/simpledb_domain.html.markdown index e63bae36d..d19d47981 100644 --- a/website/source/docs/providers/aws/r/simpledb_domain.html.markdown +++ b/website/source/docs/providers/aws/r/simpledb_domain.html.markdown @@ -35,5 +35,5 @@ The following attributes are exported: SimpleDB Domains can be imported using the `name`, e.g. ``` -terraform import aws_simpledb_domain.users users +$ terraform import aws_simpledb_domain.users users ``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/sns_topic.html.markdown b/website/source/docs/providers/aws/r/sns_topic.html.markdown index c0094f2bf..093c44fc1 100644 --- a/website/source/docs/providers/aws/r/sns_topic.html.markdown +++ b/website/source/docs/providers/aws/r/sns_topic.html.markdown @@ -39,5 +39,5 @@ The following attributes are exported: SNS Topics can be imported using the `topic arn`, e.g. ``` -terraform import aws_sns_topic.user_updates arn:aws:sns:us-west-2:0123456789012:my-topic +$ terraform import aws_sns_topic.user_updates arn:aws:sns:us-west-2:0123456789012:my-topic ``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/sns_topic_subscription.html.markdown b/website/source/docs/providers/aws/r/sns_topic_subscription.html.markdown index 0bc6e5b89..85ebe3148 100644 --- a/website/source/docs/providers/aws/r/sns_topic_subscription.html.markdown +++ b/website/source/docs/providers/aws/r/sns_topic_subscription.html.markdown @@ -102,5 +102,5 @@ The following attributes are exported: SNS Topic Subscriptions can be imported using the `subscription arn`, e.g. ``` -terraform import aws_sns_topic_subscription.user_updates_sqs_target arn:aws:sns:us-west-2:0123456789012:my-topic:8a21d249-4329-4871-acc6-7be709c6ea7f +$ terraform import aws_sns_topic_subscription.user_updates_sqs_target arn:aws:sns:us-west-2:0123456789012:my-topic:8a21d249-4329-4871-acc6-7be709c6ea7f ``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/sqs_queue.html.markdown b/website/source/docs/providers/aws/r/sqs_queue.html.markdown index 1140c07e1..b741fdd76 100644 --- a/website/source/docs/providers/aws/r/sqs_queue.html.markdown +++ b/website/source/docs/providers/aws/r/sqs_queue.html.markdown @@ -46,5 +46,5 @@ The following attributes are exported: SQS Queues can be imported using the `queue url`, e.g. ``` -terraform import aws_sqs_queue.public_queue https://queue.amazonaws.com/80398EXAMPLE/MyQueue +$ terraform import aws_sqs_queue.public_queue https://queue.amazonaws.com/80398EXAMPLE/MyQueue ``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/subnet.html.markdown b/website/source/docs/providers/aws/r/subnet.html.markdown index ba96ba77f..388514459 100644 --- a/website/source/docs/providers/aws/r/subnet.html.markdown +++ b/website/source/docs/providers/aws/r/subnet.html.markdown @@ -51,5 +51,5 @@ The following attributes are exported: Subnets can be imported using the `subnet id`, e.g. ``` -terraform import aws_subnet.public_subnet subnet-9d4a7b6c +$ terraform import aws_subnet.public_subnet subnet-9d4a7b6c ``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/vpc.html.markdown b/website/source/docs/providers/aws/r/vpc.html.markdown index fafcc0097..0125ef3d2 100644 --- a/website/source/docs/providers/aws/r/vpc.html.markdown +++ b/website/source/docs/providers/aws/r/vpc.html.markdown @@ -70,5 +70,5 @@ The following attributes are exported: VPNs can be imported using the `vpn id`, e.g. ``` -terraform import aws_vpn.test_vpn vpc-a01106c2 +$ terraform import aws_vpn.test_vpn vpc-a01106c2 ``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/vpc_dhcp_options.html.markdown b/website/source/docs/providers/aws/r/vpc_dhcp_options.html.markdown index 5e030c509..e30ae0b67 100644 --- a/website/source/docs/providers/aws/r/vpc_dhcp_options.html.markdown +++ b/website/source/docs/providers/aws/r/vpc_dhcp_options.html.markdown @@ -68,5 +68,5 @@ official [AWS User Guide](https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide VPC DHCP Options can be imported using the `dhcp options id`, e.g. ``` -terraform import aws_vpc_dhcp_options.my_options dopt-d9070ebb +$ terraform import aws_vpc_dhcp_options.my_options dopt-d9070ebb ``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/vpc_endpoint.html.markdown b/website/source/docs/providers/aws/r/vpc_endpoint.html.markdown index 6bdf31ad8..d7531a356 100644 --- a/website/source/docs/providers/aws/r/vpc_endpoint.html.markdown +++ b/website/source/docs/providers/aws/r/vpc_endpoint.html.markdown @@ -43,5 +43,5 @@ The following attributes are exported: VPN Endpoints can be imported using the `vpc endpoint id`, e.g. ``` -terraform import aws_vpc_endpoint.endpoint1 vpce-3ecf2a57 +$ terraform import aws_vpc_endpoint.endpoint1 vpce-3ecf2a57 ``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/vpc_peering.html.markdown b/website/source/docs/providers/aws/r/vpc_peering.html.markdown index c20b75bcb..c083591f4 100644 --- a/website/source/docs/providers/aws/r/vpc_peering.html.markdown +++ b/website/source/docs/providers/aws/r/vpc_peering.html.markdown @@ -72,5 +72,5 @@ If you are not the owner of both VPCs, or do not enable auto_accept you will sti VPC Peering resources can be imported using the `vpc peering id`, e.g. ``` -terraform import aws_vpc_peering_connection.test_connection pcx-111aaa111 +$ terraform import aws_vpc_peering_connection.test_connection pcx-111aaa111 ``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/vpn_connection.html.markdown b/website/source/docs/providers/aws/r/vpn_connection.html.markdown index 4d1dbdf21..878a7346f 100644 --- a/website/source/docs/providers/aws/r/vpn_connection.html.markdown +++ b/website/source/docs/providers/aws/r/vpn_connection.html.markdown @@ -68,5 +68,5 @@ The following attributes are exported: VPN Connections can be imported using the `vpn connection id`, e.g. ``` -terraform import aws_vpn_connection.testvpnconnection vpn-40f41529 +$ terraform import aws_vpn_connection.testvpnconnection vpn-40f41529 ``` \ No newline at end of file diff --git a/website/source/docs/providers/aws/r/vpn_gateway.html.markdown b/website/source/docs/providers/aws/r/vpn_gateway.html.markdown index 956cfc3c2..3d478e880 100644 --- a/website/source/docs/providers/aws/r/vpn_gateway.html.markdown +++ b/website/source/docs/providers/aws/r/vpn_gateway.html.markdown @@ -42,5 +42,5 @@ The following attributes are exported: VPN Gateways can be imported using the `vpn gateway id`, e.g. ``` -terraform import aws_vpn_gateway.testvpngateway vgw-9a4cacf3 +$ terraform import aws_vpn_gateway.testvpngateway vgw-9a4cacf3 ``` \ No newline at end of file