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

aws_acm_certificate does not create new certificate for the existing domain #7909

Closed
jimmytoan opened this issue Mar 13, 2019 · 3 comments
Closed
Labels
bug Addresses a defect in current functionality. service/acm Issues and PRs that pertain to the acm service.
Milestone

Comments

@jimmytoan
Copy link

jimmytoan commented Mar 13, 2019

Terraform Version

  • Terraform v0.11.8
  • provider.aws v2.1.0

Affected Resource(s)

  • aws_acm_certificate

Terraform Configuration Files

  • This file is on Test-1 folder
provider "aws" {
  region = "ap-southeast-2"
}

resource "aws_acm_certificate" "test-1" {
  domain_name       = "*.test.com"
  validation_method = "DNS"

  tags = {
    Name        = "test-1"
  }
}
  • This file is on Test-2 folder (separates with TF state file for Test-1)
provider "aws" {
  region = "ap-southeast-2"
}

resource "aws_acm_certificate" "test-2" {
  domain_name       = "*.test.com"
  validation_method = "DNS"

  tags = {
    Name        = "test-2"
  }
}

Expected Behavior

Terraform should create 2 certificates (different certificate arn/id) for domain *.test.com on AWS ACM console

Actual Behavior and Steps to Reproduce

  • From Test-1 folder, run terraform apply => terraform creates only 1 certificate for domain *.test.com with name test-1
  • From Test-2 folder, run terraform apply => terraform update the certificate ARN above with name test-2
  • This ends up with 2 TF state files include the same certificate arn
@aeschright aeschright added the needs-triage Waiting for first response or review from a maintainer. label Jun 19, 2019
@aeschright aeschright added the service/acm Issues and PRs that pertain to the acm service. label Jul 3, 2019
@aeschright
Copy link
Contributor

Hi @jimmytoan -- thank for taking the time to report this! Can you tell us a little more about what you were trying to do and your configuration? I don't think there's enough here for us to know how to follow up.

@bflad bflad added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels May 26, 2020
@bflad bflad added this to the v2.23.0 milestone May 26, 2020
@bflad
Copy link
Contributor

bflad commented May 26, 2020

Hi folks 👋 This issue was resolved awhile ago in version 2.23.0 of the Terraform AWS Provider and should have been fixed in all versions since. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

If you are still having trouble on recent versions of the Terraform AWS Provider, please create a new GitHub issue following the bug report template. Thanks!

@bflad bflad closed this as completed May 26, 2020
@ghost
Copy link

ghost commented Jun 26, 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 and limited conversation to collaborators Jun 26, 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/acm Issues and PRs that pertain to the acm service.
Projects
None yet
Development

No branches or pull requests

3 participants