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: Allow aws_alb to have the name auto-generated #8673

Merged
merged 1 commit into from Sep 12, 2016

Commits on Sep 12, 2016

  1. provider/aws: Allow aws_alb to have the name auto-generated

    In order to satisify scenarios where a lifecycle is block is used, we
    would need the AWS ALB name field to be autogenerated. WE follow the
    same work as AWS ELB, we prefix it with `tl-lb-`
    
    ```
    % make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSALB_'
    ==> Checking that code complies with gofmt requirements...
    go generate $(go list ./... | grep -v /terraform/vendor/)
    2016/09/08 12:43:40 Generated command/internal_plugin_list.go
    TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSALB_ -timeout
    120m
    === RUN   TestAccAWSALB_basic
    --- PASS: TestAccAWSALB_basic (79.81s)
    === RUN   TestAccAWSALB_generatedName
    --- PASS: TestAccAWSALB_generatedName (93.81s)
    === RUN   TestAccAWSALB_namePrefix
    --- PASS: TestAccAWSALB_namePrefix (73.48s)
    === RUN   TestAccAWSALB_tags
    --- PASS: TestAccAWSALB_tags (181.32s)
    === RUN   TestAccAWSALB_noSecurityGroup
    --- PASS: TestAccAWSALB_noSecurityGroup (66.03s)
    === RUN   TestAccAWSALB_accesslogs
    --- PASS: TestAccAWSALB_accesslogs (130.82s)
    PASS
    ok      github.com/hashicorp/terraform/builtin/providers/aws    625.285s
    ```
    stack72 committed Sep 12, 2016
    Configuration menu
    Copy the full SHA
    20ad3e0 View commit details
    Browse the repository at this point in the history