You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After importing a resource in terraform using terraform import and having into our tf files a configuration that matches remote config in AWS it wants to delete and then add the configuration.
This issue has been automatically migrated to hashicorp/terraform-provider-aws#1194 because it looks like an issue with that provider. If you believe this is not an issue with the provider, please reply to this issue and let us know.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
Apr 8, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
PROVIDER ISSUES
After importing a resource in terraform using terraform import and having into our tf files a configuration that matches remote config in AWS it wants to delete and then add the configuration.
Terraform Version
0.9.8
Debug Output
~ aws_cloudfront_distribution.statics cache_behavior.#: "0" => "2" cache_behavior.322762713.allowed_methods.#: "0" => "2" cache_behavior.322762713.allowed_methods.0: "" => "GET" cache_behavior.322762713.allowed_methods.1: "" => "HEAD" cache_behavior.322762713.cached_methods.#: "0" => "2" cache_behavior.322762713.cached_methods.0: "" => "GET" cache_behavior.322762713.cached_methods.1: "" => "HEAD" cache_behavior.322762713.compress: "" => "false" cache_behavior.322762713.default_ttl: "" => "86400" cache_behavior.322762713.forwarded_values.#: "0" => "1" cache_behavior.322762713.forwarded_values.563318458.cookies.#: "0" => "1" cache_behavior.322762713.forwarded_values.563318458.cookies.2625240281.forward: "" => "none" cache_behavior.322762713.forwarded_values.563318458.cookies.2625240281.whitelisted_names.#: "0" => "0" cache_behavior.322762713.forwarded_values.563318458.headers.#: "0" => "1" cache_behavior.322762713.forwarded_values.563318458.headers.0: "" => "Origin" cache_behavior.322762713.forwarded_values.563318458.query_string: "" => "false" cache_behavior.322762713.forwarded_values.563318458.query_string_cache_keys.#: "0" => "0" cache_behavior.322762713.lambda_function_association.#: "0" => "0" cache_behavior.322762713.max_ttl: "" => "31536000" cache_behavior.322762713.min_ttl: "" => "0" cache_behavior.322762713.path_pattern: "" => "eviewer/*" cache_behavior.322762713.smooth_streaming: "" => "false" cache_behavior.322762713.target_origin_id: "" => "S3-ofertia-static-content" cache_behavior.322762713.trusted_signers.#: "0" => "0" cache_behavior.322762713.viewer_protocol_policy: "" => "allow-all" cache_behavior.4105325411.allowed_methods.#: "0" => "2" cache_behavior.4105325411.allowed_methods.0: "" => "GET" cache_behavior.4105325411.allowed_methods.1: "" => "HEAD" cache_behavior.4105325411.cached_methods.#: "0" => "2" cache_behavior.4105325411.cached_methods.0: "" => "GET" cache_behavior.4105325411.cached_methods.1: "" => "HEAD" cache_behavior.4105325411.compress: "" => "false" cache_behavior.4105325411.default_ttl: "" => "86400" cache_behavior.4105325411.forwarded_values.#: "0" => "1" cache_behavior.4105325411.forwarded_values.563318458.cookies.#: "0" => "1" cache_behavior.4105325411.forwarded_values.563318458.cookies.2625240281.forward: "" => "none" cache_behavior.4105325411.forwarded_values.563318458.cookies.2625240281.whitelisted_names.#: "0" => "0" cache_behavior.4105325411.forwarded_values.563318458.headers.#: "0" => "1" cache_behavior.4105325411.forwarded_values.563318458.headers.0: "" => "Origin" cache_behavior.4105325411.forwarded_values.563318458.query_string: "" => "false" cache_behavior.4105325411.forwarded_values.563318458.query_string_cache_keys.#: "0" => "0" cache_behavior.4105325411.lambda_function_association.#: "0" => "0" cache_behavior.4105325411.max_ttl: "" => "31536000" cache_behavior.4105325411.min_ttl: "" => "0" cache_behavior.4105325411.path_pattern: "" => "web/*" cache_behavior.4105325411.smooth_streaming: "" => "false" cache_behavior.4105325411.target_origin_id: "" => "S3-ofertia-static-content" cache_behavior.4105325411.trusted_signers.#: "0" => "0" cache_behavior.4105325411.viewer_protocol_policy: "" => "allow-all" default_cache_behavior.1805859333.allowed_methods.#: "2" => "0" default_cache_behavior.1805859333.allowed_methods.0: "HEAD" => "" default_cache_behavior.1805859333.allowed_methods.1: "GET" => "" default_cache_behavior.1805859333.cached_methods.#: "2" => "0" default_cache_behavior.1805859333.cached_methods.0: "HEAD" => "" default_cache_behavior.1805859333.cached_methods.1: "GET" => "" default_cache_behavior.1805859333.compress: "false" => "false" default_cache_behavior.1805859333.default_ttl: "86400" => "0" default_cache_behavior.1805859333.forwarded_values.#: "1" => "0" default_cache_behavior.1805859333.forwarded_values.563318458.cookies.#: "1" => "0" default_cache_behavior.1805859333.forwarded_values.563318458.cookies.2625240281.forward: "none" => "" default_cache_behavior.1805859333.forwarded_values.563318458.cookies.2625240281.whitelisted_names.#: "0" => "0" default_cache_behavior.1805859333.forwarded_values.563318458.headers.#: "1" => "0" default_cache_behavior.1805859333.forwarded_values.563318458.headers.0: "Origin" => "" default_cache_behavior.1805859333.forwarded_values.563318458.query_string: "false" => "false" default_cache_behavior.1805859333.forwarded_values.563318458.query_string_cache_keys.#: "0" => "0" default_cache_behavior.1805859333.lambda_function_association.#: "0" => "0" default_cache_behavior.1805859333.max_ttl: "31536000" => "0" default_cache_behavior.1805859333.min_ttl: "604800" => "0" default_cache_behavior.1805859333.smooth_streaming: "false" => "false" default_cache_behavior.1805859333.target_origin_id: "S3-ofertiadk-static-content" => "" default_cache_behavior.1805859333.trusted_signers.#: "0" => "0" default_cache_behavior.1805859333.viewer_protocol_policy: "allow-all" => "" default_cache_behavior.983534757.allowed_methods.#: "0" => "2" default_cache_behavior.983534757.allowed_methods.0: "" => "GET" default_cache_behavior.983534757.allowed_methods.1: "" => "HEAD" default_cache_behavior.983534757.cached_methods.#: "0" => "2" default_cache_behavior.983534757.cached_methods.0: "" => "GET" default_cache_behavior.983534757.cached_methods.1: "" => "HEAD" default_cache_behavior.983534757.compress: "" => "false" default_cache_behavior.983534757.default_ttl: "" => "86400" default_cache_behavior.983534757.forwarded_values.#: "0" => "1" default_cache_behavior.983534757.forwarded_values.563318458.cookies.#: "0" => "1" default_cache_behavior.983534757.forwarded_values.563318458.cookies.2625240281.forward: "" => "none" default_cache_behavior.983534757.forwarded_values.563318458.cookies.2625240281.whitelisted_names.#: "0" => "0" default_cache_behavior.983534757.forwarded_values.563318458.headers.#: "0" => "1" default_cache_behavior.983534757.forwarded_values.563318458.headers.0: "" => "Origin" default_cache_behavior.983534757.forwarded_values.563318458.query_string: "" => "false" default_cache_behavior.983534757.forwarded_values.563318458.query_string_cache_keys.#: "0" => "0" default_cache_behavior.983534757.lambda_function_association.#: "0" => "0" default_cache_behavior.983534757.max_ttl: "" => "31536000" default_cache_behavior.983534757.min_ttl: "" => "0" default_cache_behavior.983534757.smooth_streaming: "" => "false" default_cache_behavior.983534757.target_origin_id: "" => "S3-ofertiadk-static-content" default_cache_behavior.983534757.trusted_signers.#: "0" => "0" default_cache_behavior.983534757.viewer_protocol_policy: "" => "allow-all" origin.#: "1" => "2" origin.2237230307.custom_header.#: "0" => "0" origin.2237230307.custom_origin_config.#: "0" => "0" origin.2237230307.domain_name: "" => "ofertia-static-content.s3.amazonaws.com" origin.2237230307.origin_id: "" => "S3-ofertia-static-content" origin.2237230307.origin_path: "" => "/dk" origin.2237230307.s3_origin_config.#: "0" => "0" origin.3712337220.custom_header.#: "0" => "0" origin.3712337220.custom_origin_config.#: "0" => "0" origin.3712337220.domain_name: "ofertiadk-static-content.s3.amazonaws.com" => "ofertiadk-static-content.s3.amazonaws.com" origin.3712337220.origin_id: "S3-ofertiadk-static-content" => "S3-ofertiadk-static-content" origin.3712337220.origin_path: "" => "" origin.3712337220.s3_origin_config.#: "0" => "0"
Expected Behavior
Should detect it and show no changes
Steps to Reproduce
terraform import a cloudfront distribution
terraform plan
The text was updated successfully, but these errors were encountered: