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

API Gateway domain creating fails with certificate. #3276

Closed
avanzarit-in opened this issue Feb 7, 2018 · 2 comments
Closed

API Gateway domain creating fails with certificate. #3276

avanzarit-in opened this issue Feb 7, 2018 · 2 comments
Labels
bug Addresses a defect in current functionality. service/apigateway Issues and PRs that pertain to the apigateway service. stale Old or inactive issues managed by automation, if no further action taken these will get closed.

Comments

@avanzarit-in
Copy link

avanzarit-in commented Feb 7, 2018

Hi,

Terraform Version

0.10.8

Affected Resource(s)

  • AWS API gateway Domain Name

Terraform Configuration Files

resource "aws_api_gateway_domain_name" "apex_apigateway_domain_name" {
  domain_name = "api.domainname.com"
  certificate_name = "san.certificate.domainname"
  certificate_private_key = "${file(san.certificate.domainname.key)}"
  certificate_body = "${file(san.certificate.domainname.crt)}"
  certificate_chain = "${file(san.certificate.domainname-chain.crt")}"
}

Debug Output

module.core.aws_api_gateway_domain_name.domain_name: Modifying... (ID: api.domainname.com)
  certificate_arn:  "arn:aws:acm:us-east-1:(account_id):certificate/(certificate_id)" => ""
  certificate_name: "" => "san.certificate.domainname"
...

Error: Error applying plan:

1 error(s) occurred:

* module.core.aws_api_gateway_domain_name.domain_name: 1 error(s) occurred:

* aws_api_gateway_domain_name.domain_name: BadRequestException: A certificate was not provided for the endpoint type EDGE.
	status code: 400, request id: c1c6e6dc-0bc9-11e8-87d3-af1cf64e1838

Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.

Panic Output

Expected Behavior

Nothing gets updated

Actual Behavior

Updates to a empty name

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply

Important Factoids

Creating a new Environment works but updating a existing environment fails.

References

@bflad bflad added bug Addresses a defect in current functionality. service/apigateway Issues and PRs that pertain to the apigateway service. labels Feb 7, 2018
@github-actions
Copy link

github-actions bot commented Aug 5, 2020

Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.

If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!

@github-actions github-actions bot added the stale Old or inactive issues managed by automation, if no further action taken these will get closed. label Aug 5, 2020
@github-actions github-actions bot closed this as completed Sep 5, 2020
@ghost
Copy link

ghost commented Oct 6, 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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Oct 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/apigateway Issues and PRs that pertain to the apigateway service. stale Old or inactive issues managed by automation, if no further action taken these will get closed.
Projects
None yet
Development

No branches or pull requests

2 participants