Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloudfront Distribution after import attempts to make changes [0.9.8] #15600

Closed
ahharu opened this issue Jul 20, 2017 · 2 comments
Closed

Cloudfront Distribution after import attempts to make changes [0.9.8] #15600

ahharu opened this issue Jul 20, 2017 · 2 comments

Comments

@ahharu
Copy link

ahharu commented Jul 20, 2017

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

@hashibot
Copy link
Contributor

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.

@ghost
Copy link

ghost commented Apr 8, 2020

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 ghost locked and limited conversation to collaborators Apr 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants