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

provider/aws: fix Elastic Beanstalk cname_prefix #6653

Conversation

dharrisio
Copy link
Contributor

Fixes an issue where the cname_prefix attribute isn't correctly read
in some regions.

Previously environments in some regions would have recurring plans if the cname_prefix attribute was used. Running terraform plan after a terraform apply has this diff

-/+ aws_elastic_beanstalk_environment.default
    all_settings.#:          "94" => "<computed>"
    application:             "tf-test-cname-output" => "tf-test-cname-output"
    autoscaling_groups.#:    "1" => "<computed>"
    cname:                   "tf-test-cname-output-env.fvixezmt3v.ap-southeast-2.elasticbeanstalk.com" => "<computed>"
    cname_prefix:            "" => "region-prefix" (forces new resource)
    instances.#:             "1" => "<computed>"
    launch_configurations.#: "1" => "<computed>"
    load_balancers.#:        "1" => "<computed>"
    name:                    "tf-test-cname-output-env" => "tf-test-cname-output-env"
    queues.#:                "0" => "<computed>"
    setting.#:               "0" => "<computed>"
    solution_stack_name:     "64bit Amazon Linux running Python" => "64bit Amazon Linux running Python"
    tier:                    "WebServer" => "WebServer"
    triggers.#:              "0" => "<computed>"
    wait_for_ready_timeout:  "10m" => "10m"

Tests

TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSBeanstalkEnv_basic -timeout 120m
=== RUN   TestAccAWSBeanstalkEnv_basic
--- PASS: TestAccAWSBeanstalkEnv_basic (395.00s)
PASS
ok      github.com/hashicorp/terraform/builtin/providers/aws    395.018s
TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSBeanstalkEnv_cname_prefix -timeout 120m
=== RUN   TestAccAWSBeanstalkEnv_cname_prefix
--- PASS: TestAccAWSBeanstalkEnv_cname_prefix (344.87s)
PASS
ok      github.com/hashicorp/terraform/builtin/providers/aws    344.891s

Fixes an issue where the `cname_prefix` attribute isn't correctly read
in some regions.
@stack72
Copy link
Contributor

stack72 commented May 13, 2016

Hi @dharrisio

This looks good to me! Thanks for the continued work on ElasticBeanstalk!

p.

@stack72 stack72 merged commit 0cb7496 into hashicorp:master May 13, 2016
@dharrisio dharrisio deleted the b-aws-elastic-beanstalk-fix-cname-prefix-region branch May 13, 2016 13:54
cristicalin pushed a commit to cristicalin/terraform that referenced this pull request May 24, 2016
Fixes an issue where the `cname_prefix` attribute isn't correctly read
in some regions.
@ghost
Copy link

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

Successfully merging this pull request may close these issues.

None yet

2 participants