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

terraform-provider-aws: "ValidationError: You cannot specify both Template URL and Template Body" when only URL was specified #4534

Closed
tangentspace opened this issue Jan 7, 2016 · 3 comments · Fixed by #4540
Assignees

Comments

@tangentspace
Copy link
Contributor

I'm trying to deploy a CloudFormation stack using a build of terraform from revision 88c3933 (the release binaries didn't work for me due to #4332).

When attempting to apply an update to the parameters of an aws_cloudformation_stack resource, it fails with the following error:

* aws_cloudformation_stack.api: ValidationError: You cannot specify both Template URL and Template Body.
    status code: 400, request id: 6666775e-b4cb-11e5-a916-3fb3780c8e2f

My template only specifies the template_url parameter, so this seems like a bug. Here is the definition of the resource that fails to update:

resource "aws_cloudformation_stack" "api" {
    name = "${var.environment}-api"
    template_url = "https://s3.amazonaws.com/${var.template_bucket}/${var.environment}/ApplicationStack.json"
    capabilities = ["CAPABILITY_IAM"]
    on_failure = "DELETE"
    parameters {
        ApplicationName = "api"
        Environment = "${var.environment}"
        ChefRunList = "role[api_app]"
        ELBHealthCheckTarget = "HTTP:8081/thread_status_check"
        ELBListener1 = "HTTP, 443, HTTP, 8080"
        InstanceType = "m3.large"
        VPCName = "${var.vpc_name}"
    }
}
@radeksimko
Copy link
Member

Hi @tangentspace
thanks for the report, I just reproduced this. Bugfix is on the way.

@radeksimko
Copy link
Member

See #4540

@ghost
Copy link

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

Successfully merging a pull request may close this issue.

3 participants