opentofu/builtin/providers/aws
Martin Atkins 4ae3a17eab aws_elasticache_subnet_group normalizes name to lowercase.
The Elasticache API accepts a mixed-case subnet name on create, but
normalizes it to lowercase before storing it. When retrieving a subnet,
the name is treated as case-sensitive, so the lowercase version must be
used.

Given that case within subnet names is not significant, the new StateFunc
on the name attribute causes the state to reflect the lowercase version
that the API uses, and changes in case alone will not show as a diff.

Given that we must look up subnet names in lower case, we set the
instance id to be a lowercase version of the user's provided name. This
then allows a later Refresh call to succeed even if the user provided
a mixed-case name.

Previously users could work around this by just avoiding putting uppercase
letters in the name, but that is often inconvenient if e.g. the name is
being constructed from variables defined elsewhere that may already have
uppercase letters present.
2015-09-03 10:03:35 -07:00
..
test-fixtures AWS Lambda functionality 2015-06-01 09:33:45 -07:00
autoscaling_tags_test.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
autoscaling_tags.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
config.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
hosted_zones_test.go providers/aws: Extract normalizeRegion 2015-05-08 10:49:21 -04:00
hosted_zones.go providers/aws: Extract normalizeRegion 2015-05-08 10:49:21 -04:00
network_acl_entry_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
network_acl_entry.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
provider_test.go Read the "standard" AWS environment variables 2015-01-22 16:09:25 -05:00
provider.go provider/aws: match with upstream changes 2015-08-10 15:39:47 -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_app_cookie_stickiness_policy.go provider/aws: Update source to comply with upstream breaking change 2015-07-28 15:29:46 -05:00
resource_aws_autoscaling_group_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_autoscaling_group.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_autoscaling_notification_test.go update with test 2015-08-21 10:51:16 -05:00
resource_aws_autoscaling_notification.go update with test 2015-08-21 10:51:16 -05: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_autoscaling_policy.go provider/aws: Update source to comply with upstream breaking change 2015-07-28 15:29:46 -05:00
resource_aws_cloudwatch_metric_alarm_test.go provider/aws: Add cloudwatch_metric_alarm 2015-06-17 23:10:23 +01:00
resource_aws_cloudwatch_metric_alarm.go provider/aws: Update source to comply with upstream breaking change 2015-07-28 15:29:46 -05:00
resource_aws_customer_gateway_test.go provider/aws: Converge on TestAccAWS for acceptance tests names 2015-07-21 09:42:02 -05:00
resource_aws_customer_gateway.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_db_instance_test.go provider/aws: Lower case DB Instance's maintenance window 2015-08-24 11:08:19 -05:00
resource_aws_db_instance.go update StateFunc to return empty string if maintenance_window not found 2015-08-24 11:25:43 -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_parameter_group.go provider/aws: Fix issue with detecting differences in DB Parameters 2015-07-14 14:47:18 -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_security_group.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_db_subnet_group_test.go provider/aws: Improve test name (underscores -> undocumentedCharacters) 2015-07-10 08:13:05 +01:00
resource_aws_db_subnet_group.go provider/aws: Add update method to DB Subnet Group 2015-08-24 16:52:30 -05:00
resource_aws_dynamodb_table_test.go Update DynamoDB example docs to remove non-key attributes; update test to remove non-key attribute from attribute set to prevent infinite planning loops 2015-06-30 11:38:16 -07:00
resource_aws_dynamodb_table.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_ebs_volume_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_ebs_volume.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05: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_cluster.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_ecs_service_test.go ecs_service: Add note about race condition w/ IAM policy 2015-08-23 17:45:24 +01:00
resource_aws_ecs_service.go ecs_service: Remove unused code 2015-08-23 17:45:52 +01:00
resource_aws_ecs_task_definition_test.go provider/aws: ecs task definition is deregistered correctly 2015-06-29 23:37:20 +01:00
resource_aws_ecs_task_definition.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_eip_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_eip.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_elasticache_cluster_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_elasticache_cluster.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_elasticache_parameter_group_test.go added test 2015-06-08 22:43:39 +02:00
resource_aws_elasticache_parameter_group.go provider/aws: Update source to comply with upstream breaking change 2015-07-28 15:29:46 -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_security_group.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_elasticache_subnet_group_test.go aws_elasticache_subnet_group normalizes name to lowercase. 2015-09-03 10:03:35 -07:00
resource_aws_elasticache_subnet_group.go aws_elasticache_subnet_group normalizes name to lowercase. 2015-09-03 10:03:35 -07:00
resource_aws_elb_test.go Merge pull request #2816 from TimeIncOSS/f-aws-elb-name-test 2015-07-29 10:50:49 -05:00
resource_aws_elb.go provider/aws: add value into ELB name validation message 2015-08-13 16:31:18 -05:00
resource_aws_flow_log_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_flow_log.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -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_access_key.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -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_membership.go code cleanups 2015-06-09 09:11:05 -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_policy.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -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_group.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -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_instance_profile.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_iam_policy_attachment_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_iam_policy_attachment.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_iam_policy.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -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_policy.go provider/aws: Add validation for aws_iam_role_policy.name 2015-06-29 16:23:42 +01: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_role.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_iam_server_certificate_test.go provider/aws: Converge on TestAccAWS for acceptance tests names 2015-07-21 09:42:02 -05:00
resource_aws_iam_server_certificate.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -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_policy.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -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_iam_user.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -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_migrate.go providers/aws: handle empty instancestate in state migration 2015-03-26 13:07:04 -05:00
resource_aws_instance_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_instance.go Merge branch 'master' into f-aws-pr-2779 2015-08-18 14:40:01 -05:00
resource_aws_internet_gateway_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_internet_gateway.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -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_key_pair.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_kinesis_stream_test.go aws_kinesis_stream: remove limit on DescribeStream 2015-08-14 22:24:02 -07:00
resource_aws_kinesis_stream.go aws_kinesis_stream: remove limit on DescribeStream 2015-08-14 22:24:02 -07:00
resource_aws_lambda_function_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_lambda_function.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_launch_configuration_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_launch_configuration.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -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_lb_cookie_stickiness_policy.go provider/aws: Update source to comply with upstream breaking change 2015-07-28 15:29:46 -05:00
resource_aws_main_route_table_association_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_main_route_table_association.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_network_acl_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_network_acl.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_network_interface_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_network_interface.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -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_proxy_protocol_policy.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
resource_aws_route53_delegation_set_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_route53_delegation_set.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_route53_health_check_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_route53_health_check.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_route53_record_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_route53_record.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_route53_zone_association_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_route53_zone_association.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_route53_zone_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_route53_zone.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_route_table_association_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_route_table_association.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_route_table_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_route_table.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_s3_bucket_object_test.go provider/aws: Add S3 Bucket Object (supercedes #2079) 2015-07-30 15:17:37 -05:00
resource_aws_s3_bucket_object.go more tightly scope s3 bucket object error 2015-08-05 14:27:34 -05:00
resource_aws_s3_bucket_test.go provider/aws: S3 bucket test that should fail 2015-08-03 16:30:54 -05:00
resource_aws_s3_bucket.go provider/aws: Return if Bucket not found 2015-08-03 16:17:01 -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_migrate.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_security_group_rule_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_security_group_rule.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_security_group_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_security_group.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_sns_topic_subscription_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_sns_topic_subscription.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_sns_topic_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_sns_topic.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_spot_instance_request_test.go provider/aws: touch up on aws_spot_instance 2015-08-31 09:34:34 -05:00
resource_aws_spot_instance_request.go provider/aws: touch up on aws_spot_instance 2015-08-31 09:34:34 -05:00
resource_aws_sqs_queue_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_sqs_queue.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_subnet_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_subnet.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_volume_attachment_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_volume_attachment.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_vpc_dhcp_options_association_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_vpc_dhcp_options_association.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_vpc_dhcp_options_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_vpc_dhcp_options.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_vpc_endpoint_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_vpc_endpoint.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_vpc_peering_connection_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_vpc_peering_connection.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_vpc_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_vpc.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_vpn_connection_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_vpn_connection.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_vpn_gateway_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_aws_vpn_gateway.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_vpn_connection_route_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
resource_vpn_connection_route.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
s3_tags_test.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
s3_tags.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
structure_test.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
structure.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
tags_route53_test.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
tags_route53.go provider/aws: Update to aws-sdk 0.9.0 rc1 2015-08-17 13:27:16 -05:00
tags_test.go provider/aws: handle upstream aws-sdk-go repo move 2015-06-03 13:36:57 -05:00
tags.go provider/aws: Update source to comply with upstream breaking change 2015-07-28 15:29:46 -05:00
tagsEC_test.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
tagsELB_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
tagsRDS_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
website_endpoint_url_test.go Add website_domain for S3 buckets. 2015-07-22 10:38:28 -05:00